Skip to content

Instantly share code, notes, and snippets.

@iamstarkov
Created April 26, 2012 16:58
Show Gist options
  • Save iamstarkov/2500961 to your computer and use it in GitHub Desktop.
Save iamstarkov/2500961 to your computer and use it in GitHub Desktop.
Button w/o images
/**
* 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
}
<!--
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>
{"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