Created
April 26, 2012 16:58
-
-
Save iamstarkov/2500961 to your computer and use it in GitHub Desktop.
Button w/o images
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 w/o images | |
*/ | |
html { | |
font-size: 62.5%; | |
} | |
body { | |
font: normal 1em/1em Arial, Tahoma, Verdana, sans-serif; | |
} | |
/* layout */ | |
.btn { | |
display: inline-block; | |
height: 28px; | |
border-width: 1px; | |
border-style: solid; | |
min-width: 120px; | |
} | |
/* typo */ | |
.btn { | |
/* 28 / 14 = 2.57142857 */ | |
font: bold 14px/2 Arial, Helvetica, Tahoma, sans-serif; | |
} | |
/* color */ | |
.btn { | |
background-color: #00cccc; | |
color: #fff; | |
border-color: #00a8a8; | |
border-radius: 3px; | |
box-shadow: | |
1px 1px 4px 1px rgba(255, 255, 255, 0.4) inset, | |
-1px -1px 4px 1px rgba(000, 000, 000, 0.4) inset | |
} | |
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
<!-- | |
paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ | |
--> | |
<!--[if lt IE 7]> | |
<div id="body" class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> | |
<![endif]--> | |
<!--[if IE 7]> | |
<div id="body" class="no-js lt-ie9 lt-ie8 ie7" lang="en"> | |
<![endif]--> | |
<!--[if IE 8]> | |
<div id="body" class="no-js lt-ie9 ie8" lang="en"> | |
<![endif]--> | |
<!--[if gt IE 8]><!--> | |
<div id="body" class="no-js no-ie" lang="en"> | |
<!--<![endif]--> | |
<button class="btn"> | |
Buy | |
<span class="top" /> | |
<span class="bottom" /> | |
</button> | |
</div> |
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":"separate","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