Skip to content

Instantly share code, notes, and snippets.

@anfibiacreativa
Last active February 5, 2020 11:49
Show Gist options
  • Save anfibiacreativa/86d33f255721e6c2390b1006f6a2762e to your computer and use it in GitHub Desktop.
Save anfibiacreativa/86d33f255721e6c2390b1006f6a2762e to your computer and use it in GitHub Desktop.
// ok, this file is called example-block?! How is that?!
// No, this is just to identify gists ;)
// Sooo, name the element after, you know, an element or a generic reference to it!
// do!
.example {
&__wrapper {
// code
}
&__innerWrapper {
// code
}
&__hl {
// code
}
&__subHl {
// code
}
&__list {
// code
}
&__listItem {
// code
}
&__txt {
// code
}
}
// don't! what if you want to reuse the same styles in another component? or the requirement changes!
.example {
&__copyrightNotice {
// code
}
&__productDescription {
// code
}
&__largeTitle {
// code
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment