Last active
March 20, 2021 21:25
-
-
Save andreortiz82/d0b20cb33f45ee06251521739d8cfa0e to your computer and use it in GitHub Desktop.
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
// Atomic CSS | |
// Small, immutable and explicitly named utility classes. | |
.bg-red5 { backgound: $red5; } | |
.text-align-center { text-align: center; } | |
.padding-bottom-xl { padding-bottom: #{$size-xl}px; } |
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
// Block Element Modifier | |
// Highly verbose and explicitly named classes. | |
.o-my-widget { | |
backgound: $red5; | |
padding-bottom: #{$size-xl}px; | |
&__title { | |
text-align: center; | |
} | |
} |
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
// Object Oriented CSS | |
// Single responsibility and inheritance. Should reflect the shape of the DOM. | |
.my-widget { | |
backgound: $red5; | |
padding-bottom: #{$size-xl}px; | |
h2 { | |
text-align: center; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment