Created
October 14, 2015 00:03
-
-
Save iamskok/ee3c9e1f04a9106092ec 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$buttons: ( | |
'error': (#d82d2d, #666), | |
'success': (#52bf4a, #fff), | |
'warning': (#c23435, #fff) | |
); | |
.button { | |
display: inline-block; | |
padding: .5em; | |
background: #ccc; | |
color: #666; | |
@each $name, $colors in $buttons { | |
$bgcolor: nth($colors, 1); | |
$fontcolor: nth($colors, 2); | |
&--#{$name} { | |
background-color: $bgcolor; | |
color: $fontcolor; | |
} | |
} | |
} |
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
.button { | |
display: inline-block; | |
padding: .5em; | |
background: #ccc; | |
color: #666; | |
} | |
.button--error { | |
background-color: #d82d2d; | |
color: #666; | |
} | |
.button--success { | |
background-color: #52bf4a; | |
color: #fff; | |
} | |
.button--warning { | |
background-color: #c23435; | |
color: #fff; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment