Created
March 10, 2014 08:28
-
-
Save cancer/9461411 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.0) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
.block { | |
background-color: black; | |
.block__elem1 { background-color: tomato;} | |
&__elem2 { background-color: chocolate; } | |
& &__elem3 { | |
background-color: orange; | |
&__elem4 { background-color: gold;} | |
@at-root { | |
&__elem4 { background-color: gold;} | |
} | |
} | |
@at-root { | |
&__elem4 { background-color: gold;} | |
} | |
} | |
@media print { | |
.block2 { | |
background: tomato; | |
@at-root(without:media) { | |
&__elem { background-color: gold;} | |
} | |
} | |
} |
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
.block { | |
background-color: black; | |
} | |
.block .block__elem1 { | |
background-color: tomato; | |
} | |
.block__elem2 { | |
background-color: chocolate; | |
} | |
.block .block__elem3 { | |
background-color: orange; | |
} | |
.block .block__elem3__elem4 { | |
background-color: gold; | |
} | |
.block .block__elem3__elem4 { | |
background-color: gold; | |
} | |
.block__elem4 { | |
background-color: gold; | |
} | |
@media print { | |
.block2 { | |
background: tomato; | |
} | |
} | |
.block2__elem { | |
background-color: gold; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment