2019-07-05 19:57:05 +08:00
|
|
|
@import './mixins/mixins.scss';
|
2019-09-17 19:21:07 +08:00
|
|
|
@import './themes/vars.scss';
|
2019-07-05 19:57:05 +08:00
|
|
|
|
2019-10-17 22:16:30 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
@include once {
|
|
|
|
@include b(date-picker) {
|
|
|
|
position: relative;
|
|
|
|
width: 240px;
|
|
|
|
@include m(range) {
|
|
|
|
width: 382px;
|
2019-07-18 19:01:44 +08:00
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
}
|
2019-07-18 19:01:44 +08:00
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
|
|
|
|
@include b(date-picker-panel) {
|
|
|
|
@include once {
|
|
|
|
@include fade-in-scale-up-transition(date-picker-panel);
|
|
|
|
margin-top: 4px;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
width: 350px;
|
|
|
|
border-radius: 6px;
|
|
|
|
@include b(date-picker-panel-calendar) {
|
|
|
|
width: 350px;
|
|
|
|
@include b(date-picker-panel-month-modifier) {
|
|
|
|
margin-top: 12px;
|
|
|
|
}
|
2019-07-25 15:18:42 +08:00
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
}
|
|
|
|
background: $--date-picker-background-color;
|
|
|
|
box-shadow: $--date-picker-box-shadow;
|
|
|
|
color: $--date-picker-text-color;
|
|
|
|
@include m(datetimerange, daterange) {
|
|
|
|
@include once {
|
|
|
|
width: 701px;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
@include m(daterange) {
|
|
|
|
@include e(vertical-divider) {
|
|
|
|
height: 100%;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
2019-07-25 19:53:31 +08:00
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include b(date-picker-panel-input-wrapper) {
|
|
|
|
@include once {
|
|
|
|
flex: 1;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
@include e(arrow) {
|
|
|
|
@include once {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
@include b(base-icon) {
|
|
|
|
@include once {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
path {
|
|
|
|
fill: $--date-picker-icon-color;
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
}
|
|
|
|
}
|
2019-07-25 19:53:31 +08:00
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include e(vertical-divider) {
|
|
|
|
@include once {
|
|
|
|
width: 1px;
|
|
|
|
height: calc(100% - 62px);
|
|
|
|
margin-top: 62px;
|
|
|
|
}
|
|
|
|
background: $--date-picker-divider-color;
|
2019-07-25 19:53:31 +08:00
|
|
|
}
|
2019-07-05 19:57:05 +08:00
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include b(date-picker-panel-input-wrapper) {
|
|
|
|
@include once {
|
|
|
|
padding: 14px 24px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
@include b(input) {
|
|
|
|
width: 145px;
|
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
@include b(time-picker) {
|
|
|
|
width: 145px;
|
|
|
|
}
|
2019-07-25 15:18:42 +08:00
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
border-bottom: 1px solid $--date-picker-divider-color;
|
2019-07-05 19:57:05 +08:00
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include b(date-picker-panel-month-modifier) {
|
|
|
|
@include once {
|
2019-07-26 17:15:59 +08:00
|
|
|
display: flex;
|
2019-10-17 22:16:30 +08:00
|
|
|
height: 41px;
|
|
|
|
align-items: center;
|
|
|
|
padding-left: 24px;
|
|
|
|
padding-right: 24px;
|
|
|
|
@include e(prev, next, fast-prev, fast-next) {
|
|
|
|
cursor: pointer;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
}
|
|
|
|
@include e(fast-prev, next) {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2019-07-26 17:15:59 +08:00
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include e(prev, next, fast-prev, fast-next) {
|
|
|
|
path {
|
|
|
|
fill: $--date-picker-icon-color;
|
|
|
|
}
|
2019-07-26 14:09:59 +08:00
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include e(month-year) {
|
2019-10-17 23:16:38 +08:00
|
|
|
@include once {
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 700;
|
|
|
|
line-height: 17px;
|
|
|
|
flex-grow: 1;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
color: $--date-picker-month-text-color;
|
2019-07-26 14:09:59 +08:00
|
|
|
}
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include b(date-picker-panel-weekdays) {
|
2019-10-17 23:16:38 +08:00
|
|
|
@include once {
|
|
|
|
padding: 8px 24px 14px 24px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include e(day) {
|
2019-10-17 23:16:38 +08:00
|
|
|
@include once {
|
|
|
|
line-height: 15px;
|
|
|
|
width: 30px;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
color: $--date-picker-text-color;
|
2019-07-05 19:57:05 +08:00
|
|
|
}
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include b(date-picker-panel-dates) {
|
2019-10-17 23:16:38 +08:00
|
|
|
@include once {
|
|
|
|
padding: 8px 14px 8px 14px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include e(date) {
|
2019-10-17 23:16:38 +08:00
|
|
|
@include once {
|
|
|
|
position: relative;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
line-height: 24px;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 12px;
|
|
|
|
margin: 8px 11px;
|
|
|
|
border-radius: 3px;
|
|
|
|
z-index: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: background-color .2s $default-cubic-bezier, color .2s $default-cubic-bezier;
|
|
|
|
@include m(no-transition) {
|
|
|
|
transition: none!important;
|
|
|
|
}
|
2019-07-05 19:57:05 +08:00
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
|
|
|
|
|
2019-10-17 22:16:30 +08:00
|
|
|
@include not-m(in-display-month) {
|
|
|
|
color: map-get($--date-picker-item-text-color, 'inactive');
|
2019-08-29 18:57:47 +08:00
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include m(current) {
|
|
|
|
color: map-get($--date-picker-item-text-color, 'current');
|
|
|
|
&::after {
|
2019-10-17 23:16:38 +08:00
|
|
|
@include once {
|
|
|
|
position: absolute;
|
|
|
|
top: 3px;
|
|
|
|
right: 2px;
|
|
|
|
content: "";
|
|
|
|
height: 4px;
|
|
|
|
width: 4px;
|
|
|
|
border-radius: 2px;
|
|
|
|
transition: background-color .2s $default-cubic-bezier;
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
background-color: map-get($--date-picker-item-background-color, 'active');
|
|
|
|
}
|
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
@include m(in-display-month) {
|
|
|
|
@include m(in-span) {
|
|
|
|
@include not-m(selected) {
|
|
|
|
&::before {
|
|
|
|
@include once {
|
|
|
|
content: "";
|
|
|
|
z-index: -1;
|
|
|
|
position: absolute;
|
|
|
|
left: -11px;
|
|
|
|
right: -11px;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
background: map-get($--date-picker-item-background-color, 'hover');
|
|
|
|
}
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
@include m(selected) {
|
|
|
|
@include once {
|
|
|
|
border-radius: 3px;
|
|
|
|
width: 24px;
|
|
|
|
margin: 8px 11px;
|
|
|
|
}
|
|
|
|
color: map-get($--date-picker-item-text-color, 'active');
|
|
|
|
background-color: map-get($--date-picker-item-background-color, 'active');
|
|
|
|
&::after {
|
|
|
|
background-color: map-get($--date-picker-item-sup-color, 'active');
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
background-color: map-get($--date-picker-item-background-color, 'hover');
|
|
|
|
}
|
2019-07-05 19:57:05 +08:00
|
|
|
}
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
@include e(divider) {
|
2019-10-17 23:16:38 +08:00
|
|
|
@include once {
|
|
|
|
margin: 0 24px;
|
|
|
|
height: 1px;
|
|
|
|
background-color: $--date-picker-divider-color;
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
}
|
|
|
|
@include b(date-picker-panel-actions) {
|
2019-10-17 23:16:38 +08:00
|
|
|
@include once {
|
|
|
|
flex: 1;
|
|
|
|
height: 47px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
|
|
|
@include b(button) {
|
|
|
|
margin-bottom: 0;
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
border-top: 1px solid $--date-picker-divider-color;
|
2019-07-05 19:57:05 +08:00
|
|
|
}
|
|
|
|
}
|
2019-10-17 22:16:30 +08:00
|
|
|
}
|