Created
September 26, 2014 16:15
-
-
Save kfrank/8e75cccbeb4c802f472f to your computer and use it in GitHub Desktop.
Color loop for buttons
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
$btn-colors: (primary, $orange), | |
(secondary, $yellow), | |
(tertiary, $blue), | |
(quaternary, $green); | |
@each $name, $value in $btn-colors { | |
&--#{$name} { | |
background: $value; | |
} | |
&--ghost { | |
border-style: solid; | |
border-width: 2px; | |
background: transparent; | |
&.btn--#{$name} { | |
border-color: $value; | |
color: $value; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment