Created
March 3, 2014 12:27
-
-
Save hail2u/9323950 to your computer and use it in GitHub Desktop.
&__とか&--のアレ
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
.foo { | |
color: red; } | |
.foo__bar { | |
color: green; } | |
.foo--baz { | |
color: blue; } |
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
.foo { | |
color: red; | |
&__bar { | |
color: green; | |
} | |
&--baz { | |
color: blue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sass 3.3.0.rc.3から
&
が先頭でかつ空白無しで文字が続くと@at-root
とインターポレーションを組み合わせた時と同じ出力になるようになった。