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.

444 lines (429 loc) 18.3 kB
/* stylelint-disable property-no-vendor-prefix */ /*! calendar fabric theme variables */ /*! component icons */ .e-input-group-icon.e-date-icon, *.e-control-wrapper .e-input-group-icon.e-date-icon { font-size: 16px; margin: 0; outline: none; } .e-input-group-icon.e-date-icon::before, *.e-control-wrapper .e-input-group-icon.e-date-icon::before { content: "\e93a"; font-family: "e-icons"; } .e-input-group-icon.e-date-icon:focus, *.e-control-wrapper .e-input-group-icon.e-date-icon:focus { background: #685708; border-radius: 0; } .e-small .e-input-group-icon.e-date-icon, *.e-control-wrapper.e-small .e-input-group-icon.e-date-icon, *.e-small .e-control-wrapper .e-input-group-icon.e-date-icon { font-size: 14px; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-popup-close::before { content: "\e7fc"; font-family: "e-icons"; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header .e-date-icon-next::before { content: "\e85c"; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header .e-date-icon-prev::before { content: "\e98f"; } .e-input-group.e-control-wrapper.e-date-wrapper.e-non-edit.e-input-focus .e-input:focus ~ .e-clear-icon, .e-float-input.e-control-wrapper.e-input-group.e-date-wrapper.e-non-edit.e-input-focus input:focus ~ .e-clear-icon { display: -webkit-box; display: -ms-flexbox; display: flex; } .e-datepicker .e-calendar .e-content table tbody tr.e-month-hide:last-child { display: table-row; } .e-datepicker.e-popup-wrapper { border-radius: 0; overflow-y: hidden; pointer-events: auto; } .e-datepicker.e-date-modal { background-color: rgba(0, 0, 0, 0.6); height: 100%; left: 0; opacity: 0.5; pointer-events: auto; position: fixed; top: 0; width: 100%; z-index: 999; } .e-datepicker .e-model-header { background-color: #000; color: #fff; cursor: default; display: block; padding: 10px 10px 10px 15px; } .e-datepicker .e-model-header .e-model-year { font-size: 14px; font-weight: 500; line-height: 32px; margin: 0; } .e-datepicker .e-model-month, .e-datepicker .e-model-day { font-size: 20px; font-weight: 500; line-height: 32px; margin: 0; } /* stylelint-disable */ .e-date-overflow { overflow: hidden !important; } .e-datepick-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-datepick-mob-popup-wrap .e-datepicker.e-popup-wrapper.e-lib.e-popup.e-control.e-popup-open { position: relative; top: 0 !important; left: 0 !important; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-wrapper.e-popup-expand.e-lib.e-popup.e-control.e-popup-open { min-width: 100%; min-height: 100%; } .e-content-placeholder.e-datepicker.e-placeholder-datepicker { background-size: 250px 33px; min-height: 33px; } @media screen and (orientation: landscape) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-content.e-month td.e-today span.e-day { line-height: 64px; } } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand { border-radius: 0; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header.e-blazor-device { height: 15vh; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header.e-blazor-device .e-popup-close { float: right; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header.e-blazor-device { height: 15vh; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header.e-blazor-device .e-popup-close { float: right; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header { height: 20vh; padding: 2vh 6vw; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-day-wrapper { margin: 12vh 0 0 0; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-popup-close { color: inherit; float: left; font-size: 18px; } @media (min-device-width: 768px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-popup-close { font-size: 18px; } } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-btn.e-flat.e-popup-close { background: transparent; border-color: transparent; -webkit-box-shadow: none; box-shadow: none; font-weight: 400; padding: 0; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-today.e-flat.e-primary { color: inherit; float: right; } @media (min-device-width: 768px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-today.e-flat.e-primary { font-size: 18px; } } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-month, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-day { font-size: 5vw; line-height: 6vw; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar { min-width: 100%; min-height: 100%; height: 100%; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade { height: 10vh; border-style: solid; border-width: 1px 0; border-color: #969696; padding: 2vh 2vw; line-height: 5vh; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-title, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-title, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-title { position: absolute; line-height: inherit; margin-left: 22vw; text-align: center; vertical-align: middle; width: 50vw; } @media (min-device-width: 768px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-title, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-title, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-title { font-size: 18px; } } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-prev, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-prev, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-prev { margin-right: 75vw; vertical-align: inherit; height: 35px; width: 35px; } @media (min-device-width: 768px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-prev, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-prev, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-prev { height: 55px; width: 55px; } } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-prev .e-icons, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-prev .e-icons, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-prev .e-icons { vertical-align: inherit; } @media (min-device-width: 768px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-prev .e-icons, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-prev .e-icons, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-prev .e-icons { font-size: 18px; } } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-next, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-next, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-next { margin-right: 0; vertical-align: inherit; height: 35px; width: 35px; } @media (min-device-width: 768px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-next, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-next, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-next { height: 55px; width: 55px; } } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-next .e-icons, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-next .e-icons, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-next .e-icons { vertical-align: inherit; } @media (min-device-width: 768px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-next .e-icons, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-next .e-icons, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-next .e-icons { font-size: 18px; } } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-icon-container, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-icon-container, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-icon-container { float: none; } @media (min-device-width: 768px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar th { font-size: 18px; height: 48px; } } @media (min-device-width: 768px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-content span.e-day { font-size: 18px; height: 64px; width: 64px; line-height: 64px; } } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container { height: 79vh; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-footer-container { display: none; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-month { height: 69vh; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-month table { height: 69vh; } @media screen and (orientation: landscape) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header.e-blazor-device { height: 25vh; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header.e-blazor-device .e-popup-close { float: right; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-month, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-year, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-decade { overflow-y: auto; } } @media screen and (orientation: landscape) and (max-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-month, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-year, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-decade { height: 50vh; } } @media screen and (orientation: landscape) and (min-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-month, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-year, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-decade { height: 60vh; } } @media screen and (orientation: landscape) and (min-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-month table, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-year table, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-content.e-decade table { height: 60vh; } } @media screen and (orientation: landscape) and (min-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container .e-footer-container { padding: 10px 0; height: 10%; font-size: 24px; } } @media screen and (orientation: landscape) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header { width: 100%; } } @media screen and (orientation: landscape) and (max-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header { height: 30vh; } } @media screen and (orientation: landscape) and (min-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header { height: 25vh; } } @media screen and (orientation: landscape) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-popup-close { float: left; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-day-wrapper { margin: 12vh 0 0 0; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-model-month, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-model-day { font-size: 4vw; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-prev, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-prev, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-prev { margin-right: 82vw; } } @media screen and (orientation: landscape) and (max-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-title, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-title, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-title { line-height: 12vh; } } @media screen and (orientation: landscape) and (min-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-month .e-title, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-year .e-title, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header.e-decade .e-title { line-height: inherit; } } @media screen and (orientation: landscape) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-month, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-year, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-decade { overflow-y: auto; } } @media screen and (orientation: landscape) and (max-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-month, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-year, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-decade { height: 60vh; } } @media screen and (orientation: landscape) and (min-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-month, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-year, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-decade { height: 65vh; } } @media screen and (orientation: landscape) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar { display: block; max-width: 100%; overflow: visible; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar-cell-container { height: 70%; width: 100%; } .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar.e-device .e-month table tbody { display: table-row-group; } } @media screen and (orientation: landscape) and (max-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-month table, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-decade table, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-year table { height: 69vh; } } @media screen and (orientation: landscape) and (min-height: 600px) { .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-month table, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-decade table, .e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-content.e-year table { height: 65vh; } } /* stylelint-enable */ .e-datepicker.e-popup-wrapper, .e-small.e-datepicker.e-popup-wrapper { border: 1px solid #969696; -webkit-box-shadow: none; box-shadow: none; } .e-datepicker .e-calendar, .e-small.e-datepicker .e-calendar { background-color: #000; border: none; } *.e-input-group.e-date-wrapper.e-dateinput-active:active:not(.e-success):not(.e-warning):not(.e-error) { border: 2px solid #fff; } .e-date-wrapper span.e-input-group-icon.e-date-icon.e-icons.e-active { color: #fff; } .e-date-wrapper span.e-input-group-icon.e-date-icon.e-icons.e-active { color: #fff; } .e-bigger .e-content-placeholder.e-datepicker.e-placeholder-datepicker, .e-bigger.e-content-placeholder.e-datepicker.e-placeholder-datepicker { background-size: 250px 40px; min-height: 40px; } .e-bigger.e-datepicker.e-popup-wrapper, .e-bigger.e-small.e-datepicker.e-popup-wrapper { border: 1px solid #969696; -webkit-box-shadow: none; box-shadow: none; } .e-bigger.e-datepicker .e-calendar, .e-bigger.e-small.e-datepicker .e-calendar { background-color: #000; border: none; } .e-bigger .e-input-group-icon.e-date-icon, *.e-control-wrapper.e-bigger .e-input-group-icon.e-date-icon, *.e-bigger .e-control-wrapper .e-input-group-icon.e-date-icon { font-size: 18px; margin: 0; } .e-small.e-bigger .e-input-group-icon.e-date-icon, *.e-control-wrapper.e-small.e-bigger .e-input-group-icon.e-date-icon, *.e-small.e-bigger .e-control-wrapper .e-input-group-icon.e-date-icon { font-size: 18px; }