Skip to content

Instantly share code, notes, and snippets.

@const-g
Last active December 20, 2015 15:38
Show Gist options
  • Save const-g/6155481 to your computer and use it in GitHub Desktop.
Save const-g/6155481 to your computer and use it in GitHub Desktop.
This is my reset file, from http://const.fr/my-reset-css/
/**
* RESET CSS
* from http://const.fr/tools/reset
* @version: 3.1
* @date: 2013-11-20
**/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
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, section, menu, summary,
time, mark, audio, video {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
font: inherit;
vertical-align:baseline;
background:transparent;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body { line-height: 1; }
nav ul { list-style: none; }
/* Videos */
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
/* headers */
/* maj: removed margin-top, to try to keep a bottom-right-only margin rule. */
h1 { font-size: 2em; margin: 0 0 0.67em 0; }
h2 { font-size: 1.5em; margin: 0 0 0.83em 0; }
h3 { font-size: 1.17em; margin: 0 0 1em 0; }
h4 { font-size: 1em; margin: 0 0 1.33em 0; }
h5 { font-size: 0.83em; margin: 0 0 1.67em 0; }
h6 { font-size: 0.75em; margin: 0 0 2.33em 0; }
/* blockquote */
blockquote, q { quotes:none; }
blockquote:before, blockquote:after,
q:before, q:after { content:''; content:none; }
a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }
a:focus { outline: thin dotted; }
img { -ms-interpolation-mode: bicubic; vertical-align: middle; }
ins { background-color:#ff9; color:#000; text-decoration:none; }
mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }
del { text-decoration: line-through; }
abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; font-style:inherit; }
hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }
/*because legend doesn't inherit in IE */
legend { color:#000; }
/* tables still need cellspacing="0" in the markup */
table { border-collapse:collapse; border-spacing:0; }
/* Forms elements */
input, select { vertical-align:middle; }
textarea {
resize:none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* Prevents iOS text size adjust after orientation change */
html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
[hidden] { display: none; }
/* END RESET CSS */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment