UNPKG

@syncfusion/ej2-calendars

Version:

A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.

469 lines (431 loc) 14.3 kB
/* Font Family */ /* border */ /* 0px */ /* 1px */ /* 1.5px */ /* 2px */ /* 3px */ /* 4px */ /* 5px */ /* 6px */ /* 7px */ /* 8px */ /* Radius */ /* 1px */ /* 2px */ /* 3px */ /* 4px */ /* 5px */ /* 6px */ /* 7px */ /* 8px */ /* 9px */ /* 10px */ /* 11px */ /* 12px */ /* 13px */ /* 14px */ /* 15px */ /* 16px */ /* 17px */ /* 18px */ /* 19px */ /* 20px */ /* 21px */ /* 22px */ /* 23px */ /* 24px */ /* 25px */ /* 26px */ /* 27px */ /* 28px */ /* 29px */ /* 30px */ /* 31px */ /* 32px */ /* 33px */ /* 34px */ /* 35px */ /* 36px */ /* 37px */ /* 38px */ /* 39px */ /* 40px */ /* 41px */ /* 42px */ /* 43px */ /* 44px */ /* 45px */ /* 46px */ /* 47px */ /* 48px */ /* 49px */ /* 50px */ /* 5em */ /* stylelint-disable property-no-vendor-prefix */ /* stylelint-disable */ .e-filled.e-float-input.e-error label.e-float-text, .e-filled.e-float-input.e-control-wrapper.e-error label.e-float-text, .e-filled.e-float-input.e-error input:focus ~ label.e-float-text, .e-filled.e-float-input.e-control-wrapper.e-error input:focus ~ label.e-float-text, .e-filled.e-float-input.e-error textarea:focus ~ label.e-float-text, .e-filled.e-float-input.e-control-wrapper.e-error textarea:focus ~ label.e-float-text, .e-filled.e-float-input.e-error.e-input-focus input ~ label.e-float-text, .e-filled.e-float-input.e-control-wrapper.e-error.e-input-focus input ~ label.e-float-text { color: var(--color-sf-danger) !important; } .e-underline.e-input-group.e-control-wrapper, .e-underline.e-input-group, .e-underline.e-input-group:not(.e-float-icon-left), .e-underline.e-float-input, .e-underline.e-float-input.e-control-wrapper, .e-underline.e-input-group:not(.e-float-icon-left), .e-underline.e-input-group.e-success:not(.e-float-icon-left), .e-underline.e-input-group.e-warning:not(.e-float-icon-left), .e-underline.e-input-group.e-error:not(.e-float-icon-left), .e-underline.e-input-group.e-control-wrapper:not(.e-float-icon-left), .e-underline.e-input-group.e-control-wrapper.e-success:not(.e-float-icon-left), .e-underline.e-input-group.e-control-wrapper.e-warning:not(.e-float-icon-left), .e-underline.e-input-group.e-control-wrapper.e-error:not(.e-float-icon-left) { border: 1px solid var(--color-sf-border); border-width: 1px; padding-top: 1px; border-radius: calc(var(--e-radius) * 0); } .e-filled.e-input-group, .e-filled.e-input-group.e-control-wrapper { border-radius: calc(var(--e-radius) * 0.25) calc(var(--e-radius) * 0.25) calc(var(--e-radius) * 0) calc(var(--e-radius) * 0); padding: 0 10px 0 12px; } .e-filled.e-float-input, .e-filled.e-float-input.e-control-wrapper { border: 1px solid; border-radius: calc(var(--e-radius) * 0.25) calc(var(--e-radius) * 0.25) calc(var(--e-radius) * 0) calc(var(--e-radius) * 0); border-width: 1px; margin-top: 0; padding: 0; } .e-underline.e-input-group:not(.e-float-icon-left), .e-underline.e-input-group.e-success:not(.e-float-icon-left), .e-underline.e-input-group.e-warning:not(.e-float-icon-left), .e-underline.e-input-group.e-error:not(.e-float-icon-left), .e-underline.e-input-group.e-control-wrapper:not(.e-float-icon-left), .e-underline.e-input-group.e-control-wrapper.e-success:not(.e-float-icon-left), .e-underline.e-input-group.e-control-wrapper.e-warning:not(.e-float-icon-left), .e-underline.e-input-group.e-control-wrapper.e-error:not(.e-float-icon-left) { border: 1px solid; border-width: 1px; padding-top: 1px; border-radius: calc(var(--e-radius) * 0); } /* stylelint-disable-line no-empty-source */ /*! component icons */ .e-time-wrapper .e-time-icon.e-icons::before, *.e-control-wrapper.e-time-wrapper .e-time-icon.e-icons::before { content: "\e705"; } .e-timepicker-mob-popup-wrap .e-timepicker.e-popup-expand .e-model-header .e-popup-close::before, .e-datetimepicker.e-popup-expand .e-model-header .e-popup-close::before { content: "\e7e7"; font-family: "e-icons"; } .e-input-group.e-control-wrapper.e-time-wrapper.e-non-edit.e-input-focus .e-input:focus ~ .e-clear-icon, .e-float-input.e-control-wrapper.e-input-group.e-time-wrapper.e-non-edit.e-input-focus input:focus ~ .e-clear-icon { display: -webkit-box; display: -ms-flexbox; display: flex; } .e-time-wrapper, *.e-control-wrapper.e-time-wrapper { /* stylelint-disable property-no-vendor-prefix */ -webkit-tap-highlight-color: transparent; } .e-time-wrapper .e-time-icon.e-icons, *.e-control-wrapper.e-time-wrapper .e-time-icon.e-icons { font-size: 16px; } .e-time-wrapper .e-time-icon.e-icons.e-disabled, *.e-control-wrapper.e-time-wrapper .e-time-icon.e-icons.e-disabled { pointer-events: none; } .e-time-wrapper span, *.e-control-wrapper.e-time-wrapper span { cursor: pointer; } .e-timepicker.e-time-modal { background-color: var(--color-sf-content-bg-color-alt2); height: 100%; left: 0; opacity: 0.5; pointer-events: auto; position: fixed; top: 0; width: 100%; z-index: 999; } .e-timepicker.e-popup { border-style: solid; border-width: 1px; overflow: auto; } .e-timepicker.e-popup .e-content { position: relative; } .e-timepicker.e-popup .e-list-parent.e-ul { margin: 0; padding: 0 0; } .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item { cursor: default; font-size: 14px; overflow: hidden; position: relative; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; width: 100%; } .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item.e-hover { cursor: pointer; } .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item { line-height: 30px; text-indent: 12px; } .e-small .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item, *.e-small.e-timepicker.e-popup .e-list-parent.e-ul .e-list-item { font-size: 14px; line-height: 26px; text-indent: 8px; } .e-small .e-time-wrapper .e-time-icon.e-icons, *.e-small.e-time-wrapper .e-time-icon.e-icons, *.e-small .e-control-wrapper.e-time-wrapper .e-time-icon.e-icons, *.e-control-wrapper.e-small.e-time-wrapper .e-time-icon.e-icons { font-size: 14px; } .e-content-placeholder.e-timepicker.e-placeholder-timepicker { background-size: 250px 33px; min-height: 33px; } /* stylelint-disable */ .e-time-overflow { overflow: hidden; } .e-timepicker-mob-popup-wrap { -webkit-box-align: center; -ms-flex-align: center; align-items: center; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; height: 100%; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; left: 0; max-height: 100%; position: fixed; top: 0; width: 100%; z-index: 1002; } .e-timepicker-mob-popup-wrap .e-timepicker.e-popup.e-lib.e-control.e-popup-open { left: 0 !important; position: relative; top: 0 !important; } .e-timepicker-mob-popup-wrap .e-popup-expand.e-timepicker.e-popup, .e-datetimepicker.e-popup-expand.e-timepicker.e-popup, .e-timepicker-mob-popup-wrap .e-popup-expand.e-datetimepicker.e-popup, .e-datetimepicker.e-popup-expand.e-popup { border-radius: calc(var(--e-radius) * 0); } .e-timepicker-mob-popup-wrap .e-popup-expand .e-model-header, .e-datetimepicker.e-popup-expand .e-model-header { height: 10%; padding: 2.5vh 2.5vw 2.5vh 1.5vw; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; font-size: 2vh; border-bottom: 1px solid var(--color-sf-border-light); } .e-timepicker-mob-popup-wrap .e-popup-expand .e-model-header .e-popup-close, .e-datetimepicker.e-popup-expand .e-model-header .e-popup-close { float: left; padding: 1vh 2vw; } .e-timepicker-mob-popup-wrap .e-popup-expand .e-model-header .e-model-title, .e-datetimepicker.e-popup-expand .e-model-header .e-model-title { padding: 1vh 2vw; text-transform: capitalize; font-weight: 500; } .e-timepicker-mob-popup-wrap .e-popup-expand .e-model-header .e-btn.e-popup-close, .e-datetimepicker.e-popup-expand .e-model-header .e-btn.e-popup-close { font-size: 2vh; } .e-timepicker-mob-popup-wrap .e-popup-expand .e-content, .e-datetimepicker.e-popup-expand .e-content { height: 90%; overflow: auto; } .e-timepicker-mob-popup-wrap .e-popup-expand .e-content .e-list-parent.e-ul .e-list-item, .e-datetimepicker.e-popup-expand .e-content .e-list-parent.e-ul .e-list-item { padding: 1vh 0; line-height: 5vh; } @media (max-device-width: 768px) { .e-timepicker-mob-popup-wrap .e-popup-expand .e-content .e-list-parent.e-ul .e-list-item, .e-datetimepicker.e-popup-expand .e-content .e-list-parent.e-ul .e-list-item { font-size: 14px; } } @media (min-device-width: 768px) { .e-timepicker-mob-popup-wrap .e-popup-expand .e-content .e-list-parent.e-ul .e-list-item, .e-datetimepicker.e-popup-expand .e-content .e-list-parent.e-ul .e-list-item { font-size: 24px; } } @media screen and (orientation: landscape) { .e-timepicker-mob-popup-wrap .e-popup-expand .e-model-header, .e-datetimepicker.e-popup-expand .e-model-header { height: 15%; font-size: 2vw; } .e-timepicker-mob-popup-wrap .e-popup-expand .e-model-header .e-popup-close, .e-datetimepicker.e-popup-expand .e-model-header .e-popup-close { padding: 1vh 1vw; } .e-timepicker-mob-popup-wrap .e-popup-expand .e-model-header .e-model-title, .e-datetimepicker.e-popup-expand .e-model-header .e-model-title { padding: 1vh 1vw; } .e-timepicker-mob-popup-wrap .e-popup-expand .e-model-header .e-btn.e-popup-close, .e-datetimepicker.e-popup-expand .e-model-header .e-btn.e-popup-close { font-size: 2vw; } .e-timepicker-mob-popup-wrap .e-popup-expand .e-content, .e-datetimepicker.e-popup-expand .e-content { height: 85%; } .e-timepicker-mob-popup-wrap .e-popup-expand .e-content .e-list-parent.e-ul .e-list-item, .e-datetimepicker.e-popup-expand .e-content .e-list-parent.e-ul .e-list-item { padding: 1vh 0; line-height: 10vh; } } /* stylelint-enable */ .e-time-wrapper .e-input-group-icon.e-icons.e-active { color: var(--color-sf-content-text-color-selected); } .e-time-wrapper.e-input-group:not(.e-disabled) .e-input-group-icon.e-active:active { color: var(--color-sf-flyout-text-color-pressed); } .e-timepicker.e-popup { background-color: var(--color-sf-flyout-bg-color); border: 1px solid var(--color-sf-border-light); border-radius: calc(var(--e-radius) * 0.375); -webkit-box-shadow: none; box-shadow: none; } .e-timepicker.e-popup .e-list-parent.e-ul { background-color: var(--color-sf-flyout-bg-color); } .e-timepicker.e-popup .e-list-parent.e-ul li.e-list-item { border: none; color: var(--color-sf-content-text-color); } .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item.e-disabled { color: var(--color-sf-content-text-color-disabled); opacity: 1; pointer-events: none; -ms-touch-action: none; touch-action: none; } .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item.e-hover { background: var(--color-sf-flyout-bg-color-hover); color: var(--color-sf-flyout-text-color-hover); } .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item.e-navigation { background: var(--color-sf-flyout-bg-color); color: var(--color-sf-flyout-text-color); -webkit-box-shadow: inset 0 0 0 2px var(--color-sf-primary); box-shadow: inset 0 0 0 2px var(--color-sf-primary); } .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item:focus { background: var(--color-sf-flyout-bg-color-focus); color: var(--color-sf-flyout-text-color-focus); } .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item.e-hover, .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item.e-navigation, .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item:focus { background-color: var(--color-sf-flyout-bg-color-hover); border: none; color: var(--color-sf-flyout-text-color-hover); } .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item.e-active { color: var(--color-sf-flyout-text-color-pressed); font-weight: 500; } .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item.e-active.e-hover { background-color: var(--color-sf-flyout-bg-color-hover); color: var(--color-sf-flyout-text-color-hover); } .e-small .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item, *.e-small.e-timepicker.e-popup .e-list-parent.e-ul .e-list-item { color: var(--color-sf-content-text-color); } .e-timepicker-mob-popup-wrap .e-timepicker.e-popup-expand .e-model-header, .e-datetimepicker.e-popup-expand .e-model-header { background-color: var(--color-sf-flyout-bg-color); color: var(--color-sf-content-text-color-alt1); } .e-timepicker-mob-popup-wrap .e-timepicker.e-popup-expand .e-model-header .e-popup-close, .e-datetimepicker.e-popup-expand .e-model-header .e-popup-close { color: var(--color-sf-content-text-color-alt1); font-weight: 500; } .e-bigger .e-time-wrapper .e-time-icon.e-icons, *.e-bigger.e-time-wrapper .e-time-icon.e-icons, *.e-bigger .e-control-wrapper .e-time-wrapper .e-time-icon.e-icons, *.e-control-wrapper.e-bigger.e-time-wrapper .e-time-icon.e-icons { font-size: 18px; } .e-bigger .e-timepicker.e-popup .e-list-parent.e-ul, *.e-bigger.e-timepicker.e-popup .e-list-parent.e-ul { padding: 0 0; } .e-bigger .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item, *.e-bigger.e-timepicker.e-popup .e-list-parent.e-ul .e-list-item { font-size: 16px; line-height: 32px; text-indent: 16px; } .e-bigger .e-content-placeholder.e-timepicker.e-placeholder-timepicker, .e-bigger.e-content-placeholder.e-timepicker.e-placeholder-timepicker { background-size: 250px 40px; min-height: 40px; } .e-small.e-bigger .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item, *.e-small.e-bigger.e-timepicker.e-popup .e-list-parent.e-ul .e-list-item { font-size: 14px; line-height: 30px; text-indent: 16px; } .e-small.e-bigger .e-time-wrapper .e-time-icon.e-icons, *.e-small.e-bigger.e-time-wrapper .e-time-icon.e-icons, *.e-small.e-bigger .e-control-wrapper.e-time-wrapper .e-time-icon.e-icons, *.e-control-wrapper.e-small.e-bigger.e-time-wrapper .e-time-icon.e-icons { font-size: 16px; } .e-bigger.e-small .e-timepicker.e-popup .e-list-parent.e-ul .e-list-item, *.e-bigger.e-small.e-timepicker.e-popup .e-list-parent.e-ul .e-list-item { color: var(--color-sf-content-text-color); }