Created
June 24, 2015 12:41
-
-
Save jblanche/720f2d7460c1b866a87b 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
asdasd |
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.14) | |
// Compass (v1.0.3) | |
// ---- | |
$color-snow--default: white; | |
$color-sand--default: yellow; | |
$color-rain--default: blue; | |
$color-forest--default: green; | |
$color-city--default: grey; | |
.truc { | |
@each $type, $color in (snow: $color-snow--default, sand: $color-sand--default, rain: $color-rain--default, forest: $color-forest--default, city: $color-city--default) { | |
&[data-terrain="#{$type}"] { | |
border-color: $color; | |
} | |
} | |
} |
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
.truc[data-terrain="snow"] { | |
border-color: white; | |
} | |
.truc[data-terrain="sand"] { | |
border-color: yellow; | |
} | |
.truc[data-terrain="rain"] { | |
border-color: blue; | |
} | |
.truc[data-terrain="forest"] { | |
border-color: green; | |
} | |
.truc[data-terrain="city"] { | |
border-color: grey; | |
} |
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
asdasd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment