mirror of https://github.com/ElemeFE/element
Switch: update style (#1803)
parent
240fda5af8
commit
1c24a2b294
|
@ -8,6 +8,8 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: var(--switch-font-size);
|
font-size: var(--switch-font-size);
|
||||||
line-height: var(--switch-height);
|
line-height: var(--switch-height);
|
||||||
|
height: var(--switch-height);
|
||||||
|
vertical-align: middle;
|
||||||
@when disabled {
|
@when disabled {
|
||||||
& .el-switch__core,
|
& .el-switch__core,
|
||||||
& .el-switch__label {
|
& .el-switch__label {
|
||||||
|
@ -57,7 +59,6 @@
|
||||||
@e core {
|
@e core {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
size: var(--switch-width) var(--switch-height);
|
size: var(--switch-width) var(--switch-height);
|
||||||
border: 1px solid var(--switch-off-color);
|
border: 1px solid var(--switch-off-color);
|
||||||
|
|
Loading…
Reference in New Issue