UNPKG

@freshworks/crayons

Version:
407 lines (360 loc) 7.19 kB
/* Need to check with designer */ /* Need to check with designer */ :host { font-family: var(--fw-font-family, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Open Sans", "Helvetica Neue", sans-serif); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; box-sizing: border-box; } /** @prop --fw-label-color: Color of the label. @prop --fw-hint-color: Color of the hint text. @prop --fw-warning-color: Color of the warning text. @prop --fw-error-color: Color of the error text. */ .field-control { position: relative; } .field-control-label { display: block; font-size: 12px; color: var(--fw-label-color, #475867); font-weight: 600; margin-bottom: 4px; padding-left: 2px; line-height: 20px; } .field-control-label.required::after { content: "*"; position: relative; display: inline-block; top: 2px; font-size: 14px; color: #d72d30; padding-left: 2px; font-weight: 700; } .field-control-hint-text { font-family: -apple-system, blinkmacsystemfont, "Segoe UI", "Roboto", "Helvetica Neue", arial, sans-serif; font-size: 12px; line-height: 20px; margin-top: 4px; margin-bottom: 0; color: var(--fw-hint-color, #acb6be); position: inherit; display: block; padding-left: 2px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .field-control-error-text { font-family: -apple-system, blinkmacsystemfont, "Segoe UI", "Roboto", "Helvetica Neue", arial, sans-serif; font-size: 12px; line-height: 20px; margin-top: 4px; margin-bottom: 0; color: var(--fw-error-color, #d72d30); position: inherit; display: block; padding-left: 2px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .field-control-warning-text { font-family: -apple-system, blinkmacsystemfont, "Segoe UI", "Roboto", "Helvetica Neue", arial, sans-serif; font-size: 12px; line-height: 20px; margin-top: 4px; margin-bottom: 0; color: var(--fw-warning-color, #f8ab59); position: inherit; display: block; padding-left: 2px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } :host { display: block; position: relative; --fw-icon-size: 14px; } :host * { user-select: none; } .mdp-container, .mdp-range-container { width: 264px; background: #fff; box-sizing: border-box; padding: 16px; overflow: hidden; } .mdpc-footer { padding: 4px; display: flex; box-sizing: border-box; justify-content: flex-end; background: #f5f7f9; } .mdpc-footer fw-button { margin: 4px; } .mdp-range-container { width: 536px; } .mdpc-head { --fw-select-margin-bottom: 16px; display: flex; align-items: center; } .mdpc-body { float: left; width: 100%; } .body-container { display: flex; flex-direction: row; align-items: stretch; justify-content: space-between; } .body-container .mdpc-body { width: 232px; padding: 0 8px; position: relative; } .body-container .mdpc-body-right { width: 232px; padding: 0 8px; } .body-container .mdpc-body-right::after { content: ""; position: absolute; top: 0; right: 251px; border-right: 1px solid #ebeff3; height: 100%; } /** * Controls */ .btns { display: inherit; position: absolute; right: 14px; } .mdpch-button, .mdpch-button-right { width: 12px; height: 100%; box-sizing: border-box; position: relative; bottom: 6px; right: 14px; } .mdpchb-inner:hover, .mdpchb-inner:focus { cursor: pointer; background: #ebeff3; } .mdpchb-inner { height: 20px; width: 20px; position: absolute; margin-top: -11px; } .mdpch-button-right .mdpchb-inner { left: 12px; } .mdpchbi-left-arrow, .mdpchbi-left-arrows, .mdpchbi-left-arrows::after, .mdpchbi-right-arrow, .mdpchbi-right-arrows, .mdpchbi-right-arrows::after { display: block; width: 6px; height: 6px; border-left: 2px solid #183247; border-bottom: 2px solid #183247; position: absolute; } .mdpchbi-left-arrow, .mdpchbi-left-arrows, .mdpchbi-right-arrow, .mdpchbi-right-arrows { transform: rotate(45deg); left: 50%; top: 50%; margin-left: -2px; margin-top: -4px; } .mdpchbi-right-arrow, .mdpchbi-right-arrows { transform: rotate(225deg); margin-left: -4px; } .mdpchbi-left-arrows::after, .mdpchbi-right-arrows::after { content: ""; left: 3px; top: -5px; } .mdpchbi-left-arrows { margin-left: -5px; } .mdpchbi-right-arrows { margin-left: -2px; } .mdpch-container, .mdpch-container-right { min-width: 50%; } .mdpch-container-right { padding-left: 16px; } .mdpchc-year { --fw-button-min-width: 74px; float: left; height: 30px; font-size: 16px; color: #475867; text-align: center; width: 74px; --fw-popover-max-height: 146px; --fw-popover-min-width: 170px; } .mdpchc-month { --fw-button-min-width: 65px; float: left; font-size: 16px; color: #475867; text-align: center; width: 65px; --fw-popover-max-height: 146px; --fw-popover-min-width: 170px; } .mdpchc-month fw-select .input-container-inner input { width: 98%; } /** * Calendar */ .c-container, .c-day-container, .cc-body, .cc-head, .cch-name, .cdc-day, .cdc-day span { position: relative; display: block; float: left; box-sizing: border-box; } .c-container { width: 100%; height: 100%; } .cc-head { height: 30px; width: 100%; } .cch-name { width: 14.285%; height: 30px; line-height: 30px; font-weight: 700; color: #475867; font-size: 13px; text-align: center; } .cc-body { height: 210px; width: 100%; } .c-day-container { width: 14.285%; height: 11.185%; margin-top: 10px; } .cdc-day { width: 100%; height: 100%; font-size: 12px; font-weight: 300; color: #475867; text-align: center; } .cdc-day span:hover, .cdc-day span:focus { cursor: pointer; background: #ebeff3; } .cdc-day span { width: 24px; height: 22px; font-size: 14px; margin-top: -11px; margin-left: -13px; left: 50%; top: 50%; font-weight: 400; border-radius: 10%; line-height: 20px; color: #12344d; } .c-day-container.disabled { pointer-events: none; } .date-input { width: 200px; } .icon-calendar { display: flex; align-items: center; margin: 4px 0px; } .icon-calendar .separator { border-left-width: 1px; border-left-style: solid; height: 20px; margin: 0px 4px; } .date-icon { display: flex; width: 24px; height: 24px; border-radius: 4px; align-items: center; justify-content: center; background-color: #ebeff3; } .range-date-input { width: 235px; } .c-day-container.disabled .cdc-day span { color: #92a2b1; background: #fff !important; } .c-day-container.highlight:not(.disabled) .cdc-day span { border: 1px solid #cfd7df; } .c-day-container.highlight-blue:not(.disabled) .cdc-day span { background: #2c5cc5; color: #f5f7f9; } .c-day-container.start-day .cdc-day { margin-left: 10px; } .c-day-container.start-day .cdc-day span { transform: translateX(-10px); } .c-day-container.end-day .cdc-day { margin-left: -10px; } .c-day-container.end-day .cdc-day span { transform: translateX(10px); } .c-day-container.highlight-range:not(.disabled) .cdc-day { background: #e4f2fd; }