Blame view

node_modules/element-ui/packages/theme-chalk/src/select.scss 2.8 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
  @import "mixins/mixins";
  @import "mixins/utils";
  @import "common/var";
  @import "select-dropdown";
  @import "input";
  @import "tag";
  @import "option";
  @import "option-group";
  @import "scrollbar";
  
  @include b(select) {
    display: inline-block;
    position: relative;
  
    .el-select__tags
      >span {
        display: contents;
      }
  
    &:hover {
      .el-input__inner {
        border-color: $--select-border-color-hover;
      }
    }
  
    .el-input__inner {
      cursor: pointer;
      padding-right: 35px;
  
      &:focus {
        border-color: $--select-input-focus-background;
      }
    }
  
    .el-input {
      & .el-select__caret {
        color: $--select-input-color;
        font-size: $--select-input-font-size;
        transition: transform .3s;
        transform: rotateZ(180deg);
        cursor: pointer;
  
        @include when(reverse) {
          transform: rotateZ(0deg);
        }
  
        @include when(show-close) {
          font-size: $--select-font-size;
          text-align: center;
          transform: rotateZ(180deg);
          border-radius: $--border-radius-circle;
          color: $--select-input-color;
          transition: $--color-transition-base;
  
          &:hover {
            color: $--select-close-hover-color;
          }
        }
      }
  
      &.is-disabled {
        & .el-input__inner {
          cursor: not-allowed;
  
          &:hover {
            border-color: $--select-disabled-border;
          }
        }
      }
  
      &.is-focus .el-input__inner {
        border-color: $--select-input-focus-background;
      }
    }
  
    > .el-input {
      display: block;
    }
  
    @include e(input) {
      border: none;
      outline: none;
      padding: 0;
      margin-left: 15px;
      color: $--select-multiple-input-color;
      font-size: $--select-font-size;
      appearance: none;
      height: 28px;
      background-color: transparent;
      @include when(mini) {
        height: 14px;
      }
    }
  
    @include e(close) {
      cursor: pointer;
      position: absolute;
      top: 8px;
      z-index: $--index-top;
      right: 25px;
      color: $--select-input-color;
      line-height: 18px;
      font-size: $--select-input-font-size;
  
      &:hover {
        color: $--select-close-hover-color;
      }
    }
  
    @include e(tags) {
      position: absolute;
      line-height: normal;
      white-space: normal;
      z-index: $--index-normal;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      align-items: center;
      flex-wrap: wrap;
    }
  
    .el-tag__close {
      margin-top: -2px;
    }
  
    .el-tag {
      box-sizing: border-box;
      border-color: transparent;
      margin: 2px 0 2px 6px;
      background-color: #f0f2f5;
  
      &__close.el-icon-close {
        background-color: $--color-text-placeholder;
        right: -7px;
        top: 0;
        color: $--color-white;
  
        &:hover {
          background-color: $--color-text-secondary;
        }
  
        &::before {
          display: block;
          transform: translate(0, .5px);
        }
      }
    }
  }