Blame view

node_modules/element-ui/packages/theme-chalk/src/date-picker/time-picker.scss 1.62 KB
2a09d1a4   liuqimichale   添加宜春 天水 宣化
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
  @import "../common/var";
  
  @include b(time-panel) {
    margin: 5px 0;
    border: solid 1px $--datepicker-border-color;
    background-color: $--color-white;
    box-shadow: $--box-shadow-light;
    border-radius: 2px;
    position: absolute;
    width: 180px;
    left: 0;
    z-index: $--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: -15px;
        height: 32px;
        z-index: -1;
        left: 0;
        right: 0;
        box-sizing: border-box;
        padding-top: 6px;
        text-align: left;
        border-top: 1px solid $--border-color-light;
        border-bottom: 1px solid $--border-color-light;
      }
  
      &::after {
        left: 50%;
        margin-left: 12%;
        margin-right: 12%;
      }
  
      &::before {
        padding-left: 50%;
        margin-right: 12%;
        margin-left: 12%;
      }
  
      &.has-seconds {
        &::after {
          left: calc(100% / 3 * 2);
        }
  
        &::before {
          padding-left: calc(100% / 3);
        }
      }
    }
  
    @include e(footer) {
      border-top: 1px solid $--datepicker-inner-border-color;
      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: $--color-text-primary;
  
      &.confirm {
        font-weight: 800;
        color: $--datepicker-active-color;
      }
    }
  }