Created
July 28, 2016 02:23
-
-
Save fernandofuly/b0b9222a3383470d6294fc5282018a32 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.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; | |
} | |
} |
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
/* 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