Skip to content

Commit c54e2a2

Browse files
committed
Fix the issue that the layout is awkward when box-sizing is set to 'border-box'
1 parent c6846cb commit c54e2a2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/pace-theme-center-radar.tmpl.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
border-color: `args.color || "#29d"` transparent transparent;
3737
border-radius: 50%;
3838

39+
-webkit-box-sizing: content-box;
40+
-moz-box-sizing: content-box;
41+
box-sizing: content-box;
42+
3943
-webkit-animation: spin 1s linear infinite;
4044
-moz-animation: spin 1s linear infinite;
4145
-o-animation: spin 1s linear infinite;
@@ -54,6 +58,10 @@
5458
border-style: solid;
5559
border-color: `args.color || "#29d"` transparent transparent;
5660
border-radius: 50%;
61+
62+
-webkit-box-sizing: content-box;
63+
-moz-box-sizing: content-box;
64+
box-sizing: content-box;
5765
}
5866

5967
@-webkit-keyframes spin {

0 commit comments

Comments
 (0)