style: update calc style (#3090)

fix #3073
This commit is contained in:
kooriookami 2021-08-27 14:39:53 +08:00 committed by GitHub
parent f108d6ca3d
commit f274bc97db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@
background-color: var(--el-switch-on-color);
.#{$namespace}-switch__action {
left: 100%;
margin-left: calc(0px - var(--el-switch-button-size) - 1px);
margin-left: calc(-1px - var(--el-switch-button-size));
color: var(--el-switch-on-color);
}
}