element-ui.scss
5.67 KB
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
// cover some element-ui styles
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
font-weight: 400 !important;
color: #686666;
}
.el-upload {
input[type="file"] {
display: none !important;
}
}
.el-upload__input {
display: none;
}
.cell {
.el-tag {
margin-right: 0px;
}
}
.small-padding {
.cell {
padding-left: 5px;
padding-right: 5px;
}
}
.fixed-width {
.el-button--mini {
padding: 7px 10px;
min-width: 60px;
}
}
.status-col {
.cell {
padding: 0 10px;
text-align: center;
.el-tag {
margin-right: 0px;
}
}
}
// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
transform: none;
left: 0;
position: relative;
margin: 0 auto;
}
// refine element ui upload
.upload-container {
.el-upload {
width: 100%;
.el-upload-dragger {
width: 100%;
height: 200px;
}
}
}
// dropdown
.el-dropdown-menu {
a {
display: block
}
}
// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
display: inline-flex !important;
}
// to fix el-date-picker css style
.el-range-separator {
box-sizing: content-box;
}
.el-submenu__icon-arrow {
margin-top: -5px;
}
/* --------------进度条美化---------------- */
::-webkit-scrollbar {
width: 7px;
height: 7px;
}
::-webkit-scrollbar-track {
width: 7px;
background-color: rgba(255, 255, 255, 0);
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
::-webkit-scrollbar-thumb {
background-color: rgb(207, 208, 209);
background-clip: padding-box;
min-height: 28px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgb(162, 164, 167);
}
// element 样式补丁
.el-menu--horizontal {
border-bottom: none !important;
}
// 按钮型tab样式
.btnTab {
.el-tabs__nav.is-top {
line-height: 36px;
}
.el-tabs__item {
height: 36px;
line-height: 36px;
}
.el-tabs__item:first-child {
border-radius: 4px 0 0 4px;
}
.el-tabs__item:last-child {
border-radius: 0 4px 4px 0;
}
}
.el-radio-group {
.el-radio-button__inner {
height: 36px;
line-height: 36px;
padding: 0 20px;
font-size: 14px;
}
.el-radio-button:first-child {
border-radius: 4px 0 0 4px;
}
.el-radio-button:last-child {
border-radius: 0 4px 4px 0;
}
}
.el-tabs__item:focus.is-active.is-focus:not(:active) {
box-shadow: none !important;
}
// element table 不能对齐
.el-table th.gutter {
display: table-cell !important;
}
// input type=number 上下箭头
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="number"] {
-moz-appearance: textfield;
}
// Radio 单选框升级之后的问题
.el-radio {
margin-right: 0 !important;
}
// Divider 分割线 样式的修改
.el-divider--horizontal {
margin: 10px 0 !important;
}
.el-row {
margin-bottom: 0 !important;
}
// form
.el-form-item__content {
margin-left: 0 !important;
}
.el-icon-full-screen,
.el-icon-rank {
cursor: pointer;
}
// element table 选中 颜色
.el-table--enable-row-hover .el-table__body tr:hover>td {
background-color: #FCFDFD;
}
.el-table__body .el-table__row.hover-row td {
background-color: #FCFDFD;
}
.el-table tbody tr:hover>td {
background-color: #FCFDFD;
}
// 表格样式
.el-table th {
background-color: #FBFCFD !important;
height: 48px !important;
font-size: 14px;
color: #4A4A4A;
}
.el-table th.is-leaf,
.el-table td {
border-bottom: 1px solid #E4EBF4;
}
.el-table tr:nth-child(even) {
background: #FCFDFD !important;
}
.el-table tr td {
font-size: 14px;
color: #7A7A7A;
}
.lb-table .el-table {
border: 1px solid #E4EBF4;
border-radius: 4px 4px 0 0;
}
// 表格暂无数据样式
.el-table__empty-text {
height: 200px;
line-height: 300px;
background: url('/images/table-bg.png') 50% 50% no-repeat;
background-size: 100px;
letter-spacing: 2px;
color: #aaa;
}
.el-upload-list__item.is-success:focus:not(:hover) .el-icon-close-tip {
display: none !important
}
.el-message-box__btns {
display: flex;
flex-direction: row-reverse;
}
.el-message-box__btns .el-button--primary {
margin-right: 10px;
}
// 全局修改button颜色
.el-button--primary {
background-color: #2FA5FF;
}
.el-button--primary.is-plain {
background: rgba(15, 147, 246, 0.12);
border: 1px solid #0F93F6;
color: #0F93F6;
}
.el-button--warning {
background-color: #FFB135;
}
.el-form-item__content {
//width: 100%;
flex: 1;
}
.el-submenu__title {
.svg-icon {
position: relative;
top: 2px;
}
}
.el-date-editor .el-input__prefix,
.el-select .el-input .el-select__caret,
.el-date-editor .el-range__icon {
color: #686666;
}
// 日期选择-日历图标位置
.el-date-editor .el-input__prefix {
left: auto;
right: 5px;
}
.el-input--prefix .el-input__inner {
padding-left: 17px;
}
.el-input__suffix-inner .el-icon-circle-close {
position: absolute;
right: 20px;
}
// 日期范围-日历图标位置
.el-date-editor .el-range__icon {
position: absolute;
right: 5px;
}
.el-date-editor .el-icon-circle-close {
position: absolute;
right: 20px;
}
.el-date-editor.el-date-editor--daterange .el-icon-circle-close {
position: absolute;
right: 25px;
}
// 表格分页
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next,
.el-pagination.is-background .el-pager li,
.el-pagination .el-select .el-input .el-input__inner {
background-color: #fff !important;
border: 1px solid #E4EBF4 !important;
border-radius: 5px !important;
}
.el-pagination.is-background .el-pager li.active {
background-color: #0F93F6 !important;
border: 1px solid #0F93F6 !important;
color: #fff !important;
}