vendor/assets/stylesheets/flatpickr/themes/airbnb.css in flatpickr-2.4.8.0 vs vendor/assets/stylesheets/flatpickr/themes/airbnb.css in flatpickr-2.4.9.0
- old
+ new
@@ -4,11 +4,12 @@
max-height: 0;
opacity: 0;
visibility: hidden;
text-align: center;
padding: 0;
- animation: none;
+ -webkit-animation: none;
+ animation: none;
direction: ltr;
border: 0;
font-size: 14px;
line-height: 24px;
border-radius: 5px;
@@ -25,13 +26,16 @@
overflow: visible;
max-height: 640px;
}
.flatpickr-calendar.open {
display: inline-block;
- animation: flatpickrFadeInDown 300ms cubic-bezier(0, 1, 0.5, 1);
z-index: 99999;
}
+.flatpickr-calendar.animate.open {
+ -webkit-animation: flatpickrFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);
+ animation: flatpickrFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);
+}
.flatpickr-calendar.inline {
display: block;
position: relative;
top: 2px;
}
@@ -44,10 +48,19 @@
display: block;
}
.flatpickr-calendar.hasWeeks {
width: auto;
}
+.flatpickr-calendar .hasWeeks .dayContainer,
+.flatpickr-calendar .hasTime .dayContainer {
+ border-bottom: 0;
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 0;
+}
+.flatpickr-calendar .hasWeeks .dayContainer {
+ border-left: 0;
+}
.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {
height: 40px;
border-top: 1px solid #eee;
}
.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
@@ -95,10 +108,13 @@
border-top-color: #eee;
}
.flatpickr-calendar.arrowBottom:after {
border-top-color: #fff;
}
+.flatpickr-calendar:focus {
+ outline: 0;
+}
.flatpickr-wrapper {
position: relative;
display: inline-block;
}
.flatpickr-month {
@@ -107,20 +123,25 @@
fill: #3c3f40;
height: 28px;
line-height: 24px;
text-align: center;
position: relative;
- user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ overflow: hidden;
}
.flatpickr-prev-month,
.flatpickr-next-month {
text-decoration: none;
cursor: pointer;
position: absolute;
- top: 10px;
- height: 16px;
+ top: 0px;
+ height: 28px;
line-height: 16px;
+ padding: 10px calc(3.57% - 1.5px);
}
.flatpickr-prev-month i,
.flatpickr-next-month i {
position: relative;
}
@@ -128,11 +149,11 @@
.flatpickr-next-month.flatpickr-prev-month {
/*
/*rtl:begin:ignore*/
/*
*/
- left: calc(3.57% - 1.5px);
+ left: 0;
/*
/*rtl:end:ignore*/
/*
*/
}
@@ -144,11 +165,11 @@
.flatpickr-next-month.flatpickr-next-month {
/*
/*rtl:begin:ignore*/
/*
*/
- right: calc(3.57% - 1.5px);
+ right: 0;
/*
/*rtl:end:ignore*/
/*
*/
}
@@ -247,11 +268,42 @@
width: 75%;
left: 12.5%;
top: 5px;
display: inline-block;
text-align: center;
+ -webkit-transform: translate(0px, 0px);
+ -ms-transform: translate(0px, 0px);
+ transform: translate(0px, 0px);
}
+.flatpickr-current-month.slideLeft {
+ -webkit-transform: translate(-100%, 0px);
+ -ms-transform: translate(-100%, 0px);
+ transform: translate(-100%, 0px);
+ -webkit-animation: fadeOut 400ms ease, slideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
+ animation: fadeOut 400ms ease, slideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
+}
+.flatpickr-current-month.slideLeftNew {
+ -webkit-transform: translate(100%, 0px);
+ -ms-transform: translate(100%, 0px);
+ transform: translate(100%, 0px);
+ -webkit-animation: fadeIn 400ms ease, slideLeftNew 400ms cubic-bezier(0.23, 1, 0.32, 1);
+ animation: fadeIn 400ms ease, slideLeftNew 400ms cubic-bezier(0.23, 1, 0.32, 1);
+}
+.flatpickr-current-month.slideRight {
+ -webkit-transform: translate(100%, 0px);
+ -ms-transform: translate(100%, 0px);
+ transform: translate(100%, 0px);
+ -webkit-animation: fadeOut 400ms ease, slideRight 400ms cubic-bezier(0.23, 1, 0.32, 1);
+ animation: fadeOut 400ms ease, slideRight 400ms cubic-bezier(0.23, 1, 0.32, 1);
+}
+.flatpickr-current-month.slideRightNew {
+ -webkit-transform: translate(0, 0);
+ -ms-transform: translate(0, 0);
+ transform: translate(0, 0);
+ -webkit-animation: fadeIn 400ms ease, slideRightNew 400ms cubic-bezier(0.23, 1, 0.32, 1);
+ animation: fadeIn 400ms ease, slideRightNew 400ms cubic-bezier(0.23, 1, 0.32, 1);
+}
.flatpickr-current-month span.cur-month {
font-family: inherit;
font-weight: 700;
color: inherit;
display: inline-block;
@@ -301,46 +353,118 @@
}
.flatpickr-weekdays {
background: transparent;
text-align: center;
overflow: hidden;
+ width: 315px;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-align-items: center;
+ -ms-flex-align: center;
+ align-items: center;
+ height: 28px;
}
-.flatpickr-days,
+span.flatpickr-weekday {
+ cursor: default;
+ font-size: 90%;
+ color: rgba(117,117,117,0.54);
+ line-height: 1;
+ margin: 0;
+ background: transparent;
+ text-align: center;
+ display: block;
+ -webkit-flex: 1;
+ -ms-flex: 1;
+ flex: 1;
+ font-weight: bolder;
+ margin: 0;
+}
+.dayContainer,
.flatpickr-weeks {
padding: 1px 0 0 0;
}
.flatpickr-days {
+ position: relative;
+ overflow: hidden;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ width: 315px;
+}
+.flatpickr-days:focus {
+ outline: 0;
+}
+.dayContainer {
padding: 0;
outline: 0;
text-align: left;
width: 315px;
+ min-width: 315px;
+ max-width: 315px;
box-sizing: border-box;
display: inline-block;
display: -ms-flexbox;
+ display: -webkit-flex;
display: flex;
- flex-wrap: wrap;
+ -webkit-flex-wrap: wrap;
+ flex-wrap: wrap;
-ms-flex-wrap: wrap;
-ms-flex-pack: justify;
- justify-content: space-around;
+ -webkit-justify-content: space-around;
+ justify-content: space-around;
+ -webkit-transform: translate(0px, 0px);
+ -ms-transform: translate(0px, 0px);
+ transform: translate(0px, 0px);
+ opacity: 1;
}
+.flatpickr-calendar.animate .dayContainer.slideLeft {
+ -webkit-animation: fadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1), slideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
+ animation: fadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1), slideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
+}
+.flatpickr-calendar.animate .dayContainer.slideLeft,
+.flatpickr-calendar.animate .dayContainer.slideLeftNew {
+ -webkit-transform: translate(-100%, 0px);
+ -ms-transform: translate(-100%, 0px);
+ transform: translate(-100%, 0px);
+}
+.flatpickr-calendar.animate .dayContainer.slideLeftNew {
+ -webkit-animation: fadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1), slideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
+ animation: fadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1), slideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
+}
+.flatpickr-calendar.animate .dayContainer.slideRight {
+ -webkit-animation: fadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1), slideRight 400ms cubic-bezier(0.23, 1, 0.32, 1);
+ animation: fadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1), slideRight 400ms cubic-bezier(0.23, 1, 0.32, 1);
+ -webkit-transform: translate(100%, 0px);
+ -ms-transform: translate(100%, 0px);
+ transform: translate(100%, 0px);
+}
+.flatpickr-calendar.animate .dayContainer.slideRightNew {
+ -webkit-animation: fadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1), slideRightNew 400ms cubic-bezier(0.23, 1, 0.32, 1);
+ animation: fadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1), slideRightNew 400ms cubic-bezier(0.23, 1, 0.32, 1);
+}
.flatpickr-day {
background: none;
border: 1px solid transparent;
border-radius: 150px;
box-sizing: border-box;
color: #404848;
cursor: pointer;
font-weight: 400;
width: 14.2857143%;
- flex-basis: 14.2857143%;
+ -webkit-flex-basis: 14.2857143%;
+ -ms-flex-preferred-size: 14.2857143%;
+ flex-basis: 14.2857143%;
max-width: 40px;
height: 40px;
line-height: 40px;
margin: 0;
display: inline-block;
position: relative;
- justify-content: center;
+ -webkit-justify-content: center;
+ -ms-flex-pack: center;
+ justify-content: center;
text-align: center;
}
.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
@@ -368,10 +492,13 @@
color: #fff;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
+.flatpickr-day.selected.inRange,
+.flatpickr-day.startRange.inRange,
+.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
@@ -381,10 +508,11 @@
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
background: #4f99ff;
+ box-shadow: none;
color: #fff;
border-color: #4f99ff;
}
.flatpickr-day.selected.startRange,
.flatpickr-day.startRange.startRange,
@@ -394,10 +522,15 @@
.flatpickr-day.selected.endRange,
.flatpickr-day.startRange.endRange,
.flatpickr-day.endRange.endRange {
border-radius: 0 50px 50px 0;
}
+.flatpickr-day.selected.startRange + .endRange,
+.flatpickr-day.startRange.startRange + .endRange,
+.flatpickr-day.endRange.startRange + .endRange {
+ box-shadow: -10px 0 0 #4f99ff;
+}
.flatpickr-day.selected.startRange.endRange,
.flatpickr-day.startRange.startRange.endRange,
.flatpickr-day.endRange.startRange.endRange {
border-radius: 50px;
}
@@ -419,25 +552,13 @@
color: rgba(0,0,0,0.15);
background: transparent;
border-color: #e9e9e9;
cursor: default;
}
-span.flatpickr-weekday {
- cursor: default;
- font-size: 90%;
- color: rgba(117,117,117,0.54);
- height: 27.333333333333332px;
- line-height: 24px;
- margin: 0;
- background: transparent;
- text-align: center;
- display: block;
- float: left;
- width: 14.28%;
- font-weight: bold;
- margin: 0;
- padding-top: 3.333333333333333px;
+.flatpickr-day.week.selected {
+ border-radius: 0;
+ box-shadow: -5px 0 0 #4f99ff, 5px 0 0 #4f99ff;
}
.rangeMode .flatpickr-day {
margin-top: 1px;
}
.flatpickr-weekwrapper {
@@ -457,10 +578,12 @@
width: 100%;
max-width: none;
}
.flatpickr-innerContainer {
display: block;
+ display: -webkit-flex;
+ display: -ms-flexbox;
display: flex;
box-sizing: border-box;
overflow: hidden;
}
.flatpickr-rContainer {
@@ -475,20 +598,23 @@
height: 0;
line-height: 40px;
max-height: 40px;
box-sizing: border-box;
overflow: hidden;
- transition: height 0.33s cubic-bezier(0, 1, 0.5, 1);
+ display: -webkit-flex;
+ display: -ms-flexbox;
display: flex;
}
.flatpickr-time:after {
content: "";
display: table;
clear: both;
}
.flatpickr-time .numInputWrapper {
- flex: 1;
+ -webkit-flex: 1;
+ -ms-flex: 1;
+ flex: 1;
width: 40%;
height: 40px;
float: left;
}
.flatpickr-time .numInputWrapper span.arrowUp:after {
@@ -537,11 +663,14 @@
float: left;
line-height: inherit;
color: #404848;
font-weight: bold;
width: 2%;
- user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
}
.flatpickr-time .flatpickr-am-pm {
outline: 0;
width: 18%;
cursor: pointer;
@@ -550,103 +679,210 @@
}
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time .flatpickr-am-pm:focus {
background: #f3f3f3;
}
-.hasWeeks .flatpickr-days,
-.hasTime .flatpickr-days {
- border-bottom: 0;
- border-bottom-right-radius: 0;
- border-bottom-left-radius: 0;
-}
-.hasWeeks .flatpickr-days {
- border-left: 0;
-}
-@media all and (-ms-high-contrast: none) {
- .flatpickr-month {
- padding: 0;
- }
- .flatpickr-month svg {
- top: 0 !important;
- }
-}
.flatpickr-input[readonly] {
cursor: pointer;
}
-@-moz-keyframes flatpickrFadeInDown {
+@-webkit-keyframes flatpickrFadeInDown {
from {
opacity: 0;
- transform: translate3d(0, -20px, 0);
+ -webkit-transform: translate3d(0, -20px, 0);
+ transform: translate3d(0, -20px, 0);
}
to {
opacity: 1;
- transform: none;
+ -webkit-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0);
}
}
-@-webkit-keyframes flatpickrFadeInDown {
+@keyframes flatpickrFadeInDown {
from {
opacity: 0;
- transform: translate3d(0, -20px, 0);
+ -webkit-transform: translate3d(0, -20px, 0);
+ transform: translate3d(0, -20px, 0);
}
to {
opacity: 1;
- transform: none;
+ -webkit-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0);
}
}
-@-o-keyframes flatpickrFadeInDown {
+@-webkit-keyframes slideLeft {
from {
+ -webkit-transform: translate(0px, 0px);
+ transform: translate(0px, 0px);
+ }
+ to {
+ -webkit-transform: translate(-100%, 0px);
+ transform: translate(-100%, 0px);
+ }
+}
+@keyframes slideLeft {
+ from {
+ -webkit-transform: translate(0px, 0px);
+ transform: translate(0px, 0px);
+ }
+ to {
+ -webkit-transform: translate(-100%, 0px);
+ transform: translate(-100%, 0px);
+ }
+}
+@-webkit-keyframes slideLeftNew {
+ from {
+ -webkit-transform: translate(100%, 0px);
+ transform: translate(100%, 0px);
+ }
+ to {
+ -webkit-transform: translate(0px, 0px);
+ transform: translate(0px, 0px);
+ }
+}
+@keyframes slideLeftNew {
+ from {
+ -webkit-transform: translate(100%, 0px);
+ transform: translate(100%, 0px);
+ }
+ to {
+ -webkit-transform: translate(0px, 0px);
+ transform: translate(0px, 0px);
+ }
+}
+@-webkit-keyframes slideRight {
+ from {
+ -webkit-transform: translate(0, 0);
+ transform: translate(0, 0);
+ }
+ to {
+ -webkit-transform: translate(100%, 0px);
+ transform: translate(100%, 0px);
+ }
+}
+@keyframes slideRight {
+ from {
+ -webkit-transform: translate(0, 0);
+ transform: translate(0, 0);
+ }
+ to {
+ -webkit-transform: translate(100%, 0px);
+ transform: translate(100%, 0px);
+ }
+}
+@-webkit-keyframes slideRightNew {
+ from {
+ -webkit-transform: translate(-100%, 0);
+ transform: translate(-100%, 0);
+ }
+ to {
+ -webkit-transform: translate(0, 0);
+ transform: translate(0, 0);
+ }
+}
+@keyframes slideRightNew {
+ from {
+ -webkit-transform: translate(-100%, 0);
+ transform: translate(-100%, 0);
+ }
+ to {
+ -webkit-transform: translate(0, 0);
+ transform: translate(0, 0);
+ }
+}
+@-webkit-keyframes fadeOut {
+ from {
+ opacity: 1;
+ }
+ to {
opacity: 0;
- transform: translate3d(0, -20px, 0);
}
+}
+@keyframes fadeOut {
+ from {
+ opacity: 1;
+ }
to {
+ opacity: 0;
+ }
+}
+@-webkit-keyframes fadeIn {
+ from {
+ opacity: 0;
+ }
+ to {
opacity: 1;
- transform: none;
}
}
-@keyframes flatpickrFadeInDown {
+@keyframes fadeIn {
from {
opacity: 0;
- transform: translate3d(0, -20px, 0);
}
to {
opacity: 1;
- transform: none;
}
}
.flatpickr-calendar {
width: 315px;
}
-.flatpickr-days {
+.dayContainer {
padding: 0;
border-right: 0;
}
-span.flatpickr-day {
+span.flatpickr-day,
+span.flatpickr-day.prevMonthDay,
+span.flatpickr-day.nextMonthDay {
border-radius: 0 !important;
border: 1px solid #e9e9e9;
- margin: -1px 0 0 -1px;
max-width: none;
- flex-basis: calc(14.28571% + 1px);
- width: calc(14.28571% + 1px);
+ border-right-color: transparent;
}
-span.flatpickr-day:nth-child(7n) {
- border-right: 0;
+span.flatpickr-day:nth-child(n+8),
+span.flatpickr-day.prevMonthDay:nth-child(n+8),
+span.flatpickr-day.nextMonthDay:nth-child(n+8) {
+ border-top-color: transparent;
}
-span.flatpickr-day:nth-child(n+36) {
+span.flatpickr-day:nth-child(7n-6),
+span.flatpickr-day.prevMonthDay:nth-child(7n-6),
+span.flatpickr-day.nextMonthDay:nth-child(7n-6) {
+ border-left: 0;
+}
+span.flatpickr-day:nth-child(n+36),
+span.flatpickr-day.prevMonthDay:nth-child(n+36),
+span.flatpickr-day.nextMonthDay:nth-child(n+36) {
border-bottom: 0;
}
-span.flatpickr-day.today:not(.selected) {
+span.flatpickr-day:nth-child(-n+7),
+span.flatpickr-day.prevMonthDay:nth-child(-n+7),
+span.flatpickr-day.nextMonthDay:nth-child(-n+7) {
+ margin-top: 0;
+}
+span.flatpickr-day.today:not(.selected),
+span.flatpickr-day.prevMonthDay.today:not(.selected),
+span.flatpickr-day.nextMonthDay.today:not(.selected) {
border-color: #e9e9e9;
+ border-right-color: transparent;
+ border-top-color: transparent;
border-bottom-color: #f64747;
}
-span.flatpickr-day.today:not(.selected):hover {
- border-color: #f64747;
+span.flatpickr-day.today:not(.selected):hover,
+span.flatpickr-day.prevMonthDay.today:not(.selected):hover,
+span.flatpickr-day.nextMonthDay.today:not(.selected):hover {
+ border: 1px solid #f64747;
}
span.flatpickr-day.startRange,
-span.flatpickr-day.endRange {
+span.flatpickr-day.prevMonthDay.startRange,
+span.flatpickr-day.nextMonthDay.startRange,
+span.flatpickr-day.endRange,
+span.flatpickr-day.prevMonthDay.endRange,
+span.flatpickr-day.nextMonthDay.endRange {
border-color: #4f99ff;
}
span.flatpickr-day.today,
-span.flatpickr-day.selected {
+span.flatpickr-day.prevMonthDay.today,
+span.flatpickr-day.nextMonthDay.today,
+span.flatpickr-day.selected,
+span.flatpickr-day.prevMonthDay.selected,
+span.flatpickr-day.nextMonthDay.selected {
z-index: 2;
}
.rangeMode .flatpickr-day {
margin-top: -1px;
}