Skip to content

Instantly share code, notes, and snippets.

@mbreit
Created May 21, 2015 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbreit/5b29845116868dc09565 to your computer and use it in GitHub Desktop.
Save mbreit/5b29845116868dc09565 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
$green: #00FF00;
@mixin fa-icon {
}
.widget {
@each $nr, $color, $icon in (1, #00B5CC, "\f086"),
(2, $green, "\f007"),
(3, #CC181E, "\f16a") {
&:nth-child(#{$nr}) {
h3 {
color: $color;
&:before {
@include fa-icon();
content: $icon;
width: (18em / 14);
}
}
.more {
background-color: $color;
}
}
}
}
@charset "UTF-8";
.widget:nth-child(1) h3 {
color: #00B5CC;
}
.widget:nth-child(1) h3:before {
content: "";
width: 1.28571429em;
}
.widget:nth-child(1) .more {
background-color: #00B5CC;
}
.widget:nth-child(2) h3 {
color: #00FF00;
}
.widget:nth-child(2) h3:before {
content: "";
width: 1.28571429em;
}
.widget:nth-child(2) .more {
background-color: #00FF00;
}
.widget:nth-child(3) h3 {
color: #CC181E;
}
.widget:nth-child(3) h3:before {
content: "";
width: 1.28571429em;
}
.widget:nth-child(3) .more {
background-color: #CC181E;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment