1 @import "flatpickr_vars";
3 @keyframes fpFadeInDown {
6 transform: translate3d( 0, -20px, 0 );
11 transform: translate3d( 0, 0, 0 );
17 background: transparent;
20 box-sizing: border-box;
30 touch-action: manipulation;
32 width: $calendarWidth;
34 @if variable-exists( "noCalendarBorder" ) {
35 box-shadow: 0 3px 13px rgb( #000 .08 );
37 background: $calendarBackground;
38 box-shadow: 1px 1px 3px 0 #666;
49 display: inline-block;
54 animation: fpFadeInDown 300ms $bezier;
65 top: calc( 100% + 2px );
74 .flatpickr-days .dayContainer:nth-child( n+1 ) {
75 & .flatpickr-day.inRange:nth-child( 7n+7 ) {
76 box-shadow: none !important;
80 .flatpickr-days .dayContainer:nth-child( n+2 ) {
81 & .flatpickr-day.inRange:nth-child( 7n+1 ) {
82 box-shadow: -2px 0 0 #E6E6E6, 5px 0 0 #E6E6E6;
91 border-bottom-left-radius: 0;
92 border-bottom-right-radius: 0;
96 @if variable-exists( "noCalendarBorder" ) {
97 .hasWeeks .dayContainer {
104 border-top: 1px solid $calendarBorderColor;
108 @if variable-exists( "noCalendarBorder" ) {
109 .flatpickr-innerContainer {
114 border: 1px solid $calendarBorderColor;
119 &.noCalendar.hasTime {
127 border: solid transparent;
132 pointer-events: none;
171 border-bottom-color: $calendarBorderColor;
175 @if variable-exists( "noCalendarBorder" ) {
176 border-bottom-color: $monthBackground;
178 border-bottom-color: $calendarBackground;
190 border-top-color: $calendarBorderColor;
194 @if variable-exists( "noCalendarBorder" ) {
195 border-top-color: $monthBackground;
197 border-top-color: $calendarBackground;
208 display: inline-block;
216 @if variable-exists( "noCalendarBorder" ) {
217 border-radius: 5px 5px 0 0;
220 background: $monthBackground;
221 color: $monthForeground;
222 fill: $monthForeground;
224 height: $monthNavHeight;
232 .flatpickr-prev-month,
233 .flatpickr-next-month {
234 color: $monthForeground;
236 fill: $monthForeground;
237 height: $monthNavHeight;
240 text-decoration: none;
244 &.flatpickr-disabled {
252 &.flatpickr-prev-month {
256 &.flatpickr-next-month {
264 @if variable-exists( "arrow_hover_color" ) {
265 fill: $arrow_hover_color;
278 transition: fill .1s;
290 display: inline-block;
300 &::-webkit-outer-spin-button,
301 &::-webkit-inner-spin-button {
308 border: 1px solid rgba( $dayForeground, .15 );
309 box-sizing: border-box;
314 padding: 0 4px 0 2px;
317 width: $timecontrols;
320 background: rgba( $invertedBg, .1 );
324 background: rgba( $invertedBg, .2 );
338 border-bottom: 4px solid rgba( $dayForeground, .6 );
339 border-left: 4px solid transparent;
340 border-right: 4px solid transparent;
349 border-left: 4px solid transparent;
350 border-right: 4px solid transparent;
351 border-top: 4px solid rgba( $dayForeground, .6 );
361 fill: rgba( $monthForeground, .5 );
367 background: rgba( $invertedBg, .05 );
375 .flatpickr-current-month {
377 display: inline-block;
380 height: $monthNavHeight;
382 line-height: inherit;
384 padding: .22 * $monthNavHeight 0 0 0;
387 transform: translate3d( 0, 0, 0 );
392 display: inline-block;
393 font-family: inherit;
399 background: rgba( $invertedBg, .05 );
404 display: inline-block;
407 span.arrowUp::after {
408 border-bottom-color: $monthForeground;
411 span.arrowDown::after {
412 border-top-color: $monthForeground;
417 appearance: textfield;
418 background: transparent;
421 box-sizing: border-box;
424 display: inline-block;
425 font-family: inherit;
429 line-height: inherit;
432 vertical-align: initial;
440 background: transparent;
441 color: rgba( $monthForeground, .5 );
443 pointer-events: none;
447 .flatpickr-monthDropdown-months {
449 background-image: url( 'data:image/svg+xml;charset=utf8,%3csvg fill="%23000000" fill-opacity="0.54" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M7 10l5 5 5-5z"/%3e%3cpath d="M0 0h24v24H0z" fill="none"/%3e%3c/svg%3e' );
450 background-position: 100% 50%;
451 background-repeat: no-repeat;
452 background-size: 24px 24px;
455 box-sizing: border-box;
458 font-family: inherit;
465 padding: 4px 28px 4px 4px;
467 vertical-align: initial;
475 .flatpickr-monthDropdown-month {
476 background-color: $monthBackground;
483 .flatpickr-weekdays {
485 background: $weekdaysBackground;
487 height: $weekdaysHeight;
492 .flatpickr-weekdaycontainer {
498 span.flatpickr-weekday {
499 background: $monthBackground;
500 color: $weekdaysForeground;
517 align-items: flex-start;
527 @if variable-exists( "noCalendarBorder" ) {
528 border-left: 1px solid $calendarBorderColor;
529 border-right: 1px solid $calendarBorderColor;
534 box-sizing: border-box;
535 display: inline-block;
538 justify-content: space-around;
539 max-width: $daysWidth;
540 min-width: $daysWidth;
545 transform: translate3d( 0, 0, 0 );
549 box-shadow: -1px 0 0 $calendarBorderColor;
555 border: 1px solid transparent;
557 box-sizing: border-box;
558 color: $dayForeground;
560 display: inline-block;
561 flex-basis: 14.2857%;
564 justify-content: center;
565 line-height: $daySize;
579 background: $dayHoverBackground;
580 border-color: $dayHoverBackground;
587 border-color: $todayColor;
591 background: $todayColor;
592 border-color: $todayColor;
594 @if variable-exists( "today_fg_color" ) {
595 color: $today_fg_color;
611 background: $selectedDayBackground;
612 border-color: $selectedDayBackground;
615 @if variable-exists( "selectedDayForeground" ) {
616 color: $selectedDayForeground;
623 border-radius: 50px 0 0 50px;
627 border-radius: 0 50px 50px 0;
630 &.startRange + .endRange:not( :nth-child( 7n+1 ) ) {
631 box-shadow: -5 * $dayMargin 0 0 $selectedDayBackground;
634 &.startRange.endRange {
641 box-shadow: -2.5 * $dayMargin 0 0 $dayHoverBackground, 2.5 * $dayMargin 0 0 $dayHoverBackground;
644 &.flatpickr-disabled,
645 &.flatpickr-disabled:hover,
649 &.notAllowed.prevMonthDay,
650 &.notAllowed.nextMonthDay {
651 background: transparent;
652 color: rgba( $dayForeground, .3 );
655 @if variable-exists( "disabled_border_color" ) {
656 border-color: $disabled_border_color;
658 border-color: transparent;
662 &.flatpickr-disabled,
663 &.flatpickr-disabled:hover {
664 color: rgba( $dayForeground, .1 );
670 box-shadow: -2.5 * $dayMargin 0 0 $selectedDayBackground, 2.5 * $dayMargin 0 0 $selectedDayBackground;
678 .rangeMode .flatpickr-day {
682 .flatpickr-weekwrapper {
688 @if variable-exists( "noCalendarBorder" ) {
689 border-left: 1px solid $calendarBorderColor;
691 box-shadow: 1px 0 0 $calendarBorderColor;
697 line-height: $weekdaysHeight;
704 background: transparent;
706 color: rgba( $dayForeground, .3 );
715 .flatpickr-innerContainer {
716 box-sizing: border-box;
721 @if variable-exists( "noCalendarBorder" ) {
722 background: $calendarBackground;
723 border-bottom: 1px solid $calendarBorderColor;
727 .flatpickr-rContainer {
728 box-sizing: border-box;
729 display: inline-block;
734 box-sizing: border-box;
738 line-height: $timeHeight;
739 max-height: $timeHeight;
744 @if variable-exists( "noCalendarBorder" ) {
745 background: $calendarBackground;
746 border-radius: 0 0 5px 5px;
761 span.arrowUp::after {
762 border-bottom-color: $dayForeground;
765 span.arrowDown::after {
766 border-top-color: $dayForeground;
770 &.hasSeconds .numInputWrapper {
774 &.time24hr .numInputWrapper {
779 appearance: textfield;
780 background: transparent;
784 box-sizing: border-box;
785 color: $dayForeground;
788 line-height: inherit;
809 .flatpickr-time-separator,
812 color: $dayForeground;
816 line-height: inherit;
833 background: lighten( $dayHoverBackground, 3 );
839 background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23369' class='bi bi-calendar3'%3E%3Cg stroke-width='1.333'%3E%3Cpath d='M10.5 0h-9A1.5 1.5 0 0 0 0 1.5v9A1.5 1.5 0 0 0 1.5 12h9a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 10.5 0zM.75 2.893c0-.355.336-.643.75-.643h9c.414 0 .75.288.75.643v7.714c0 .355-.336.643-.75.643h-9c-.414 0-.75-.288-.75-.643z'/%3E%3Cpath d='M4.875 5.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zM2.625 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm-6.75 2.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5z'/%3E%3C/g%3E%3C/svg%3E" );
840 background-position: 3px;
841 background-repeat: no-repeat;
844 padding: 3px 3px 3px 20px;