Merge pull request #522 from lilangkit/hotfix/box-sizing

feat: 全局默认box-sizing: border-box;降低元素布局难度。
This commit is contained in:
Archer 2024-08-25 16:28:52 +08:00 committed by GitHub
commit 54622c5c9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -514,7 +514,7 @@ watch(
&__item { &__item {
position: relative; position: relative;
top: 2px; top: 3px;
height: calc(~'100% - 6px'); height: calc(~'100% - 6px');
padding-right: 25px; padding-right: 25px;
margin-left: 4px; margin-left: 4px;

View File

@ -59,3 +59,11 @@
.dark { .dark {
--app-content-bg-color: var(--el-bg-color); --app-content-bg-color: var(--el-bg-color);
} }
*,
:after,
:before {
margin: 0;
padding: 0;
box-sizing: border-box;
}