Created
February 22, 2020 17:07
-
-
Save mio-U-M/274206112e3e8b3626acc3ffaa1c2b13 to your computer and use it in GitHub Desktop.
擬似要素のテンプレで書くところを省略するためのmixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin simple-before { | |
&::before { | |
content: ''; | |
@content; | |
} | |
} | |
@mixin simple-after { | |
&::after { | |
content: ''; | |
@content; | |
} | |
} | |
@mixin solid-before { | |
&::before { | |
display: block; | |
content: ''; | |
@content; | |
} | |
} | |
@mixin solid-after { | |
&::after { | |
display: block; | |
content: ''; | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment