diff options
| author | pany <[email protected]> | 2023-08-17 13:55:23 +0800 |
|---|---|---|
| committer | pany <[email protected]> | 2023-08-17 13:55:23 +0800 |
| commit | f966b45acee1648cad15da48e92e0028ef0f7863 (patch) | |
| tree | 40c156df6f81d668838fb95843cbd89e113d011f /src | |
| parent | 8eb8876f04abcf989e4db0d13ad9537b3e3c7c0e (diff) | |
style: 伪元素统一采用双冒号格式
Diffstat (limited to 'src')
| -rw-r--r-- | src/styles/index.scss | 4 | ||||
| -rw-r--r-- | src/styles/mixins.scss | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/styles/index.scss b/src/styles/index.scss index c2d90c0..b03d7ca 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -35,8 +35,8 @@ body { } *, -*:before, -*:after { +*::before, +*::after { box-sizing: border-box; } diff --git a/src/styles/mixins.scss b/src/styles/mixins.scss index 27f4972..acb091a 100644 --- a/src/styles/mixins.scss +++ b/src/styles/mixins.scss @@ -1,6 +1,6 @@ /** 清除浮动 */ @mixin clearfix { - &:after { + &::after { content: ""; display: table; clear: both; |
