Created
November 13, 2013 23:58
-
-
Save mturjak/7458758 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.0.rc.1) | |
| // Compass (v0.13.alpha.10) | |
| // ---- | |
| @mixin sameHeight($multiplier){ | |
| height: 367px + 21px * $multiplier; | |
| } | |
| $amp: null; | |
| .page{ | |
| $amp: #{&}; | |
| /* .page style */ | |
| } | |
| /* now with different levels of specificity: */ | |
| .inner{ | |
| /* just .inner style */ | |
| #{$amp} & { | |
| /* .page .inner style */ | |
| } | |
| @for $i from 1 through 3{ | |
| #{$amp} .compare-#{$i} & { @include sameHeight($i); }; | |
| } | |
| } |
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
| .page { | |
| /* .page style */ | |
| } | |
| /* now with different levels of specificity: */ | |
| .inner { | |
| /* just .inner style */ | |
| } | |
| .page .inner { | |
| /* .page .inner style */ | |
| } | |
| .page .compare-1 .inner { | |
| height: 388px; | |
| } | |
| .page .compare-2 .inner { | |
| height: 409px; | |
| } | |
| .page .compare-3 .inner { | |
| height: 430px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment