5
5
- http://meyerweb.com
6
6
- http://html5doctor.com
7
7
- http://html5boilerplate.com
8
+
9
+ … and then cleaned up a lot.
8
10
*/
9
11
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 {
11
58
margin : 0 ;
12
59
padding : 0 ;
13
60
border : 0 ;
@@ -17,10 +64,19 @@ html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquot
17
64
background : transparent;
18
65
}
19
66
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
+ }
21
76
22
77
html {
23
78
box-sizing : border-box;
79
+ overflow-y : scroll;
24
80
}
25
81
26
82
* ,
@@ -30,78 +86,55 @@ html {
30
86
}
31
87
32
88
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% ;
67
91
}
68
92
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
+ }
73
96
74
- select , input , textarea {font : 99% sans-serif;}
97
+ table {
98
+ border-collapse : collapse;
99
+ border-spacing : 0 ;
100
+ }
75
101
76
- table {font-size : inherit; font : 100% ;}
102
+ th {
103
+ font-weight : bold;
104
+ vertical-align : bottom;
105
+ }
77
106
78
- small {font-size : 85% ;}
107
+ td {
108
+ font-weight : normal;
109
+ vertical-align : top;
110
+ }
79
111
80
- strong {font-weight : bold;}
112
+ input ,
113
+ select {
114
+ vertical-align : middle;
115
+ }
81
116
82
- td , td img {vertical-align : top;}
117
+ input [type = "radio" ] {
118
+ vertical-align : text-bottom;
119
+ }
83
120
84
- sub , sup { font-size : 75 % ; line-height : 0 ; position : relative;}
85
- sup { top : -0.5 em ;}
86
- sub { bottom : -0.25 em ; }
121
+ input [ type = "checkbox" ] {
122
+ vertical-align : bottom;
123
+ }
87
124
88
- pre , code , kbd , samp {font-family : monospace, sans-serif;}
125
+ strong {
126
+ font-weight : bold;
127
+ }
89
128
90
- .clickable ,
91
129
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
+ }
98
134
99
135
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