Created
May 2, 2014 18:00
-
-
Save jdsteinbach/11481882 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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.6) | |
| // Compass (v1.0.0.alpha.18) | |
| // ---- | |
| /* You can generate nested selectors this: */ | |
| %parent { | |
| text-align: center; | |
| .single { | |
| text-align: left; | |
| } | |
| h1 { | |
| font-size: 2em; | |
| } | |
| } | |
| .post-archive { | |
| @extend %parent; | |
| } | |
| /* You cannot generate new selectors like this: */ | |
| %article { | |
| font-size: 1em; | |
| &-title { | |
| font-size: 2em; | |
| } | |
| } | |
| .post { | |
| @extend %article; | |
| } |
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
| /* You can generate nested selectors this: */ | |
| .post-archive { | |
| text-align: center; | |
| } | |
| .post-archive .single { | |
| text-align: left; | |
| } | |
| .post-archive h1 { | |
| font-size: 2em; | |
| } | |
| /* You cannot generate new selectors like this: */ | |
| .post { | |
| font-size: 1em; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment