Skip to content

Instantly share code, notes, and snippets.

@fernandofuly
Created July 28, 2016 02:23
Show Gist options
  • Save fernandofuly/b0b9222a3383470d6294fc5282018a32 to your computer and use it in GitHub Desktop.
Save fernandofuly/b0b9222a3383470d6294fc5282018a32 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
/* Control Directives & Expressions */
// @for directive usage
@for $i from 1 through 3 {
.foo-#{$i} {
background: #000;
font-size: 1em + $i;
}
}
// @if directive usage
$theme: "neutral";
@if $theme == "neutral" {
body {
background: transparent;
}
} @else if $theme == "blah" {
body {
background: #fff;
}
} @else {
body {
background: #ccc;
}
}
/* Control Directives & Expressions */
.foo-1 {
background: #000;
font-size: 2em;
}
.foo-2 {
background: #000;
font-size: 3em;
}
.foo-3 {
background: #000;
font-size: 4em;
}
body {
background: transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment