Blame view

node_modules/element-ui/packages/theme-chalk/src/cascader.scss 3.5 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
  @import "mixins/mixins";
  @import "common/var";
  @import "./input.scss";
  @import "./popper";
  
  @include b(cascader) {
    display: inline-block;
    position: relative;
    font-size: $--font-size-base;
    line-height: $--input-height;
  
    .el-input,
    .el-input__inner {
      cursor: pointer;
    }
  
    .el-input.is-focus .el-input__inner {
      border-color: $--input-focus-border;
    }
  
    .el-input__icon {
      transition: none;
    }
  
    .el-icon-arrow-down {
      transition: transform .3s;
      font-size: 14px;
  
      @include when(reverse) {
        transform: rotateZ(180deg);
      }
    }
  
    .el-icon-circle-close {
      z-index: #{$--index-normal + 1};
      transition: $--color-transition-base;
  
      &:hover {
        color: $--color-text-secondary;
      }
    }
  
    @include e(clearIcon) {
      z-index: 2;
      position: relative;
    }
  
    @include e(label) {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      padding: 0 25px 0 15px;
      color: $--input-color;
      width: 100%;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      box-sizing: border-box;
      cursor: pointer;
      text-align: left;
      font-size: inherit;
  
      span {
        color: $--color-black;
      }
    }
  
    @include m(medium) {
      font-size: $--input-medium-font-size;
      line-height: #{$--input-medium-height};
    }
  
    @include m(small) {
      font-size: $--input-small-font-size;
      line-height: #{$--input-small-height};
    }
  
    @include m(mini) {
      font-size: $--input-mini-font-size;
      line-height: #{$--input-mini-height};
    }
  
    @include when(disabled) {
      .el-cascader__label {
        z-index: #{$--index-normal + 1};
        color: $--disabled-color-base;
      }
    }
  }
  
  @include b(cascader-menus) {
    white-space: nowrap;
    background: #fff;
    position: absolute;
    margin: 5px 0;
    z-index: #{$--index-normal + 1};
    border: $--select-dropdown-border;
    border-radius: $--border-radius-small;
    box-shadow: $--select-dropdown-shadow;
  }
  
  @include b(cascader-menu) {
    display: inline-block;
    vertical-align: top;
    height: 204px;
    overflow: auto;
    border-right: $--select-dropdown-border;
    background-color: $--select-dropdown-background;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 0;
    min-width: 160px;
  
    &:last-child {
      border-right: 0;
    }
  
    @include e(item) {
      font-size: $--select-font-size;
      padding: 8px 20px;
      position: relative;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: $--select-option-color;
      height: $--select-option-height;
      line-height: 1.5;
      box-sizing: border-box;
      cursor: pointer;
      outline: none;
      @include m(extensible) {
        &:after {
          font-family: 'element-icons';
          content: "\e604";
          font-size: 14px;
          color: rgb(191, 203, 217);
          position: absolute;
          right: 15px;
        }
      }
  
      @include when(disabled) {
        color: $--select-option-disabled-color;
        background-color: $--select-option-disabled-background;
        cursor: not-allowed;
  
        &:hover {
          background-color: $--color-white;
        }
      }
  
      @include when(active) {
        color: $--select-option-selected;
      }
  
      &:hover, &:focus:not(:active) {
        background-color: $--select-option-hover-background;
      }
  
      &.selected {
        color: $--color-white;
        background-color: $--select-option-selected-hover;
      }
    }
  
    @include e(item__keyword) {
      font-weight: bold;
    }
  
    @include m(flexible) {
      height: auto;
      max-height: 180px;
      overflow: auto;
  
      .el-cascader-menu__item {
        overflow: visible;
      }
    }
  }