Created
March 15, 2013 15:02
-
-
Save ebello/5170467 to your computer and use it in GitHub Desktop.
Dynamic extend-only selectors
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
@for $i from 0 through 6 { | |
%row#{$i} { | |
top: $block-size * $i; | |
} | |
} | |
@each $year in 1997, 1994, 1993, 1991 { | |
#y#{$year} a { | |
@extend %row3; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With
$block-size
set to 118px, it compiles to: