干燥机配套车间生产管理系统/云平台前端
baoshiwei
3 天以前 220db80e605945ced1b33443020933206b0915db
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
// tabs圆滑样式
@prefix-cls-theme-smooth: ~'@{prefix-cls}.@{prefix-cls}--theme-smooth';
 
html[data-theme='dark'] {
  .@{prefix-cls-theme-smooth} {
    .ant-tabs-tab {
      border: none !important;
    }
  }
}
 
html[data-theme='light'] {
  .@{prefix-cls-theme-smooth} {
    .ant-tabs-tab:not(.ant-tabs-tab-active) {
      border: none !important;
    }
  }
}
 
.@{prefix-cls-theme-smooth} {
  @tabHeight: calc(@multiple-smooth-height - 12px);
 
  z-index: 10;
  height: @multiple-smooth-height;
  line-height: @multiple-smooth-height;
  background-color: @component-background;
  box-shadow: 0 1px 4px rgb(0 21 41 / 8%);
 
  .ant-tabs-small {
    height: @multiple-smooth-height;
  }
 
  .ant-tabs.ant-tabs-card {
    .ant-tabs-nav {
      height: @multiple-smooth-height;
      margin: 0;
      background-color: @component-background;
      border: 0;
      box-shadow: none;
      padding-left: 10px;
 
      .ant-tabs-nav-wrap {
        height: @tabHeight;
        margin-top: 12px;
      }
 
      .ant-tabs-tab {
        height: @tabHeight;
        line-height: @tabHeight;
        color: @text-color-base;
        background-color: @component-background;
        transition: padding 0.3s;
        padding: 0 24px 0 30px;
        margin: 0 -14px 0 0 !important;
        mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANoAAAAkBAMAAAAdqzmBAAAAMFBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlTPQ5AAAAD3RSTlMAr3DvEM8wgCBA379gj5//tJBPAAAAnUlEQVRIx2NgAAM27fj/tAO/xBsYkIHyf9qCT8iWMf6nNQhAsk2f5rYheY7Dnua2/U+A28ZEe8v+F9Ax2v7/F4DbxkUH2wzgtvHTwbYPo7aN2jZq26hto7aN2jZq25Cy7Qvctnw62PYNbls9HWz7S8/G6//PsI6H4396gAUQy1je08W2jxDbpv6nD4gB2uWp+J9eYPsEhv/0BPS1DQBvoBLVZ3BppgAAAABJRU5ErkJggg==);
        mask-size: 100% 100%;
        position: relative;
        z-index: 1;
 
        .ant-tabs-tab-btn {
          color: @text-color-base;
        }
 
        &:hover {
          z-index: 2;
          padding: 0 30px 0 36px;
 
          .ant-tabs-tab-remove .anticon-close {
            opacity: 1;
 
            &:hover {
              color: #fff;
              background-color: #c0c4cc;
            }
          }
        }
 
        .ant-tabs-tab-remove {
          top: 4px;
          left: 10px;
 
          .anticon-close {
            position: relative;
            width: 14px;
            height: 14px;
            font-size: 13px;
            color: inherit;
            opacity: 0;
            transition: opacity 0.15s;
            vertical-align: middle;
            line-height: 10px;
            overflow: hidden;
            transform-origin: 100% 50%;
            border-radius: 100%;
 
            &:hover {
              svg {
                fill: #fff;
              }
            }
          }
        }
        > div {
          display: flex;
          justify-content: center;
          align-items: center;
        }
 
        svg {
          fill: @text-color-base;
        }
 
        &:first-child {
          padding: 0 30px 0 30px !important;
        }
      }
 
      .ant-tabs-tab:not(.ant-tabs-tab-active) {
        &:hover {
          color: inherit;
          background-color: #dee1e6;
        }
      }
 
      .ant-tabs-tab-active {
        position: relative;
        padding: 0 30px 0 36px;
        color: @primary-color !important;
        background: #e8f4ff;
        border: 0;
        font-weight: inherit;
        z-index: 3;
 
        .ant-tabs-tab-btn {
          color: @primary-color;
        }
 
        .ant-tabs-tab-remove .anticon-close {
          opacity: 1;
 
          svg {
            width: 0.6em;
          }
        }
 
        svg {
          width: inherit;
          fill: @primary-color;
        }
      }
    }
 
    .ant-tabs-nav > div:nth-child(1) {
      padding: 0 6px;
 
      .ant-tabs-tab {
        margin-right: -20px !important;
      }
    }
  }
 
  .ant-tabs-tab:not(.ant-tabs-tab-active) {
    .anticon-close {
      font-size: 12px;
 
      svg {
        width: 0.6em;
      }
    }
  }
 
  .ant-tabs-extra-content {
    position: relative;
    top: 0;
    line-height: @multiple-smooth-height !important;
  }
 
  .ant-dropdown-trigger {
    display: inline-flex;
  }
 
  .@{prefix-cls}--hide-close {
    .ant-tabs-tab-remove .anticon-close {
      opacity: 0 !important;
    }
  }
 
  .@{prefix-cls}-content {
    &__extra-quick,
    &__extra-redo,
    &__extra-fold {
      display: inline-block;
      width: 36px;
      height: @multiple-smooth-height;
      line-height: @multiple-smooth-height;
      color: @text-color-secondary;
      text-align: center;
      cursor: pointer;
      border-left: 1px solid @border-color-base;
 
      &:hover {
        color: @text-color-base;
      }
 
      span[role='img'] {
        transform: rotate(90deg);
      }
    }
 
    &__extra-redo {
      span[role='img'] {
        transform: rotate(0deg);
      }
    }
 
    &__info {
      display: inline-block;
      width: 100%;
      height: @tabHeight;
      padding-left: 0;
      font-size: 14px;
      cursor: pointer;
      user-select: none;
    }
 
    // tab 前缀图标样式
    &__prefix-icon {
      & .app-iconify.anticon {
        margin-right: 4px;
      }
    }
  }
}