Skip to content

Instantly share code, notes, and snippets.

@cimmanon
Created September 30, 2014 16:37
Show Gist options
  • Save cimmanon/1763036618303d481951 to your computer and use it in GitHub Desktop.
Save cimmanon/1763036618303d481951 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<label>foo</label>
<label class="blue">foo</label>
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.bullets {
$icon-bullet-size: 3.5em;
$colors:
desaturate(blue, 30),
desaturate(green, 10),
desaturate(yellow, 30),
desaturate(red, 30),
desaturate(goldenrod, 30);
padding: 2em;
overflow: auto;
text-align: center;
h2 {
@for $i from 1 to length($colors) {
&:nth-of-type(#{$i}) {
$color-from-list: nth($colors, $i);
color: $color-from-list;
}
}
}
}
.bullets {
padding: 2em;
overflow: auto;
text-align: center;
}
.bullets h2:nth-of-type(1) {
color: #2626d9;
}
.bullets h2:nth-of-type(2) {
color: #067a06;
}
.bullets h2:nth-of-type(3) {
color: #d9d926;
}
.bullets h2:nth-of-type(4) {
color: #d92626;
}
<label>foo</label>
<label class="blue">foo</label>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment