@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.
453 lines (434 loc) • 18.9 kB
CSS
/* stylelint-disable property-no-vendor-prefix */
/* stylelint-disable-line no-empty-source */
/*! calendar bootstrap5 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;
min-height: 18px;
min-width: 30px;
outline: none;
}
.e-input-group-icon.e-date-icon::before,
*.e-control-wrapper .e-input-group-icon.e-date-icon::before {
content: "\e75e";
font-family: "e-icons";
}
.e-input-group-icon.e-date-icon:focus,
*.e-control-wrapper .e-input-group-icon.e-date-icon:focus {
background: var(--color-sf-secondary-text-color-hover);
border-radius: 50%;
}
.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: 16px;
}
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-model-header .e-popup-close::before {
content: "\e7e7";
font-family: "e-icons";
}
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header .e-date-icon-next::before {
content: "\e748";
}
.e-datepick-mob-popup-wrap .e-datepicker.e-popup-expand .e-calendar .e-header .e-date-icon-prev::before {
content: "\e765";
}
.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: none;
}
.e-datepicker.e-popup-wrapper {
border-radius: 6px;
overflow-y: hidden;
pointer-events: auto;
}
.e-datepicker.e-date-modal {
background-color: rgba(var(--color-sf-black), 0.5);
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: var(--color-sf-icon-color);
color: var(--color-sf-content-bg-color-alt2);
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;
color: var(--color-sf-content-text-color);
}
.e-datepicker .e-model-month, .e-datepicker .e-model-day {
font-size: 20px;
font-weight: 600;
line-height: 32px;
margin: 0;
color: var(--color-sf-content-text-color);
}
/* stylelint-disable */
.e-date-overflow {
overflow: hidden ;
}
.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 ;
left: 0 ;
}
.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;
background-color: transparent;
}
@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: var(--color-sf-border-light);
padding: 1.8vh 2vw 1.3vh 1.8vh;
line-height: 6vh;
}
.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 {
margin-left: 0;
text-align: left;
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: 18px;
vertical-align: inherit;
height: 46px;
width: 46px;
}
@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: 70px;
width: 70px;
}
}
.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: 46px;
width: 46px;
}
@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: 70px;
width: 70px;
}
}
.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: right;
}
@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: 0;
}
}
@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 var(--color-sf-border-light);
-webkit-box-shadow: 0 16px 48px rgba(var(--color-sf-black), 0.175);
box-shadow: 0 16px 48px rgba(var(--color-sf-black), 0.175);
}
.e-datepicker .e-calendar,
.e-small.e-datepicker .e-calendar {
background-color: var(--color-sf-flyout-bg-color);
border: none;
}
*.e-input-group.e-date-wrapper.e-dateinput-active:active:not(.e-success):not(.e-warning):not(.e-error) {
border: none;
}
.e-date-wrapper span.e-input-group-icon.e-date-icon.e-icons.e-active {
background: var(--color-sf-secondary-bg-color-pressed);
border-color: var(--color-sf-border);
color: var(--color-sf-secondary-text-color);
}
.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 var(--color-sf-border-light);
-webkit-box-shadow: 0 16px 48px rgba(var(--color-sf-black), 0.175);
box-shadow: 0 16px 48px rgba(var(--color-sf-black), 0.175);
}
.e-bigger.e-datepicker .e-calendar,
.e-bigger.e-small.e-datepicker .e-calendar {
background-color: var(--color-sf-flyout-bg-color);
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;
min-height: 18px;
min-width: 36px;
}
.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: 20px;
}