Skip to content

Commit 21ef2b4

Browse files
committed
Merge pull request #1 from mirego/feature/cleanup-for-2.0
Cleanup stuff for 2.0 version
2 parents 63b0151 + 559c527 commit 21ef2b4

File tree

1 file changed

+97
-64
lines changed

1 file changed

+97
-64
lines changed

reset.css

+97-64
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,56 @@
55
- http://meyerweb.com
66
- http://html5doctor.com
77
- http://html5boilerplate.com
8+
9+
… and then cleaned up a lot.
810
*/
911

10-
html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, 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, figure, footer, header, menu, nav, section, time, mark, audio, video, details, summary {
12+
html,
13+
body,
14+
div,
15+
span,
16+
object,
17+
iframe,
18+
h1,
19+
h2,
20+
h3,
21+
h4,
22+
h5,
23+
h6,
24+
p,
25+
blockquote,
26+
pre,
27+
abbr,
28+
code,
29+
em,
30+
img,
31+
small,
32+
strong,
33+
sub,
34+
sup,
35+
ol,
36+
ul,
37+
li,
38+
fieldset,
39+
form,
40+
label,
41+
legend,
42+
table,
43+
tbody,
44+
tfoot,
45+
thead,
46+
tr,
47+
th,
48+
td,
49+
article,
50+
aside,
51+
footer,
52+
header,
53+
nav,
54+
section,
55+
time,
56+
audio,
57+
video {
1158
margin: 0;
1259
padding: 0;
1360
border: 0;
@@ -17,10 +64,19 @@ html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquot
1764
background: transparent;
1865
}
1966

20-
article, aside, figure, footer, header, nav, section, details, summary {display: block;}
67+
article,
68+
aside,
69+
figure,
70+
footer,
71+
header,
72+
nav,
73+
section {
74+
display: block;
75+
}
2176

2277
html {
2378
box-sizing: border-box;
79+
overflow-y: scroll;
2480
}
2581

2682
*,
@@ -30,78 +86,55 @@ html {
3086
}
3187

3288
img,
33-
object,
34-
embed {max-width: 100%;}
35-
36-
html {overflow-y: scroll;}
37-
38-
ul {list-style: none;}
39-
40-
blockquote, q {quotes: none;}
41-
42-
blockquote:before,
43-
blockquote:after,
44-
q:before,
45-
q:after {content: ''; content: none;}
46-
47-
a {margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent;}
48-
49-
del {text-decoration: line-through;}
50-
51-
abbr[title], dfn[title] {border-bottom: 1px dotted #000; cursor: help;}
52-
53-
/* tables still need cellspacing="0" in the markup */
54-
table {border-collapse: collapse; border-spacing: 0;}
55-
th {font-weight: bold; vertical-align: bottom;}
56-
td {font-weight: normal; vertical-align: top;}
57-
58-
hr {display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0;}
59-
60-
input, select {vertical-align: middle;}
61-
62-
pre {
63-
white-space: pre; /* CSS2 */
64-
white-space: pre-wrap; /* CSS 2.1 */
65-
white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
66-
word-wrap: break-word; /* IE */
89+
object {
90+
max-width: 100%;
6791
}
6892

69-
input[type="radio"] {vertical-align: text-bottom;}
70-
input[type="checkbox"] {vertical-align: bottom;}
71-
.ie7 input[type="checkbox"] {vertical-align: baseline;}
72-
.ie6 input {vertical-align: text-bottom;}
93+
ul {
94+
list-style: none;
95+
}
7396

74-
select, input, textarea {font: 99% sans-serif;}
97+
table {
98+
border-collapse: collapse;
99+
border-spacing: 0;
100+
}
75101

76-
table {font-size: inherit; font: 100%;}
102+
th {
103+
font-weight: bold;
104+
vertical-align: bottom;
105+
}
77106

78-
small {font-size: 85%;}
107+
td {
108+
font-weight: normal;
109+
vertical-align: top;
110+
}
79111

80-
strong {font-weight: bold;}
112+
input,
113+
select {
114+
vertical-align: middle;
115+
}
81116

82-
td, td img {vertical-align: top;}
117+
input[type="radio"] {
118+
vertical-align: text-bottom;
119+
}
83120

84-
sub, sup {font-size: 75%; line-height: 0; position: relative;}
85-
sup {top: -0.5em;}
86-
sub {bottom: -0.25em;}
121+
input[type="checkbox"] {
122+
vertical-align: bottom;
123+
}
87124

88-
pre, code, kbd, samp {font-family: monospace, sans-serif;}
125+
strong {
126+
font-weight: bold;
127+
}
89128

90-
.clickable,
91129
label,
92-
input[type=button],
93-
input[type=submit],
94-
input[type=file],
95-
button {cursor: pointer;}
96-
97-
button, input, select, textarea {margin: 0;}
130+
input[type="file"],
131+
button {
132+
cursor: pointer;
133+
}
98134

99135
button,
100-
input[type=button] {width: auto; overflow: visible;}
101-
102-
.ie7 img {-ms-interpolation-mode: bicubic;}
103-
104-
/* let's clear some floats */
105-
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
106-
.clearfix:after { clear: both; }
107-
.clearfix { zoom: 1; }
136+
input,
137+
select,
138+
textarea {
139+
margin: 0;
140+
}

0 commit comments

Comments
 (0)