Skip to content

Instantly share code, notes, and snippets.

@podo
Created February 11, 2015 09:36
Show Gist options
  • Save podo/5d6061139bad5ae14a92 to your computer and use it in GitHub Desktop.
Save podo/5d6061139bad5ae14a92 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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; }
}
}
}
.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