Created
October 24, 2013 15:11
-
-
Save pfulton/7138977 to your computer and use it in GitHub Desktop.
An example of using @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) | |
// ---- | |
@import "compass"; | |
.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
.module, .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