Created
October 24, 2013 15:15
-
-
Save pfulton/7139046 to your computer and use it in GitHub Desktop.
An example of using the placeholder selector and @extend in Sass & Compass
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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.7) | |
// ---- | |
%module { | |
background: #fff; | |
color: #444; | |
} | |
.main_module { | |
@extend %module; | |
min-height: 3em; | |
} | |
.sidebar_module { | |
@extend %module; | |
min-height: 2em; | |
} |
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
.main_module, .sidebar_module { | |
background: #fff; | |
color: #444; | |
} | |
.main_module { | |
min-height: 3em; | |
} | |
.sidebar_module { | |
min-height: 2em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment