Created
March 17, 2016 18:31
-
-
Save mattcdavis1/fc675e6270323133a3d2 to your computer and use it in GitHub Desktop.
Suit CSS Cheat Sheet
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
.MyModule | |
// attributes (alphabetical) | |
background: blue; | |
// pseudo | |
&:before { | |
} | |
// tag children | |
div { | |
background: orange; | |
} | |
// non state class children | |
.someClass { | |
font-size: 12px; | |
} | |
// single dash | |
&-myComponent { | |
color: yellow; | |
} | |
// state classes | |
&.is-someState { | |
color: yellow; | |
} | |
// double dashes | |
&--myModifier { | |
color: red; | |
} | |
// media queries (smallest to largest) | |
@media (max-width: 600px) { | |
.facet_sidebar { | |
display: none; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment