Created
December 17, 2014 18:57
-
-
Save tribulant/3f90cd7f851135285c26 to your computer and use it in GitHub Desktop.
Tribulant Software 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
.button { | |
display: inline-block; | |
outline: none; | |
cursor: pointer; | |
text-align: center; | |
text-decoration: none; | |
font-size: 14px; | |
font-weight: bold; | |
padding: .6em 1em .7em 1em; | |
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4); | |
-webkit-border-radius: .3em; | |
-moz-border-radius: .3em; | |
border-radius: .3em; | |
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2); | |
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2); | |
box-shadow: 0 1px 2px rgba(0,0,0,.2); | |
text-decoration: none; | |
} | |
.button:hover { | |
text-decoration: none; | |
position: relative; | |
} | |
.button-large { | |
padding: .8em 2.3em .8em 2.3em; | |
font-size: 14px; | |
} | |
.button-small { | |
padding: 0 1.2em 0 1.2em; | |
height: 26px; | |
font-size: 12px; | |
} | |
.button-grey { | |
color: #888888; | |
border: solid 1px #f9f9f9; | |
background: #FFFFFF; | |
background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#e9e9e9)); | |
background: -moz-linear-gradient(top, #ffffff, #e9e9e9); | |
background: -o-linear-gradient(top, #ffffff, #e9e9e9); | |
background: -ms-linear-gradient(top, #ffffff, #e9e9e9); | |
background: linear-gradient(to bottom, #ffffff, #e9e9e9); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e9e9e9'); | |
text-shadow: 1px 1px 0px rgba(255, 255, 255, 1); | |
} | |
.button-grey:hover { | |
color: #888888; | |
background: -webkit-gradient(linear, left top, left bottom, from(#e9e9e9), to(#ffffff)); | |
background: -moz-linear-gradient(top, #e9e9e9, #ffffff); | |
background: -o-linear-gradient(top, #e9e9e9, #ffffff); | |
background: -ms-linear-gradient(top, #e9e9e9, #ffffff); | |
background: linear-gradient(to bottom, #e9e9e9, #ffffff); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#ffffff'); | |
} | |
.button-grey:active { | |
color: #888888; | |
-webkit-box-shadow: none; | |
border: solid 1px #e9e9e9; | |
-moz-box-shadow: none; | |
box-shadow: none; | |
background: -webkit-gradient(linear, left top, left bottom, from(#e9e9e9), to(#ffffff)); | |
background: -moz-linear-gradient(top, #e9e9e9, #ffffff); | |
background: -o-linear-gradient(top, #e9e9e9, #ffffff); | |
background: -ms-linear-gradient(top, #e9e9e9, #ffffff); | |
background: linear-gradient(to bottom, #e9e9e9, #ffffff); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#ffffff'); | |
} | |
.button-green { | |
color: #FFFFFF; | |
border: solid 1px #399228; | |
background: #f9f9f9; | |
background: -webkit-gradient(linear, left top, left bottom, from(#6bc04a), to(#54aa41)); | |
background: -moz-linear-gradient(top, #6bc04a, #54aa41); | |
background: -o-linear-gradient(top, #6bc04a, #54aa41); | |
background: -ms-linear-gradient(top, #6bc04a, #54aa41); | |
background: linear-gradient(to bottom, #6bc04a, #54aa41); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6bc04a', endColorstr='#54aa41'); | |
} | |
.button-green:hover { | |
color: #FFFFFF; | |
background: -webkit-gradient(linear, left top, left bottom, from(#61b54d), to(#6bc04a)); | |
background: -moz-linear-gradient(top, #61b54d, #6bc04a); | |
background: -o-linear-gradient(top, #61b54d, #6bc04a); | |
background: -ms-linear-gradient(top, #61b54d, #6bc04a); | |
background: linear-gradient(to bottom, #61b54d, #6bc04a); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#61b54d', endColorstr='#6bc04a'); | |
} | |
.button-green:active { | |
color: #FFFFFF; | |
-webkit-box-shadow: none; | |
-moz-box-shadow: none; | |
box-shadow: none; | |
background: -webkit-gradient(linear, left top, left bottom, from(#61b54d), to(#6bc04a)); | |
background: -moz-linear-gradient(top, #61b54d, #6bc04a); | |
background: -o-linear-gradient(top, #61b54d, #6bc04a); | |
background: -ms-linear-gradient(top, #61b54d, #6bc04a); | |
background: linear-gradient(to bottom, #61b54d, #6bc04a); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#61b54d', endColorstr='#6bc04a'); | |
} | |
.button-blue { | |
color: #FFFFFF; | |
border: solid 1px #27608b; | |
background: #f9f9f9; | |
background: -webkit-gradient(linear, left top, left bottom, from(#1e72a0), to(#135282)); | |
background: -moz-linear-gradient(top, #1e72a0, #135282); | |
background: -o-linear-gradient(top, #1e72a0, #135282); | |
background: -ms-linear-gradient(top, #1e72a0, #135282); | |
background: linear-gradient(to bottom, #1e72a0, #135282); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e72a0', endColorstr='#135282'); | |
} | |
.button-blue:hover { | |
color: #FFFFFF; | |
background: -webkit-gradient(linear, left top, left bottom, from(#135282), to(#1e72a0)); | |
background: -moz-linear-gradient(top, #135282, #1e72a0); | |
background: -o-linear-gradient(top, #135282, #1e72a0); | |
background: -ms-linear-gradient(top, #135282, #1e72a0); | |
background: linear-gradient(to bottom, #135282, #1e72a0); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#135282', endColorstr='#1e72a0'); | |
} | |
.button-blue:active { | |
color: #FFFFFF; | |
-webkit-box-shadow: none; | |
-moz-box-shadow: none; | |
box-shadow: none; | |
background: -webkit-gradient(linear, left top, left bottom, from(#135282), to(#1e72a0)); | |
background: -moz-linear-gradient(top, #135282, #1e72a0); | |
background: -o-linear-gradient(top, #135282, #1e72a0); | |
background: -ms-linear-gradient(top, #135282, #1e72a0); | |
background: linear-gradient(to bottom, #135282, #1e72a0); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#135282', endColorstr='#1e72a0'); | |
} | |
.button-yellow { | |
color: #8e5f0b; | |
border: solid 1px #96793e; | |
background: #f9f9f9; | |
background: -webkit-gradient(linear, left top, left bottom, from(#f8d545), to(#e59419)); | |
background: -moz-linear-gradient(top, #f8d545, #e59419); | |
background: -o-linear-gradient(top, #f8d545, #e59419); | |
background: -ms-linear-gradient(top, #f8d545, #e59419); | |
background: linear-gradient(to bottom, #f8d545, #e59419); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8d545', endColorstr='#e59419'); | |
text-shadow: 1px 1px 0 rgba(248, 213, 69 , 0.5); | |
} | |
.button-yellow:hover { | |
background: -webkit-gradient(linear, left top, left bottom, from(#e59419), to(#f8d545)); | |
background: -moz-linear-gradient(top, #e59419, #f8d545); | |
background: -o-linear-gradient(top, #e59419, #f8d545); | |
background: -ms-linear-gradient(top, #e59419, #f8d545); | |
background: linear-gradient(to bottom, #e59419, #f8d545); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e59419', endColorstr='#f8d545'); | |
} | |
.button-yellow:active { | |
-webkit-box-shadow: none; | |
-moz-box-shadow: none; | |
box-shadow: none; | |
background: -webkit-gradient(linear, left top, left bottom, from(#e59419), to(#f8d545)); | |
background: -moz-linear-gradient(top, #e59419, #f8d545); | |
background: -o-linear-gradient(top, #e59419, #f8d545); | |
background: -ms-linear-gradient(top, #e59419, #f8d545); | |
background: linear-gradient(to bottom, #e59419, #f8d545); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e59419', endColorstr='#f8d545'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment