Last active
December 28, 2015 21:09
-
-
Save nessthehero/7562936 to your computer and use it in GitHub Desktop.
Example of SASS Module
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
.module { // Uses Chris Coyier's SASS style guide | |
// Extends | |
@extends %module; | |
// Native styles | |
background-color: lightpink; | |
// Includes (mixins and whatnot) | |
@include transition(all 0.3s ease-out); | |
// Nested Selectors | |
h3 { | |
// Same pattern, maximum two levels | |
a{ | |
// Don't go deeper than this. | |
// Seperate out into new module | |
} | |
} | |
@include bp(medium) { | |
// Breakpoints | |
} | |
} | |
// Related styles that for some reason must be seperated out | |
.related { | |
// Same format as above | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add breakpoints to the bottom of the module.