Last active
August 29, 2015 14:03
-
-
Save elijahmanor/ded683c456fb6ab08ec7 to your computer and use it in GitHub Desktop.
Refactor Colors
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
@import url(http://fonts.googleapis.com/css?family=Open+Sans); | |
%Button { | |
border-radius: 5px; | |
box-shadow: inset 0 0 1px #fff, 0 1px 2px rgba(0, 0, 0, .3); | |
color: #fff; | |
cursor: pointer; | |
display: inline-block; | |
height: scut-em(40, 16); | |
text-align: center; | |
text-decoration: none; | |
font-family: 'Open Sans', sans-serif; | |
font-weight: 700; | |
line-height: 40px; | |
padding: 0 15px; | |
background-color: #006dcc; | |
background-image: linear-gradient(top, #006dcc 0%, #085191 100%); | |
border: 1px solid #085191; | |
text-shadow: #031b30 0 -1px 1px; | |
&:hover, | |
&:focus { | |
background: #006dcc; | |
text-decoration: none; | |
} | |
} | |
.Button { | |
@extend %Button; | |
} | |
.Button--success { | |
@extend %Button; | |
background-color: #5bb75b; | |
background-image: linear-gradient(top, #5bb75b 0%, #4f904f 100%); | |
border: 1px solid #4f904f; | |
text-shadow: #2b4e2b 0 -1px 1px; | |
&:hover, | |
&:focus { | |
background: #5bb75b; | |
text-decoration: none; | |
} | |
} | |
.Button--danger { | |
@extend %Button; | |
background-color: #da4f49; | |
background-image: linear-gradient(top, #da4f49 0%, #bb3a35 100%); | |
border: 1px solid #bb3a35; | |
text-shadow: #6c211e 0 -1px 1px; | |
&:hover, | |
&:focus { | |
background: #BB3A35; | |
text-decoration: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment