1- @import ' ./variable.scss' ;
1+ /* 改变主题色变量 */
2+ $--color-primary : #3963bc ;
3+
4+ $--color-primary : #3963bc ;
5+ $--color-success : #00c292 !default ;
6+ $--color-warning : #dee2e6 !default ;
7+ $--color-danger : #f4516c !default ;
8+
9+ /* 改变 icon 字体路径变量,必需 */
10+ $--font-path : " ~element-ui/lib/theme-chalk/fonts" ;
11+
12+ @import " ~element-ui/packages/theme-chalk/src/index" ;
13+
14+ @import " ./lin-variables.scss" ;
15+
16+ // button
17+ .el-button {
18+ padding : 8px 16px ;
19+ border-radius : 2px ;
20+ & .el-button--mini {
21+ padding :5px 12px ;
22+ }
23+ }
24+ .el-button--primary.is-plain ,
25+ .el-button--success.is-plain ,
26+ .el-button--info.is-plain ,
27+ .el-button--danger.is-plain ,
28+ .el-button--warning.is-plain {
29+ background : #fff ;
30+ }
31+ .el-button--primary {
32+ & .is-plain {
33+ color : #3963bc ;
34+ background : #fff ;
35+ border : 1px solid #3963bc ;
36+ }
37+ & :hover ,
38+ & :focus {
39+ background : #0037ad ;
40+ border : 1px solid #0037ad ;
41+ }
42+ }
43+ .el-button--success {
44+ & .is-plain {
45+ color : #34bfa3 ;
46+ background : #fff ;
47+ border : 1px solid #34bfa3 ;
48+ }
49+ & :hover ,
50+ & :focus {
51+ background : #009d72 ;
52+ border : 1px solid #009d72 ;
53+ }
54+ }
55+ .el-button--danger {
56+ & .is-plain {
57+ color : #f4516c ;
58+ background : #fff ;
59+ border : 1px solid #f4516c ;
60+ }
61+ & :hover ,
62+ & :focus {
63+ background : #d62f40 ;
64+ border : 1px solid #d62f40 ;
65+ }
66+ }
67+ .el-button--warning {
68+ color : #8c98ae ;
69+ & .is-plain {
70+ color : #8c98ae ;
71+ background : #fff ;
72+ border : 1px solid #8c98ae ;
73+ & :hover ,
74+ & :focus {
75+ background : #8c98ae ;
76+ color : #fff ;
77+ border : 1px solid #8c98ae ;
78+ }
79+ & .is-disabled {
80+ color : #8c98ae ;
81+ background : #fff ;
82+ border : 1px solid #8c98ae ;
83+ opacity : 0.5 ;
84+ & :hover ,
85+ & :focus {
86+ color : #8c98ae ;
87+ background : #fff ;
88+ border : 1px solid #8c98ae ;
89+ opacity : 0.5 ;
90+ }
91+ }
92+ }
93+
94+ & :hover ,
95+ & :focus {
96+ color : #8c98ae ;
97+ background : #bfcbd7 ;
98+ border : 1px solid #bfcbd7 ;
99+ }
100+ & .is-disabled {
101+ background : #dee2e6 ;
102+ color : #8c98ae ;
103+ border : 1px solid #dee2e6 ;
104+ opacity : 0.5 ;
105+ & :hover ,
106+ & :focus {
107+ background : #dee2e6 ;
108+ color : #8c98ae ;
109+ border : 1px solid #dee2e6 ;
110+ opacity : 0.5 ;
111+ }
112+ }
113+ }
2114
3115// checkbox
4116.module-box .module .el-checkbox__label {
130242
131243// table
132244.el-table {
245+ border-top : 1px solid $table-border-color ;
133246 border-left : 1px solid $table-border-color ;
134247 border-right : 1px solid $table-border-color ;
135248}
136249
250+ .el-table :not (.el-table--border ) {
251+ td {
252+ border : none ;
253+ }
254+ }
255+ .el-table--border {
256+ border-right : none !important ;
257+ table {
258+ border-top : none !important ;
259+ }
260+ }
261+
262+ .el-table .cell {
263+ display : flex ;
264+ margin-top : 2px ;
265+ margin-bottom : 2px ;
266+ padding-left : 20px ;
267+ }
268+
137269.el-table thead tr th .cell {
138270 color : #333 ;
139271 font-weight : 500 ;
150282thead tr {
151283 height : 62px ;
152284}
153-
154- tr :nth-child (odd ) {
155- background-color : #f8f9fa ;
285+ .el-table__body tr {
286+ height : 52px ;
156287}
157-
158- th :not (:last-child ) {
159- border : none !important ;
288+ .el-table th , .el-table td {
289+ padding : 9px 0px ;
160290}
161-
162- td {
163- border : none !important ;
291+ .el-table--striped .el-table__body tr {
292+ background : #f8f9fa ;
164293}
165-
166- table {
167- border-top : 1px solid #dee2e6 ;
294+ .el-table--striped .el-table__body tr .el-table__row--striped td {
295+ background : #fff ;
168296}
169-
170- .el-table .cell {
171- display : flex ;
172- margin-top : 2 px ;
173- margin-bottom : 2 px ;
174- padding-left : 20 px ;
297+ .el-table__body tr .current-row > td ,
298+ .el-table__body tr .hover-row.current-row > td ,
299+ .el-table__body tr .hover-row.el-table__row--striped.current-row > td ,
300+ .el-table__body tr .hover-row.el-table__row--striped > td ,
301+ .el-table__body tr .hover-row > td {
302+ background-color : #ecf5ff ;
175303}
176-
177- .el-table th .is-leaf ,
178- .el-table td {
179- border-bottom : none ;
180- }
181-
182304// dialog
183305.el-dialog__footer {
184306 text-align : left ;
@@ -218,7 +340,7 @@ table {
218340 position : relative ;
219341
220342 & :before {
221- content : ' ' ;
343+ content : " " ;
222344 width : 4px ;
223345 height : 4px ;
224346 border-radius : 50% ;
@@ -237,7 +359,7 @@ table {
237359 position : relative ;
238360
239361 & :before {
240- content : ' ' ;
362+ content : " " ;
241363 width : 6px ;
242364 height : 6px ;
243365 border-radius : 50% ;
@@ -248,12 +370,13 @@ table {
248370 top : 23px ;
249371 }
250372 }
251- & .third { // 3级
373+ & .third {
374+ // 3级
252375 .el-menu-item {
253376 position : relative ;
254-
377+
255378 & :before {
256- content : ' ' ;
379+ content : " " ;
257380 width : 4px ;
258381 height : 4px ;
259382 border-radius : 50% ;
@@ -263,16 +386,16 @@ table {
263386 top : 23px ;
264387 }
265388 }
266-
389+
267390 .el-menu-item-group__title {
268391 padding : 0 ;
269392 }
270-
393+
271394 .el-menu-item.is-active {
272395 position : relative ;
273-
396+
274397 & :before {
275- content : ' ' ;
398+ content : " " ;
276399 width : 6px ;
277400 height : 6px ;
278401 border-radius : 50% ;
@@ -347,8 +470,8 @@ table {
347470 height : $menuItem-height ;
348471 transition : border-color 0s , background-color 0s , color 0s ;
349472 }
350-
351- .el-menu--inline {
473+
474+ .el-menu--inline {
352475 background : $menuItem-bg !important ;
353476 & :hover {
354477 background-color : $menuItem-hover !important ;
0 commit comments