Last active
July 4, 2018 09:49
-
-
Save yomotsu/9aabf91de56910e0d3e0 to your computer and use it in GitHub Desktop.
at-root + modifier
This file contains hidden or 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
@media screen and (max-width: 320px) { | |
.Notifier { | |
$block: &; | |
display: block; | |
&_Main { | |
color: green; | |
@at-root #{$block}.-error #{&}{ | |
color: red; | |
} | |
} | |
} | |
} |
This file contains hidden or 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
@media screen and (max-width: 320px) { | |
.Notifier { | |
display: block; | |
} | |
.Notifier_Main { | |
color: green; | |
} | |
.Notifier.-error .Notifier_Main { | |
color: red; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment