Created
November 12, 2011 10:56
-
-
Save terkel/1360380 to your computer and use it in GitHub Desktop.
CSS Reset
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
/*! | |
* CSS Reset 2011-12-25 | |
* https://gist.github.com/gists/1360380 | |
* | |
* Author: Takeru Suzuki, http://terkel.jp/ | |
* License: Public domain | |
* | |
* Inspired by Normalize.css: http://necolas.github.com/normalize.css/ | |
*/ | |
/* HTML5 display definitions */ | |
section, nav, article, aside, hgroup, | |
header, footer, figure, figcaption, details { | |
display: block; | |
} | |
video, audio, canvas { | |
display: inline-block; | |
*display: inline; | |
*zoom: 1; | |
} | |
audio:not([controls]) { | |
display: none; | |
} | |
[hidden] { | |
display: none; | |
} | |
/* The root element */ | |
html { | |
font-size: 100%; | |
overflow-y: scroll; | |
-webkit-text-size-adjust: 100%; | |
-ms-text-size-adjust: 100%; | |
} | |
/* Sections */ | |
body { | |
font-family: sans-serif; | |
margin: 0; | |
} | |
h1, h2, h3, h4, h5, h6 { | |
font-size: 1em; | |
margin: 0; | |
} | |
/* Grouping content */ | |
p, blockquote, dl, dd, figure { | |
margin: 0; | |
} | |
hr { | |
color: inherit; | |
height: auto; | |
-moz-box-sizing: content-box; | |
box-sizing: content-box; | |
} | |
pre { | |
font-family: monospace, sans-serif; | |
white-space: pre-wrap; | |
word-wrap: break-word; | |
margin: 0; | |
} | |
ol, ul { | |
padding: 0; | |
margin: 0; | |
} | |
li { | |
list-style: none; | |
} | |
/* Text-level semantics */ | |
a:focus { | |
outline: thin dotted; | |
} | |
a:hover, a:active { | |
outline: 0; | |
} | |
strong, b { | |
font-weight: bold; | |
} | |
small { | |
font-size: 0.83em; | |
} | |
q { | |
quotes: none; | |
} | |
abbr[title] { | |
border-bottom: 1px dotted; | |
} | |
code, samp, kbd { | |
font-family: monospace, sans-serif; | |
} | |
mark { | |
color: black; | |
background-color: yellow; | |
} | |
sub, sup { | |
font-size: 0.83em; | |
line-height: 0; | |
vertical-align: baseline; | |
position: relative; | |
} | |
sub { | |
bottom: -0.25em; | |
} | |
sup { | |
top: -0.5em; | |
} | |
br { | |
*letter-spacing: 0; | |
} | |
/* Embedded content */ | |
img { | |
border: 0; | |
-ms-interpolation-mode: bicubic; | |
} | |
svg:not(:root) { | |
overflow: hidden; | |
} | |
/* Tabular data */ | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} | |
caption { | |
padding: 0; | |
text-align: left; | |
} | |
th, td { | |
text-align: left; | |
vertical-align: baseline; | |
padding: 0; | |
} | |
/* Forms */ | |
form { | |
margin: 0; | |
} | |
fieldset { | |
border: 0; | |
padding: 0; | |
margin: 0; | |
} | |
legend { | |
border: 0; | |
*margin-left: -7px; | |
} | |
input, button, select, textarea { | |
font-family: inherit; | |
font-size: 1em; | |
color: inherit; | |
margin: 0; | |
} | |
input, button { | |
line-height: normal; | |
vertical-align: inherit; | |
*vertical-align: middle; | |
} | |
input::-moz-focus-inner, | |
button::-moz-focus-inner { | |
border: 0; | |
padding: 0; | |
} | |
input[type="search"] { | |
-webkit-appearance: textfield; | |
-webkit-box-sizing: content-box; | |
-moz-box-sizing: content-box; | |
box-sizing: content-box; | |
} | |
input[type="search"]:focus { | |
outline-offset: -2px; | |
} | |
input[type="search"]::-webkit-search-decoration { | |
-webkit-appearance: none; | |
} | |
input[type="checkbox"], | |
input[type="radio"] { | |
box-sizing: border-box; | |
padding: 0; | |
} | |
input[type="submit"], | |
input[type="reset"], | |
input[type="button"], | |
button { | |
cursor: pointer; | |
-webkit-appearance: button; | |
*overflow: visible; | |
} | |
select { | |
background-color: inherit; | |
line-height: normal; | |
} | |
textarea { | |
vertical-align: top; | |
overflow: auto; | |
*font-family: sans-serif; | |
} |
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
/*! | |
* CSS Reset 2011-12-25 | |
* https://gist.github.com/gists/1360380 | |
* | |
* Author: Takeru Suzuki, http://terkel.jp/ | |
* License: Public domain | |
* | |
* Inspired by Normalize.css http://necolas.github.com/normalize.css/ | |
*/ | |
section,nav,article,aside,hgroup,header,footer,figure,figcaption,details{display:block}video,audio,canvas{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}[hidden]{display:none}html{font-size:100%;overflow-y:scroll;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%}body{font-family:sans-serif;margin:0}h1,h2,h3,h4,h5,h6{font-size:1em;margin:0}p,blockquote,dl,dd,figure{margin:0}hr{color:inherit;height:auto;-moz-box-sizing:content-box;box-sizing:content-box}pre{font-family:monospace,sans-serif;white-space:pre-wrap;word-wrap:break-word;margin:0}ol,ul{margin:0;padding:0}li{list-style:none}a:focus{outline:thin dotted}a:hover,a:active{outline:0}strong,b{font-weight:bold}small{font-size:0.83em}q{quotes:none}dfn{font-style:italic}abbr[title]{border-bottom:1px dotted}code,samp,kbd{font-family:monospace,sans-serif}mark{color:black;background-color:yellow}sub,sup{font-size:0.83em;line-height:0;vertical-align:baseline;position:relative}sub{bottom:-0.25em}sup{top:-0.5em}br{*letter-spacing:0}img{border:0;-ms-interpolation-mode:bicubic}svg:not(:root){overflow:hidden}table{border-collapse:collapse;border-spacing:0}caption{text-align:left;padding:0}th,td{text-align:left;vertical-align:baseline;padding:0}form{margin:0}fieldset{border:0;margin:0;padding:0}legend{border:0;*margin-left:-7px}input,button,select,textarea{font-family:inherit;font-size:1em;color:inherit;margin:0}input,button{line-height:normal;vertical-align:inherit;*vertical-align:middle}input::-moz-focus-inner,button::-moz-focus-inner{border:0;padding:0}input[type="search"]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}input[type="search"]:focus{outline-offset:-2px}input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="submit"],input[type="reset"],input[type="button"],button{cursor:pointer;-webkit-appearance:button;*overflow:visible}select{line-height:normal;background-color:inherit}textarea{vertical-align:top;overflow:auto;*font-family:sans-serif} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment