Created
February 11, 2015 09:36
-
-
Save podo/5d6061139bad5ae14a92 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.4.11) | |
// Compass (v1.0.3) | |
// ---- | |
$modifiers: ('modifier1', 'modifier2', 'modifier3'); | |
.something { | |
font-weight: 500; | |
&__child { | |
@each $modifier in $modifiers { | |
&--#{$modifier} { font-size: 10px; } | |
} | |
} | |
/* -------------------------------------------- */ | |
@each $modifier in $modifiers { | |
&--#{$modifier} { | |
&__child {font-size: 10px; } | |
} | |
} | |
} |
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
.something { | |
font-weight: 500; | |
/* -------------------------------------------- */ | |
} | |
.something__child--modifier1 { | |
font-size: 10px; | |
} | |
.something__child--modifier2 { | |
font-size: 10px; | |
} | |
.something__child--modifier3 { | |
font-size: 10px; | |
} | |
.something--modifier1__child { | |
font-size: 10px; | |
} | |
.something--modifier2__child { | |
font-size: 10px; | |
} | |
.something--modifier3__child { | |
font-size: 10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment