Skip to content

Instantly share code, notes, and snippets.

@hail2u
Created March 3, 2014 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hail2u/9323950 to your computer and use it in GitHub Desktop.
Save hail2u/9323950 to your computer and use it in GitHub Desktop.
&__とか&--のアレ
.foo {
color: red; }
.foo__bar {
color: green; }
.foo--baz {
color: blue; }
.foo {
color: red;
&__bar {
color: green;
}
&--baz {
color: blue;
}
}
@hail2u
Copy link
Author

hail2u commented Mar 3, 2014

Sass 3.3.0.rc.3から&が先頭でかつ空白無しで文字が続くと@at-rootとインターポレーションを組み合わせた時と同じ出力になるようになった。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment