Created
May 7, 2013 04:58
-
-
Save tyrotinal/5530339 to your computer and use it in GitHub Desktop.
css: Eric reset
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
/** | |
* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/) | |
* http://cssreset.com | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, embed, | |
figure, figcaption, footer, header, hgroup, | |
menu, nav, output, ruby, section, summary, | |
time, mark, audio, video { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
font-size: 100%; | |
font: inherit; | |
vertical-align: baseline; | |
} | |
/* HTML5 display-role reset for older browsers */ | |
article, aside, details, figcaption, figure, | |
footer, header, hgroup, menu, nav, section { | |
display: block; | |
} | |
body { | |
line-height: 1; | |
} | |
ol, ul { | |
list-style: none; | |
} | |
blockquote, q { | |
quotes: none; | |
} | |
blockquote:before, blockquote:after, | |
q:before, q:after { | |
content: ''; | |
content: none; | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} | |
##CSS buttons | |
#button{ | |
padding:10px 60px; | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
border-radius: 5px; | |
background: -moz-linear-gradient(top, #f6e6b4 0%, #ed9017 100%); /* firefox */ | |
border: solid #ccc 3px; | |
box-shadow: 0 1px 2px #fff, 0 -1px 1px #666, inset 0 -1px 1px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.8); | |
-moz-box-shadow: 0 1px 2px #fff, 0 -1px 1px #666, inset 0 -1px 1px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.8); | |
-webkit-box-shadow: 0 1px 2px #fff, 0 -1px 1px #666, inset 0 -1px 1px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.8); | |
text-shadow: 0 1px 2px #fff; | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f6e6b4), color-stop(100%,#ed9017)); /* webkit */font-size:20px | |
} | |
##CSS Emboss | |
#box{ | |
height:40px; | |
/* Background */ | |
box-shadow: | |
0 1px 2px #fff, /*bottom external highlight*/ | |
0 -1px 1px #666, /*top external shadow*/ | |
inset 0 -1px 1px rgba(0,0,0,0.5), /*bottom internal shadow*/ | |
inset 0 1px 1px rgba(255,255,255,0.8); /*top internal highlight*/ | |
background-color: #349ae3; | |
} | |
##Inner Shadow | |
box-shadow: inset 0 0 10px #000000; | |
##Css rails form helper styler | |
html fieldset { | |
position: relative; | |
} | |
html legend { | |
position:absolute; | |
top: -1em; | |
left: .5em; | |
} | |
html fieldset { | |
position: relative; | |
margin-top:1em; | |
padding-top:2em; | |
padding-bottom: 2em; | |
} | |
/* Form Styles */ | |
fieldset { | |
background: #ddd; | |
} | |
legend { | |
color: white; | |
background: maroon; | |
padding: .4em 1em; | |
} | |
label { | |
width: 10em; | |
float: left; | |
text-align: right; | |
margin-right: 0.2em; | |
display: block; | |
} | |
.form_row { | |
white-space: nowrap; | |
padding-bottom: .5em; | |
} | |
.submit { | |
margin-left: 15em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment