1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

style: 优化 switch 组件 small 尺寸样式 (#6210)

This commit is contained in:
2024-08-22 22:20:55 +08:00 committed by GitHub
parent 24e780b984
commit 626f5efdcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,3 +10,16 @@ body,
:-webkit-any(article, aside, nav, section) h1 {
font-size: 2em;
}
.el-switch--small .el-switch__core {
width: 36px;
}
.el-switch--small .el-switch__core::after {
width: 12px;
height: 12px;
}
.el-switch--small,.is-checked .el-switch__core::after {
margin-left: 12px !important;
}