zhangyong
2023-08-22 1353e87cb21a4032d585d7404bae9042f2ebcf08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
@use '../mixins/mixins' as *;
@use '../common/var' as *;
 
@include b(time-spinner) {
  &.has-seconds {
    .#{$namespace}-time-spinner__wrapper {
      width: 33.3%;
    }
  }
 
  @include e(wrapper) {
    max-height: 192px;
    overflow: auto;
    display: inline-block;
    width: 50%;
    vertical-align: top;
    position: relative;
 
    &.#{$namespace}-scrollbar__wrap:not(.#{$namespace}-scrollbar__wrap--hidden-default) {
      padding-bottom: 15px;
    }
 
    @include when(arrow) {
      box-sizing: border-box;
      text-align: center;
      overflow: hidden;
 
      .#{$namespace}-time-spinner__list {
        transform: translateY(-32px);
      }
 
      .#{$namespace}-time-spinner__item:hover:not(.is-disabled):not(.is-active) {
        background: getCssVar('fill-color', 'light');
        cursor: default;
      }
    }
  }
 
  @include e(arrow) {
    font-size: 12px;
    color: getCssVar('text-color', 'secondary');
    position: absolute;
    left: 0;
    width: 100%;
    z-index: getCssVar('index-normal');
    text-align: center;
    height: 30px;
    line-height: 30px;
    cursor: pointer;
 
    &:hover {
      color: getCssVar('color-primary');
    }
 
    &.arrow-up {
      top: 10px;
    }
 
    &.arrow-down {
      bottom: 10px;
    }
  }
 
  @include e(input) {
    &.#{$namespace}-input {
      width: 70%;
 
      .#{$namespace}-input__inner {
        padding: 0;
        text-align: center;
      }
    }
  }
 
  @include e(list) {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
 
    &::after,
    &::before {
      content: '';
      display: block;
      width: 100%;
      height: 80px;
    }
  }
 
  @include e(item) {
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    color: getCssVar('text-color', 'regular');
 
    &:hover:not(.is-disabled):not(.is-active) {
      background: getCssVar('fill-color', 'light');
      cursor: pointer;
    }
 
    &.is-active:not(.is-disabled) {
      color: getCssVar('text-color', 'primary');
      font-weight: bold;
    }
 
    &.is-disabled {
      color: getCssVar('text-color', 'placeholder');
      cursor: not-allowed;
    }
  }
}