Created
January 19, 2013 05:17
-
-
Save ipetepete/4570905 to your computer and use it in GitHub Desktop.
Button styles
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
/** | |
* Button styles | |
*/ | |
body{ | |
background: #fc6; | |
font-size: 16px; | |
font-family: sans-serif; | |
min-height: 100%; | |
} | |
.button:hover, button:hover{ | |
left:-1px; | |
top: -1px; | |
box-shadow: 4px 4px #15a; | |
} | |
.button:active, button:active{ | |
left: 3px; | |
top: 3px; | |
box-shadow: none; | |
} | |
.button, button{ | |
position: relative; | |
display: inline-block; | |
line-height: 1.5em; | |
vertical-align: middle; | |
padding: 8px 10px; | |
background: #1af; | |
color: #fff; | |
border: 0px solid transparent; | |
box-shadow: 3px 3px #15a; | |
font-size:16px !important; | |
} |
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
<a class="button">I'm a link!</a> | |
<button>I'm a button</button> | |
<input type=submit class="button" value="I'm a submit"> |
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
// alert('Hello world!'); |
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
{"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