Last active
October 19, 2017 17:10
-
-
Save kopepasah/b9888d82737e539f2247df8e5f94fce4 to your computer and use it in GitHub Desktop.
Example code for the case to always use quotes in Sass maps.
This file contains 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
$colors: ( | |
"blue": "#2b55f3", | |
"green": "#39dd4a", | |
"yellow": "#f0f30f", | |
"red": "#ff2e35", | |
"orange": "#f8ad55", | |
); | |
@each $name, $color in $colors { | |
.#{$name} { | |
color: $color; | |
} | |
} |
This file contains 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
$colors: ( | |
blue: "#2b55f3", | |
green: "#39dd4a", | |
yellow: "#f0f30f", | |
red: "#ff2e35", | |
orange: "#f8ad55", | |
); | |
@each $name, $color in $colors { | |
.#{$name} { | |
color: $color; | |
} | |
} |
This file contains 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
.blue{color:"#2b55f3"}.green{color:"#39dd4a"}.yellow{color:"#f0f30f"}.red{color:"#ff2e35"}.orange{color:"#f8ad55"} |
This file contains 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
Invalid CSS after ".": expected class name, was "#ff0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment