Created
August 29, 2012 15:44
-
-
Save thebrainroom/3514610 to your computer and use it in GitHub Desktop.
Single color (no gradient) CSS3 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
/** | |
* Single color (no gradient) CSS3 buttons | |
*/ | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
html { | |
background: #2e2e42; | |
max-width: 300px; | |
text-align: center; | |
margin: 100px auto; | |
-webkit-font-smoothing: antialiased; | |
} | |
.btn { | |
display: inline-block; | |
padding: 20px 40px; | |
text-align:center; | |
text-decoration: none; | |
-moz-border-radius: 8px; | |
-webkit-border-radius: 8px; | |
border-radius: 8px; | |
-moz-box-shadow:inset 0px -4px 0px rgba(0,0,0,0.3); | |
-webkit-box-shadow:inset 0px -4px 0px rgba(0,0,0,0.3); | |
box-shadow:inset 0px -4px 0px rgba(0,0,0,0.3); | |
font-family: 'Proxima Nova', sans-serif; | |
font-size: 14pt; | |
color: #222; | |
margin: 0 0 30px 0; | |
-webkit-transition: all .1s ease-in-out; | |
-moz-transition: all .1s ease-in-out; | |
transition: all .1s ease-in-out; | |
} | |
.btn:hover { | |
-webkit-transform: scale(1.04); | |
-moz-transform: scale(1.04); | |
-ms-transform: scale(1.04); | |
-o-transform: scale(1.04); | |
transform: scale(1.04); | |
} | |
.btn:active { | |
-webkit-transform: scale(1); | |
-moz-transform: scale(1); | |
-ms-transform: scale(1); | |
-o-transform: scale(1); | |
transform: scale(1); | |
} | |
.yellow.btn { | |
background-color: #FFE000; | |
} | |
.red.btn { | |
background-color: #ff5a00; | |
color: #FFF; | |
} | |
.blue.btn { | |
background-color: #00b4ff; | |
color: #FFF; | |
} | |
.purple.btn { | |
background-color: #b400ff; | |
color: #FFF; | |
} | |
.dark.btn { | |
background-color: #555; | |
color: #CCC; | |
} |
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
<a href="#" class="yellow btn">Yellow belly</a> | |
<a href="#" class="red btn">Red sea</a> | |
<a href="#" class="blue btn">Open water</a> | |
<a href="#" class="dark btn">Silhouette</a> |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment