This repository has been archived by the owner on May 27, 2020. It is now read-only.
/
reset.css
121 lines (94 loc) · 2.56 KB
/
reset.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/*
Reset everything and set up HTML5 elements.
By Christopher Boone: http://hypsometry.com/
The latest version is available at:
http://github.com/cboone/hypsometric-css/blob/master/reset/reset.css
Based on:
Eric Meyer's reset.css (version 1.0 | 20080212): http://meyerweb.com/eric/tools/css/reset
Yahoo's YUI CSS Reset (version 3.0, build 1549): http://developer.yahoo.com/yui/3/cssreset/
The examples in the latest HTML5 spec (November 13 2009): http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#the-css-user-agent-style-sheet-and-presentational-hints
Notes:
Only HTML5 elements are dealt with here. Deprecated elements are not affected.
I've added the details element to the list of those declared to be block level, since I think it must be, per the description.
Probably not all the CSS declared here is actually supported by browsers.
*/
*[hidden], command, datalist, input[type=hidden], menu[type=context], rp, source {
display: none;
}
article, aside, details, figure, footer, header, hgroup, menu, nav, section {
display: block;
}
ruby {
display: ruby;
}
rt {
display: ruby-text;
}
a, abbr, address, article, aside, audio, blockquote, body, canvas, caption, cite, code, command,
datalist, del, details, dfn, div, dl, dt, dd, em, eventsource, fieldset, figure, footer, form,
h1, h2, h3, h4, h5, h6, header, hgroup, html, iframe, img, ins, kbd, keygen, label, legend, li,
mark, menu, meter, nav, ol, output, p, pre, progress, span, object, q, ruby, rp, rt,
samp, small, section, source, strong, sub, sup, table, tbody, tfoot, thead, time, tr, th, td, ul,
var, video {
margin: 0;
padding: 0;
background: transparent;
border: 0;
outline: 0;
font-size: 100%;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-decoration: none;
vertical-align: baseline;
}
a {
color: inherit;
text-decoration: none;
}
address, caption, cite, code, dfn, em, h1, h2, h3, h4, h5, h6, strong, th, var {
font-size: 1em;
font-style: normal;
font-weight: normal;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: "";
content: none;
}
body {
line-height: 1;
}
caption, th {
text-align: left;
}
code, kbd, samp {
font-family: inherit;
}
del {
text-decoration: line-through;
}
input, textarea, select {
font-family: inherit;
font-size: inherit;
font-weight: inherit;
}
ins {
text-decoration: none;
}
menu, ol, ul {
list-style: none;
}
sup {
vertical-align: text-top;
}
sub {
vertical-align: text-bottom;
}
table {
border-collapse: collapse;
border-spacing: 0;
}