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

feat: 全局默认box-sizing: border-box;降低元素布局难度。
master
Archer 1 year ago committed by GitHub
commit 54622c5c9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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;

@ -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;
}

Loading…
Cancel
Save