1
+ /* color */
2
+ $--color-white : #FFFFFF !default ;
3
+ /* font color */
4
+ $--color-text-regular : #596C8E !default ;
5
+ $--color-text-placeholder : #BAC7DE !default ;
6
+
1
7
/* 改变主题色变量 */
2
8
$--color-primary : #3963bc ;
3
9
@@ -8,6 +14,12 @@ $--color-danger: #f4516c !default;
8
14
9
15
$--background-color-base : #F6F7FA !default ;
10
16
17
+ /* Link
18
+ ---------------------*/
19
+ $--link-default-active-color : $--color-primary !default ;
20
+ $--link-default-font-color : $--color-text-regular !default ;
21
+ $--link-disabled-font-color : $--color-text-placeholder !default ;
22
+
11
23
/* 改变 icon 字体路径变量,必需 */
12
24
$--font-path : " ~element-ui/lib/theme-chalk/fonts" ;
13
25
@@ -19,79 +31,95 @@ $--font-path: "~element-ui/lib/theme-chalk/fonts";
19
31
.el-button {
20
32
padding : 8px 16px ;
21
33
border-radius : 2px ;
34
+
22
35
& .is-round {
23
- padding :8px 16px ;
36
+ padding : 8px 16px ;
24
37
}
38
+
25
39
& .el-button--mini {
26
40
padding : 5px 12px ;
27
41
}
42
+
28
43
& .el-button--medium {
29
44
padding : 7px 12px ;
30
45
}
46
+
31
47
& .el-button--small {
32
48
padding : 6px 12px ;
33
49
}
34
50
}
51
+
35
52
.el-button--primary.is-plain ,
36
53
.el-button--success.is-plain ,
37
54
.el-button--info.is-plain ,
38
55
.el-button--danger.is-plain ,
39
56
.el-button--warning.is-plain {
40
57
background : #fff ;
41
58
}
59
+
42
60
.el-button--primary {
43
61
& .is-plain {
44
62
color : #3963bc ;
45
63
background : #fff ;
46
64
border : 1px solid #3963bc ;
47
65
}
66
+
48
67
& :hover ,
49
68
& :focus {
50
69
background : #0037ad ;
51
70
border : 1px solid #0037ad ;
52
71
}
53
72
}
73
+
54
74
.el-button--success {
55
75
& .is-plain {
56
76
color : #34bfa3 ;
57
77
background : #fff ;
58
78
border : 1px solid #34bfa3 ;
59
79
}
80
+
60
81
& :hover ,
61
82
& :focus {
62
83
background : #009d72 ;
63
84
border : 1px solid #009d72 ;
64
85
}
65
86
}
87
+
66
88
.el-button--danger {
67
89
& .is-plain {
68
90
color : #f4516c ;
69
91
background : #fff ;
70
92
border : 1px solid #f4516c ;
71
93
}
94
+
72
95
& :hover ,
73
96
& :focus {
74
97
background : #d62f40 ;
75
98
border : 1px solid #d62f40 ;
76
99
}
77
100
}
101
+
78
102
.el-button--warning {
79
103
color : #8c98ae ;
104
+
80
105
& .is-plain {
81
106
color : #8c98ae ;
82
107
background : #fff ;
83
108
border : 1px solid #8c98ae ;
109
+
84
110
& :hover ,
85
111
& :focus {
86
112
background : #8c98ae ;
87
113
color : #fff ;
88
114
border : 1px solid #8c98ae ;
89
115
}
116
+
90
117
& .is-disabled {
91
118
color : #8c98ae ;
92
119
background : #fff ;
93
120
border : 1px solid #8c98ae ;
94
121
opacity : 0.5 ;
122
+
95
123
& :hover ,
96
124
& :focus {
97
125
color : #8c98ae ;
@@ -108,11 +136,13 @@ $--font-path: "~element-ui/lib/theme-chalk/fonts";
108
136
background : #bfcbd7 ;
109
137
border : 1px solid #bfcbd7 ;
110
138
}
139
+
111
140
& .is-disabled {
112
141
background : #dee2e6 ;
113
142
color : #8c98ae ;
114
143
border : 1px solid #dee2e6 ;
115
144
opacity : 0.5 ;
145
+
116
146
& :hover ,
117
147
& :focus {
118
148
background : #dee2e6 ;
@@ -163,9 +193,10 @@ $--font-path: "~element-ui/lib/theme-chalk/fonts";
163
193
164
194
.el-radio__inner {
165
195
border : 1px solid #c4c0d2 !important ;
196
+
166
197
& ::after {
167
- width :7px ;
168
- height :7px ;
198
+ width : 7px ;
199
+ height : 7px ;
169
200
}
170
201
}
171
202
@@ -174,7 +205,7 @@ $--font-path: "~element-ui/lib/theme-chalk/fonts";
174
205
border : none !important ;
175
206
}
176
207
177
- .el-radio__input.is-checked + .el-radio__label {
208
+ .el-radio__input.is-checked + .el-radio__label {
178
209
color : $theme ;
179
210
}
180
211
@@ -201,7 +232,7 @@ $--font-path: "~element-ui/lib/theme-chalk/fonts";
201
232
202
233
// pagination
203
234
.el-pagination__editor.el-input {
204
- .el-input__inner {
235
+ .el-input__inner {
205
236
border-radius : 4px ;
206
237
}
207
238
}
@@ -212,10 +243,11 @@ $--font-path: "~element-ui/lib/theme-chalk/fonts";
212
243
}
213
244
214
245
// input
215
- .el-input-group__append , .el-input-group__prepend {
246
+ .el-input-group__append ,
247
+ .el-input-group__prepend {
216
248
background : $theme ;
217
- border :1px solid $theme ;
218
- color :#fff ;
249
+ border : 1px solid $theme ;
250
+ color : #fff ;
219
251
}
220
252
221
253
// table
@@ -230,8 +262,10 @@ $--font-path: "~element-ui/lib/theme-chalk/fonts";
230
262
border : none ;
231
263
}
232
264
}
265
+
233
266
.el-table--border {
234
267
border-right : none !important ;
268
+
235
269
table {
236
270
border-top : none !important ;
237
271
}
@@ -260,31 +294,36 @@ $--font-path: "~element-ui/lib/theme-chalk/fonts";
260
294
thead tr {
261
295
height : 62px ;
262
296
}
297
+
263
298
.el-table__body tr {
264
299
height : 52px ;
265
300
}
301
+
266
302
.el-table th ,
267
303
.el-table td {
268
304
padding : 9px 0px ;
269
305
}
306
+
270
307
.el-table--striped .el-table__body tr {
271
308
background : #f8f9fa ;
272
309
}
310
+
273
311
.el-table--striped .el-table__body tr .el-table__row--striped td {
274
312
background : #fff ;
275
313
}
276
- .el-table__body tr .current-row > td ,
277
- .el-table__body tr .hover-row.current-row > td ,
278
- .el-table__body tr .hover-row.el-table__row--striped.current-row > td ,
279
- .el-table__body tr .hover-row.el-table__row--striped > td ,
280
- .el-table__body tr .hover-row > td {
314
+
315
+ .el-table__body tr .current-row >td ,
316
+ .el-table__body tr .hover-row.current-row >td ,
317
+ .el-table__body tr .hover-row.el-table__row--striped.current-row >td ,
318
+ .el-table__body tr .hover-row.el-table__row--striped >td ,
319
+ .el-table__body tr .hover-row >td {
281
320
background-color : #ecf5ff ;
282
321
}
283
322
284
323
.el-table__expand-icon {
285
- color :#3963bc ;
324
+ color : #3963bc ;
286
325
font-size : 18px ;
287
- top :-5px ;
326
+ top : -5px ;
288
327
}
289
328
290
329
// dialog
@@ -356,7 +395,9 @@ thead tr {
356
395
top : 23px ;
357
396
}
358
397
}
398
+
359
399
& .third {
400
+
360
401
// 3级
361
402
.el-menu-item {
362
403
position : relative ;
@@ -408,16 +449,17 @@ thead tr {
408
449
.el-menu--vertical /deep/ .icon-erjizhibiao {
409
450
display : none ;
410
451
}
452
+
411
453
.el-menu--vertical /deep/ .two-folder {
412
454
margin-left : 40px ;
413
455
}
414
456
415
457
.is-active {
416
458
color : $theme !important ;
417
- & .el-menu-item
418
- .iconfont {
419
- color : $theme !important ;
420
- }
459
+
460
+ & .el-menu-item .iconfont {
461
+ color : $theme !important ;
462
+ }
421
463
}
422
464
423
465
.el-submenu__icon-arrow {
@@ -463,13 +505,15 @@ thead tr {
463
505
464
506
.el-menu--inline {
465
507
background : $menuItem-bg !important ;
508
+
466
509
& :hover {
467
510
background-color : $menuItem-hover !important ;
468
511
}
469
512
}
470
513
471
514
.el-submenu__title {
472
515
background : $menuItem-bg !important ;
516
+
473
517
& :hover {
474
518
background-color : $menuItem-hover !important ;
475
519
}
@@ -524,6 +568,7 @@ thead tr {
524
568
}
525
569
526
570
.el-menu--collapse {
571
+
527
572
// margin-left: -2px;
528
573
.el-submenu.is-active {
529
574
.el-submenu__title {
@@ -579,3 +624,63 @@ thead tr {
579
624
.el-container {
580
625
height : 100% ;
581
626
}
627
+
628
+ // Link
629
+ .el-link +.el-link {
630
+ margin-left : 30px ;
631
+ }
632
+
633
+ .el-link {
634
+ font-weight : 400 ;
635
+ font-size : 14px ;
636
+ }
637
+
638
+ .el-link.is-underline :hover :after {
639
+ border-bottom : 1px solid $--link-default-active-color ;
640
+ }
641
+ .el-link [class *= " el-icon-" ]+span {
642
+ margin-left : 4px ;
643
+ }
644
+
645
+ .el-link.el-link--default {
646
+ color : $--link-default-font-color ;
647
+ }
648
+
649
+ .el-link.el-link--default :hover {
650
+ color : $--link-default-active-color ;
651
+ }
652
+
653
+ .el-link.el-link--default :after {
654
+ border-color : $--link-default-active-color ;
655
+ }
656
+
657
+ .el-link.el-link--default.is-disabled {
658
+ color : $--link-disabled-font-color ;
659
+ }
660
+
661
+ $typeMap : (primary :#3963BC ,
662
+ success :#00C292 ,
663
+ danger : #E46A76 ,
664
+ warning :#FFBE4D ,
665
+ info : #8C98AE );
666
+ .el-link {
667
+ @each $type , $primaryColor in $typeMap {
668
+ & .el-link--#{$type } {
669
+ color : $primaryColor ;
670
+ & :hover {
671
+ color : mix ($primaryColor , $--color-white , 80% )
672
+ }
673
+ & :after {
674
+ border-color : $primaryColor
675
+ }
676
+ @include when (disabled ) {
677
+ color : mix ($primaryColor , $--color-white , 50% )
678
+ }
679
+ @include when (underline ) {
680
+ & :hover :after {
681
+ border-color : $primaryColor
682
+ }
683
+ }
684
+ }
685
+ }
686
+ }
0 commit comments