style: 伪元素统一采用双冒号格式

This commit is contained in:
pany 2023-08-17 13:55:23 +08:00
parent 8eb8876f04
commit f966b45ace
3 changed files with 9 additions and 9 deletions

View File

@ -9,26 +9,26 @@
} }
#app-loading, #app-loading,
#app-loading:before, #app-loading::before,
#app-loading:after { #app-loading::after {
width: 2em; width: 2em;
height: 2em; height: 2em;
border-radius: 50%; border-radius: 50%;
animation: 2s ease-in-out infinite app-loading-animation; animation: 2s ease-in-out infinite app-loading-animation;
} }
#app-loading:before, #app-loading::before,
#app-loading:after { #app-loading::after {
content: ""; content: "";
position: absolute; position: absolute;
} }
#app-loading:before { #app-loading::before {
left: -4em; left: -4em;
animation-delay: -0.2s; animation-delay: -0.2s;
} }
#app-loading:after { #app-loading::after {
left: 4em; left: 4em;
animation-delay: 0.2s; animation-delay: 0.2s;
} }

View File

@ -35,8 +35,8 @@ body {
} }
*, *,
*:before, *::before,
*:after { *::after {
box-sizing: border-box; box-sizing: border-box;
} }

View File

@ -1,6 +1,6 @@
/** 清除浮动 */ /** 清除浮动 */
@mixin clearfix { @mixin clearfix {
&:after { &::after {
content: ""; content: "";
display: table; display: table;
clear: both; clear: both;