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
@use '../mixins/mixins' as *;
@use '../common/var' as *;
 
@include b(time-panel) {
  border-radius: 2px;
  position: relative;
  width: 180px;
  left: 0;
  z-index: getCssVar('index-top');
  user-select: none;
  box-sizing: content-box;
 
  @include e(content) {
    font-size: 0;
    position: relative;
    overflow: hidden;
 
    &::after,
    &::before {
      content: '';
      top: 50%;
      position: absolute;
      margin-top: -16px;
      height: 32px;
      z-index: -1;
      left: 0;
      right: 0;
      box-sizing: border-box;
      padding-top: 6px;
      text-align: left;
    }
 
    &::after {
      left: 50%;
      margin-left: 12%;
      margin-right: 12%;
    }
 
    &::before {
      padding-left: 50%;
      margin-right: 12%;
      margin-left: 12%;
      border-top: 1px solid getCssVar('border-color-light');
      border-bottom: 1px solid getCssVar('border-color-light');
    }
 
    &.has-seconds {
      &::after {
        left: calc(100% / 3 * 2);
      }
 
      &::before {
        padding-left: calc(100% / 3);
      }
    }
  }
 
  @include e(footer) {
    border-top: 1px solid
      var(
        #{getCssVarName('timepicker-inner-border-color')},
        #{getCssVar('border-color-light')}
      );
    padding: 4px;
    height: 36px;
    line-height: 25px;
    text-align: right;
    box-sizing: border-box;
  }
 
  @include e(btn) {
    border: none;
    line-height: 28px;
    padding: 0 5px;
    margin: 0 5px;
    cursor: pointer;
    background-color: transparent;
    outline: none;
    font-size: 12px;
    color: getCssVar('text-color', 'primary');
 
    &.confirm {
      font-weight: 800;
      color: var(
        #{getCssVarName('timepicker-active-color')},
        #{getCssVar('color-primary')}
      );
    }
  }
}