Created
November 26, 2013 17:56
-
-
Save blackfalcon/7662909 to your computer and use it in GitHub Desktop.
Extends Sass example
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
.one | |
words | |
.two | |
words | |
.three | |
words |
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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
%spacing | |
width: 20% | |
background-color: orange | |
height: 100px | |
display: inline-block | |
.one | |
@extend %spacing | |
.two | |
@extend %spacing | |
.three | |
@extend %spacing |
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
.one, .two, .three { | |
width: 20%; | |
background-color: orange; | |
height: 100px; | |
display: inline-block; | |
} |
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
<div class='one'> | |
words | |
</div> | |
<div class='two'> | |
words | |
</div> | |
<div class='three'> | |
words | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment