Merge pull request #522 from lilangkit/hotfix/box-sizing
feat: 全局默认box-sizing: border-box;降低元素布局难度。
This commit is contained in:
commit
54622c5c9a
|
@ -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…
Reference in New Issue