Last active
February 4, 2016 21:44
-
-
Save adnasa/ef8ced5613aff534676f to your computer and use it in GitHub Desktop.
Overhaul suggestion 2: .btn class to set a base for button. adding an additional class to change its state.
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 { | |
outline: none; | |
border: none; | |
padding: 5px 10px; | |
letter-spacing: 1px; | |
text-transform: uppercase; | |
} | |
.btn.btn--primary { | |
color: #333333; | |
background-color: #FFBA27; | |
} | |
.btn.btn--secondary { | |
color: #ADADAD; | |
background-color: #fff; | |
border: 2px solid #ADADAD; | |
border-radius: 2px; | |
padding: 3px 20px; | |
} | |
.btn.btn--inverted { | |
color: #fff; | |
background-color: #ADADAD; | |
} |
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 { | |
outline: none; | |
border: none; | |
padding: 5px 10px; | |
letter-spacing: 1px; | |
text-transform: uppercase; | |
&.btn--primary { | |
color: #333333; | |
background-color: #FFBA27; | |
} | |
&.btn--secondary { | |
color: #ADADAD; | |
background-color: #fff; | |
border: 2px solid #ADADAD; | |
border-radius: 2px; | |
padding: 3px 20px; | |
} | |
&.btn--inverted { | |
color: #fff; | |
background-color: #ADADAD; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment