2019-07-24 16:32:21 +08:00
|
|
|
@import "./mixins/mixins.scss";
|
2020-02-11 14:44:29 +08:00
|
|
|
|
2019-10-17 23:16:38 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
@include once {
|
|
|
|
@include b(time-picker) {
|
2019-10-19 20:26:30 +08:00
|
|
|
position: relative;
|
2019-10-17 23:16:38 +08:00
|
|
|
display: inline-block;
|
|
|
|
}
|
2019-07-22 17:41:56 +08:00
|
|
|
}
|
2019-12-27 22:30:44 +08:00
|
|
|
@include b(time-picker) {
|
|
|
|
@include m(invalid) {
|
|
|
|
& > {
|
|
|
|
@include b(input) {
|
|
|
|
@include e(input) {
|
2020-02-21 14:59:17 +08:00
|
|
|
@include once {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
2019-12-27 23:43:12 +08:00
|
|
|
text-decoration-color: map-get($--time-picker-text-decoration-color, 'default');
|
2019-12-27 22:30:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include m(transition-disabled) {
|
|
|
|
& > {
|
|
|
|
@include b(input) {
|
|
|
|
input {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
@include b(time-picker-selector) {
|
|
|
|
@include once {
|
2019-11-11 12:44:36 +08:00
|
|
|
outline: none;
|
2019-10-17 23:16:38 +08:00
|
|
|
font-size: 12px;
|
2020-02-28 22:57:10 +08:00
|
|
|
border-radius: $--n-time-picker-border-radius;
|
2019-10-17 23:16:38 +08:00
|
|
|
margin: 4px 0;
|
2020-03-04 19:25:07 +08:00
|
|
|
min-width: 104px;
|
2019-10-17 23:16:38 +08:00
|
|
|
overflow: hidden;
|
|
|
|
@include fade-in-scale-up-transition(time-picker);
|
2019-12-16 18:21:29 +08:00
|
|
|
@include b(time-picker-selector-actions) {
|
2020-03-04 19:25:07 +08:00
|
|
|
height: 38px;
|
|
|
|
align-items: center;
|
2019-10-17 23:16:38 +08:00
|
|
|
display: flex;
|
2020-02-26 16:05:13 +08:00
|
|
|
justify-content: space-evenly;
|
2019-12-16 18:21:29 +08:00
|
|
|
@include e(confirm) {
|
|
|
|
@include m(disabled) {
|
|
|
|
cursor: not-allowed;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
2019-07-22 17:41:56 +08:00
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
}
|
|
|
|
background-color: $--time-picker-background-color;
|
2019-12-27 16:26:50 +08:00
|
|
|
box-shadow: $--time-picker-box-shadow;
|
2019-10-17 23:16:38 +08:00
|
|
|
@include b(time-picker-selector-time) {
|
|
|
|
@include once {
|
2020-03-04 19:25:07 +08:00
|
|
|
height: 224px;
|
2019-10-17 23:16:38 +08:00
|
|
|
display: flex;
|
|
|
|
position: relative;
|
2019-07-22 17:41:56 +08:00
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
border-bottom: 1px solid $--time-picker-divider-color;
|
2019-07-22 17:41:56 +08:00
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
@include b(time-picker-selector-time-row) {
|
|
|
|
@include once {
|
2020-02-26 16:05:13 +08:00
|
|
|
flex-grow: 1;
|
2020-03-04 19:25:07 +08:00
|
|
|
min-width: 52px;
|
|
|
|
height: 224px;
|
2019-10-17 23:16:38 +08:00
|
|
|
flex-direction: column;
|
2019-12-27 16:26:50 +08:00
|
|
|
transition: box-shadow .3s $--n-ease-in-out-cubic-bezier;
|
|
|
|
@include m(transition-disabled) {
|
|
|
|
@include e(item) {
|
|
|
|
transition: background-color .3s $--n-ease-in-out-cubic-bezier, opacity .3s $--n-ease-in-out-cubic-bezier;
|
|
|
|
}
|
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
}
|
|
|
|
@include e(item) {
|
|
|
|
@include once {
|
|
|
|
cursor: pointer;
|
2020-03-04 19:25:07 +08:00
|
|
|
height: 32px;
|
2019-10-17 23:16:38 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2019-12-27 23:43:12 +08:00
|
|
|
transition: color .3s $--n-ease-in-out-cubic-bezier, background-color .3s $--n-ease-in-out-cubic-bezier, opacity .3s $--n-ease-in-out-cubic-bezier, text-decoration-color .3s $--n-ease-in-out-cubic-bezier;
|
2019-12-27 16:26:50 +08:00
|
|
|
background: transparent;
|
2019-10-17 23:16:38 +08:00
|
|
|
}
|
2019-12-27 23:43:12 +08:00
|
|
|
text-decoration-color: transparent;
|
2019-10-17 23:16:38 +08:00
|
|
|
color: map-get($--time-picker-text-color, 'default');
|
2019-12-27 16:26:50 +08:00
|
|
|
@include not-m(disabled) {
|
|
|
|
&:hover {
|
|
|
|
background-color: map-get($--time-picker-item-background-color, 'hover');
|
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
}
|
|
|
|
@include m(active) {
|
2019-12-27 16:26:50 +08:00
|
|
|
background-color: map-get($--time-picker-item-background-color, 'hover');
|
2019-10-17 23:16:38 +08:00
|
|
|
color: map-get($--time-picker-text-color, 'active');
|
|
|
|
}
|
2019-11-29 11:07:24 +08:00
|
|
|
@include m(disabled) {
|
2020-02-21 14:59:17 +08:00
|
|
|
opacity: $--time-picker-item-disabled-opacity;
|
|
|
|
@include once {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2019-11-29 11:07:24 +08:00
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
}
|
2019-12-27 16:26:50 +08:00
|
|
|
@include m(invalid) {
|
|
|
|
@include e(item) {
|
|
|
|
@include m(active) {
|
2020-02-21 14:59:17 +08:00
|
|
|
@include once {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
2019-12-27 16:26:50 +08:00
|
|
|
background-color: map-get($--time-picker-item-background-color, 'invalid');
|
2019-12-27 23:43:12 +08:00
|
|
|
text-decoration-color: map-get($--time-picker-text-decoration-color, 'active');
|
2019-12-27 16:26:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-22 17:41:56 +08:00
|
|
|
}
|
|
|
|
}
|
2019-10-17 23:16:38 +08:00
|
|
|
}
|