2019-04-30 11:11:25 +08:00
|
|
|
.#{$ns}DatePicker {
|
2019-12-06 09:58:08 +08:00
|
|
|
position: relative;
|
|
|
|
display: inline-flex;
|
|
|
|
flex-wrap: nowrap;
|
2020-12-21 10:08:40 +08:00
|
|
|
border: var(--DatePicker-borderWidth) solid var(--DatePicker-borderColor);
|
|
|
|
font-size: var(--DatePicker-fontSize);
|
|
|
|
padding: var(--DatePicker-paddingY) var(--DatePicker-paddingX);
|
|
|
|
height: var(--DatePicker-height);
|
2019-12-06 09:58:08 +08:00
|
|
|
outline: none;
|
|
|
|
white-space: nowrap;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--DatePicker-color);
|
|
|
|
background: var(--DatePicker-bg);
|
|
|
|
border-radius: var(--DatePicker-borderRadius);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
2021-08-18 15:58:35 +08:00
|
|
|
@include input-border();
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&:not(.is-disabled) {
|
|
|
|
cursor: pointer;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--DatePicker-onHover-bg);
|
|
|
|
border-color: var(--DatePicker-onHover-borderColor);
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}DatePicker-toggler:before {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--DatePicker-onHover-iconColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.is-focused {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--DatePicker-onFocused-borderColor);
|
|
|
|
box-shadow: var(--Form-input-boxShadow);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.is-disabled {
|
|
|
|
background: $gray200;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2020-11-03 12:05:42 +08:00
|
|
|
> .#{$ns}DatePicker-input {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--text--muted-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&-placeholder {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--DatePicker-placeholderColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
user-select: none;
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-right: var(--gap-base);
|
2020-04-28 17:30:25 +08:00
|
|
|
min-width: px2rem(50px);
|
2019-12-06 09:58:08 +08:00
|
|
|
flex-basis: 0;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-value {
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-right: var(--gap-base);
|
2019-12-06 09:58:08 +08:00
|
|
|
flex-basis: 0;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-toggler {
|
|
|
|
cursor: pointer;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--DatePicker-iconColor);
|
2021-11-03 21:09:20 +08:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--DatePicker-onHover-iconColor);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-clear {
|
|
|
|
display: inline-block;
|
|
|
|
@include input-clear();
|
|
|
|
line-height: 1;
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-right: var(--gap-xs);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2020-04-28 17:30:25 +08:00
|
|
|
.#{$ns}DateControl:not(.is-inline) > .#{$ns}DatePicker {
|
2019-12-06 09:58:08 +08:00
|
|
|
display: flex;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2019-09-05 11:12:15 +08:00
|
|
|
.#{$ns}DatePicker-shortcuts {
|
2019-12-18 18:57:07 +08:00
|
|
|
margin: 0;
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Calendar-shortcuts-bg);
|
|
|
|
padding: calc(
|
|
|
|
(
|
|
|
|
var(--Calendar-shortcuts-height) - var(--Calendar-fontSize) *
|
|
|
|
var(--lineHeightBase)
|
|
|
|
) / 2
|
|
|
|
)
|
|
|
|
var(--gap-sm);
|
2019-12-06 09:58:08 +08:00
|
|
|
list-style: none;
|
2020-04-08 11:56:22 +08:00
|
|
|
width: px2rem(250px);
|
2019-12-18 18:57:07 +08:00
|
|
|
|
2020-04-28 17:30:25 +08:00
|
|
|
& + .rdt .rdtPicker {
|
2019-12-16 10:35:53 +08:00
|
|
|
padding-top: 0;
|
|
|
|
}
|
2019-09-05 00:07:41 +08:00
|
|
|
}
|
2019-09-09 00:53:39 +08:00
|
|
|
|
2019-09-05 11:12:15 +08:00
|
|
|
.#{$ns}DatePicker-shortcut {
|
2019-12-06 09:58:08 +08:00
|
|
|
display: inline-block;
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-right: var(--gap-sm);
|
2019-09-05 11:12:15 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
a {
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--Calendar-fontSize);
|
2019-12-06 09:58:08 +08:00
|
|
|
cursor: pointer;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Calendar-shortcut-color);
|
|
|
|
text-decoration: var(--Calendar-shortcut-decoration);
|
2019-12-18 18:57:07 +08:00
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Calendar-shortcut-onHover-color);
|
|
|
|
text-decoration: var(--Calendar-shortcut-onHover-decoration);
|
2019-12-18 18:57:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}DatePicker-popover {
|
|
|
|
margin: px2rem(2px) 0 0;
|
|
|
|
|
|
|
|
&.#{$ns}PopOver--leftTopLeftBottom,
|
|
|
|
&.#{$ns}PopOver--rightTopRightBottom {
|
|
|
|
margin: px2rem(-2px) 0 0;
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-09-05 11:12:15 +08:00
|
|
|
}
|
2019-09-05 00:07:41 +08:00
|
|
|
|
2021-12-20 15:43:38 +08:00
|
|
|
.#{$ns}DatePicker-popup {
|
|
|
|
height: 80vh;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
// override third-party styles
|
|
|
|
.rdt {
|
2019-12-06 09:58:08 +08:00
|
|
|
user-select: none;
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--Calendar-fontSize);
|
|
|
|
color: var(--Calendar-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
|
|
.rdtPicker {
|
|
|
|
margin-top: 0;
|
2020-12-21 10:08:40 +08:00
|
|
|
padding: var(--gap-sm);
|
2019-12-06 09:58:08 +08:00
|
|
|
background: transparent;
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
.dow {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Calendar-wLabel-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
td.rdtDay,
|
|
|
|
td.rdtHour,
|
|
|
|
td.rdtMinute,
|
|
|
|
td.rdtSecond,
|
|
|
|
.rdtTimeToggle {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Calendar-cell-bg);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Calendar-cell-onHover-bg);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-18 18:57:07 +08:00
|
|
|
td.rdtBetween {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Calendar-cell-onBetween-bg);
|
2019-12-18 18:57:07 +08:00
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
td.rdtToday:before {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-bottom-color: var(--Calendar-cell-onActive-bg);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
td.rdtActive.rdtToday:before {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-bottom-color: var(--Calendar-cell-bg);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
td.rdtActive,
|
|
|
|
td.rdtActive:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Calendar-cell-onActive-bg);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
td.rdtDisabled,
|
|
|
|
td.rdtDisabled:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Calendar-cell-onDisabled-bg);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
thead tr:first-child th {
|
|
|
|
cursor: default;
|
|
|
|
font-weight: normal;
|
2019-12-18 18:57:07 +08:00
|
|
|
border-bottom: none;
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
thead tr:first-child th:hover {
|
|
|
|
background: transparent;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
tfoot {
|
|
|
|
border-top: 0;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
td {
|
2021-04-08 23:19:23 +08:00
|
|
|
padding-top: var(--gap-xs);
|
2019-12-06 09:58:08 +08:00
|
|
|
text-align: left;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
span {
|
|
|
|
width: 10px;
|
|
|
|
display: inline-block;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rdtActions {
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-top: var(--gap-sm);
|
2019-12-06 09:58:08 +08:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-14 09:21:16 +08:00
|
|
|
}
|
|
|
|
|
2021-06-17 11:08:15 +08:00
|
|
|
.#{$ns}CalendarInputWrapper {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
.#{$ns}CalendarInput-sugs {
|
|
|
|
list-style: none;
|
|
|
|
position: absolute;
|
|
|
|
background: var(--Form-select-menu-bg);
|
|
|
|
color: var(--Form-select-menu-color);
|
|
|
|
border: var(--Form-input-borderWidth) solid
|
|
|
|
var(--Form-input-onFocused-borderColor);
|
|
|
|
left: px2rem(-1px);
|
|
|
|
right: px2rem(-1px);
|
|
|
|
top: 100%;
|
|
|
|
z-index: 10;
|
|
|
|
max-height: px2rem(200px);
|
|
|
|
overflow: auto;
|
|
|
|
&Item {
|
|
|
|
padding-left: 4px;
|
|
|
|
&.is-highlight,
|
|
|
|
&:hover {
|
|
|
|
color: var(--Form-select-menu-onHover-color);
|
|
|
|
background: var(--Form-select-menu-onHover-bg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-14 09:21:16 +08:00
|
|
|
.#{$ns}CalendarInput {
|
|
|
|
outline: none;
|
|
|
|
width: 40px;
|
|
|
|
font-size: var(--Calendar-input-fontSize);
|
|
|
|
color: var(--Calendar-input-color);
|
|
|
|
border: 1px solid var(--Calendar-input-borderColor);
|
|
|
|
border-radius: var(--Calendar-input-borderRadius);
|
|
|
|
height: var(--Calendar-input-height);
|
|
|
|
line-height: var(--Calendar-input-lineHeight);
|
|
|
|
padding: var(--Calendar-input-paddingY) var(--Calendar-input-paddingX);
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: var(--Calendar-input-onFocused-borderColor);
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}CalendarTime {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}CalendarCounter {
|
|
|
|
&-btn {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
height: 25px;
|
|
|
|
text-align: center;
|
|
|
|
color: var(--Button--primary-bg);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--Button--primary-onActive-bg);
|
|
|
|
}
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2021-01-14 09:21:16 +08:00
|
|
|
&--up > svg {
|
|
|
|
transform: rotate(-90deg);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2021-01-14 09:21:16 +08:00
|
|
|
|
|
|
|
&--down > svg {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-sep {
|
2021-04-08 23:19:23 +08:00
|
|
|
width: var(--gap-md);
|
2021-01-14 09:21:16 +08:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--daypart {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--daypart &-value {
|
|
|
|
height: 30px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 5px;
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.rdtBtn {
|
2020-12-21 10:08:40 +08:00
|
|
|
line-height: var(--Calendar-btn-lineHeight);
|
|
|
|
padding: var(--Calendar-btn-paddingY) var(--Calendar-btn-paddingX);
|
2019-12-06 09:58:08 +08:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: center;
|
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
text-decoration: none;
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--Calendar-btn-fontSize);
|
2021-01-22 11:29:04 +08:00
|
|
|
border: 1px solid var(--Calendar-btn-border);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-disabled {
|
2021-01-22 11:29:04 +08:00
|
|
|
border-color: var(--Button-onDisabled-borderColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
opacity: 0.6;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fa,
|
|
|
|
.iconfont {
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--fontSizeSm);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
2020-04-28 17:30:25 +08:00
|
|
|
@include button-variant(
|
2020-12-21 10:08:40 +08:00
|
|
|
var(--Calendar-btn-bg),
|
|
|
|
var(--Calendar-btn-border),
|
|
|
|
var(--Calendar-btn-color),
|
|
|
|
var(--Calendar-btn-onHover-bg),
|
|
|
|
var(--Calendar-btn-onHover-border),
|
|
|
|
var(--Calendar-btn-onHover-color),
|
|
|
|
var(--Calendar-btn-onActive-bg),
|
|
|
|
var(--Calendar-btn-onActive-border),
|
|
|
|
var(--Calendar-btn-onActive-color)
|
2020-04-28 17:30:25 +08:00
|
|
|
);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
2020-12-21 10:08:40 +08:00
|
|
|
border-radius: var(--Calendar-btn-borderRadius);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
2020-04-28 17:30:25 +08:00
|
|
|
& + .rdtBtn {
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-left: var(--gap-xs);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&Cancel {
|
2020-04-28 17:30:25 +08:00
|
|
|
@include button-variant(
|
2020-12-21 10:08:40 +08:00
|
|
|
var(--Calendar-btnCancel-bg),
|
|
|
|
var(--Calendar-btnCancel-border),
|
|
|
|
var(--Calendar-btnCancel-color),
|
|
|
|
var(--Calendar-btnCancel-onHover-bg),
|
|
|
|
var(--Calendar-btnCancel-onHover-border),
|
|
|
|
var(--Calendar-btnCancel-onHover-color),
|
|
|
|
var(--Calendar-btnCancel-onActive-bg),
|
|
|
|
var(--Calendar-btnCancel-onActive-border),
|
|
|
|
var(--Calendar-btnCancel-onActive-color)
|
2020-04-28 17:30:25 +08:00
|
|
|
);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.rdtBtnPrev:before,
|
|
|
|
.rdtBtnNext:before {
|
2019-12-06 09:58:08 +08:00
|
|
|
display: inline-block;
|
|
|
|
color: inherit;
|
|
|
|
font-style: normal;
|
|
|
|
line-height: 1;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2019-12-18 18:57:07 +08:00
|
|
|
.rdtPrev,
|
|
|
|
.rdtNext {
|
|
|
|
cursor: pointer !important;
|
2021-04-08 23:19:23 +08:00
|
|
|
width: var(--gap-md);
|
2019-12-18 18:57:07 +08:00
|
|
|
padding: 0;
|
|
|
|
color: #999;
|
2021-04-08 23:19:23 +08:00
|
|
|
font-size: var(--fontSizeXl);
|
2019-12-18 18:57:07 +08:00
|
|
|
text-decoration: none;
|
|
|
|
font-family: auto;
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
color: #000;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.rdtSwitch {
|
|
|
|
text-align: center;
|
|
|
|
color: #000;
|
|
|
|
cursor: pointer;
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--link-onHover-color);
|
2019-12-18 18:57:07 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-30 11:11:25 +08:00
|
|
|
.rdtHeader {
|
2019-12-06 09:58:08 +08:00
|
|
|
display: table;
|
|
|
|
table-layout: fixed;
|
|
|
|
border-collapse: separate;
|
|
|
|
width: 100%;
|
2019-12-18 18:57:07 +08:00
|
|
|
// padding: 0 10px;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
2020-04-28 17:30:25 +08:00
|
|
|
> * {
|
2019-12-06 09:58:08 +08:00
|
|
|
display: table-cell;
|
2019-12-18 18:57:07 +08:00
|
|
|
vertical-align: middle;
|
|
|
|
text-align: center;
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2020-04-28 17:30:25 +08:00
|
|
|
.rdtSwitch + .rdtSwitch {
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-left: var(--gap-xs);
|
2019-12-18 18:57:07 +08:00
|
|
|
}
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-18 18:57:07 +08:00
|
|
|
td.rdtMonth,
|
2021-01-14 09:21:16 +08:00
|
|
|
td.rdtYear,
|
|
|
|
td.rdtQuarter {
|
2019-12-18 18:57:07 +08:00
|
|
|
width: px2rem(50px);
|
|
|
|
height: px2rem(40px);
|
|
|
|
|
2020-04-28 17:30:25 +08:00
|
|
|
> span {
|
2019-12-18 18:57:07 +08:00
|
|
|
height: px2rem(24px);
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2021-02-01 14:12:44 +08:00
|
|
|
&.rdtBetween {
|
|
|
|
background: transparent !important;
|
|
|
|
|
|
|
|
> span {
|
|
|
|
background: var(--Calendar-cell-onBetween-bg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-18 18:57:07 +08:00
|
|
|
&:hover,
|
|
|
|
&.rdtActive {
|
|
|
|
background: transparent !important;
|
|
|
|
|
2020-04-28 17:30:25 +08:00
|
|
|
> span {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--info);
|
|
|
|
color: var(--white);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-12-18 18:57:07 +08:00
|
|
|
|
|
|
|
&.rdtDisabled {
|
|
|
|
background: transparent !important;
|
|
|
|
|
2020-04-28 17:30:25 +08:00
|
|
|
> span {
|
2019-12-18 18:57:07 +08:00
|
|
|
background: #edf1f2;
|
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
}
|
2020-04-28 17:30:25 +08:00
|
|
|
}
|
2020-10-24 23:16:45 +08:00
|
|
|
|
|
|
|
.#{$ns}DateCalendar {
|
|
|
|
display: inline-block;
|
2020-12-21 10:08:40 +08:00
|
|
|
border: var(--DatePicker-borderWidth) solid var(--DatePicker-borderColor);
|
|
|
|
background: var(--DatePicker-bg);
|
|
|
|
border-radius: var(--DatePicker-borderRadius);
|
2020-10-24 23:16:45 +08:00
|
|
|
}
|