diff options
author | Jinwei Zhao <[email protected]> | 2016-04-04 14:00:39 +0800 |
---|---|---|
committer | Jinwei Zhao <[email protected]> | 2017-01-13 15:07:45 +0800 |
commit | e002d09d2b6b2317fec6caa8836b20e6709c5da3 (patch) | |
tree | 1e1623524986fc63abcab7b10912dffe55dc1da9 /deprecated/ZJW/stylesheets/normalize.css | |
parent | dbcebe1def5c355120c61b575390d1d9ac355f67 (diff) | |
download | jinwei.me-e002d09d2b6b2317fec6caa8836b20e6709c5da3.tar.gz |
jinwei.me
Diffstat (limited to 'deprecated/ZJW/stylesheets/normalize.css')
-rw-r--r-- | deprecated/ZJW/stylesheets/normalize.css | 340 |
1 files changed, 340 insertions, 0 deletions
diff --git a/deprecated/ZJW/stylesheets/normalize.css b/deprecated/ZJW/stylesheets/normalize.css new file mode 100644 index 0000000..a4aad65 --- /dev/null +++ b/deprecated/ZJW/stylesheets/normalize.css | |||
@@ -0,0 +1,340 @@ | |||
1 | /*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | ||
2 | /* ========================================================================== | ||
3 | HTML5 display definitions | ||
4 | ========================================================================== */ | ||
5 | /** | ||
6 | * Correct `block` display not defined in IE 8/9. | ||
7 | */ | ||
8 | article, | ||
9 | aside, | ||
10 | details, | ||
11 | figcaption, | ||
12 | figure, | ||
13 | footer, | ||
14 | header, | ||
15 | hgroup, | ||
16 | main, | ||
17 | nav, | ||
18 | section, | ||
19 | summary { | ||
20 | display: block; | ||
21 | } | ||
22 | /** | ||
23 | * Correct `inline-block` display not defined in IE 8/9. | ||
24 | */ | ||
25 | audio, | ||
26 | canvas, | ||
27 | video { | ||
28 | display: inline-block; | ||
29 | } | ||
30 | /** | ||
31 | * Prevent modern browsers from displaying `audio` without controls. | ||
32 | * Remove excess height in iOS 5 devices. | ||
33 | */ | ||
34 | audio:not([controls]) { | ||
35 | display: none; | ||
36 | height: 0; | ||
37 | } | ||
38 | /** | ||
39 | * Address `[hidden]` styling not present in IE 8/9. | ||
40 | * Hide the `template` element in IE, Safari, and Firefox < 22. | ||
41 | */ | ||
42 | [hidden], | ||
43 | template { | ||
44 | display: none; | ||
45 | } | ||
46 | /* ========================================================================== | ||
47 | Base | ||
48 | ========================================================================== */ | ||
49 | /** | ||
50 | * 1. Set default font family to sans-serif. | ||
51 | * 2. Prevent iOS text size adjust after orientation change, without disabling | ||
52 | * user zoom. | ||
53 | */ | ||
54 | html { | ||
55 | font-family: sans-serif; | ||
56 | /* 1 */ | ||
57 | -ms-text-size-adjust: 100%; | ||
58 | /* 2 */ | ||
59 | -webkit-text-size-adjust: 100%; | ||
60 | /* 2 */ | ||
61 | } | ||
62 | /** | ||
63 | * Remove default margin. | ||
64 | */ | ||
65 | body { | ||
66 | margin: 0; | ||
67 | } | ||
68 | /* ========================================================================== | ||
69 | Links | ||
70 | ========================================================================== */ | ||
71 | /** | ||
72 | * Remove the gray background color from active links in IE 10. | ||
73 | */ | ||
74 | a { | ||
75 | background: transparent; | ||
76 | } | ||
77 | /** | ||
78 | * Address `outline` inconsistency between Chrome and other browsers. | ||
79 | */ | ||
80 | a:focus { | ||
81 | outline: thin dotted; | ||
82 | } | ||
83 | /** | ||
84 | * Improve readability when focused and also mouse hovered in all browsers. | ||
85 | */ | ||
86 | a:active, | ||
87 | a:hover { | ||
88 | outline: 0; | ||
89 | } | ||
90 | /* ========================================================================== | ||
91 | Typography | ||
92 | ========================================================================== */ | ||
93 | /** | ||
94 | * Address variable `h1` font-size and margin within `section` and `article` | ||
95 | * contexts in Firefox 4+, Safari 5, and Chrome. | ||
96 | */ | ||
97 | h1 { | ||
98 | font-size: 2em; | ||
99 | margin: 0.67em 0; | ||
100 | } | ||
101 | /** | ||
102 | * Address styling not present in IE 8/9, Safari 5, and Chrome. | ||
103 | */ | ||
104 | abbr[title] { | ||
105 | border-bottom: 1px dotted; | ||
106 | } | ||
107 | /** | ||
108 | * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. | ||
109 | */ | ||
110 | b, | ||
111 | strong { | ||
112 | font-weight: bold; | ||
113 | } | ||
114 | /** | ||
115 | * Address styling not present in Safari 5 and Chrome. | ||
116 | */ | ||
117 | dfn { | ||
118 | font-style: italic; | ||
119 | } | ||
120 | /** | ||
121 | * Address differences between Firefox and other browsers. | ||
122 | */ | ||
123 | hr { | ||
124 | -moz-box-sizing: content-box; | ||
125 | box-sizing: content-box; | ||
126 | height: 0; | ||
127 | } | ||
128 | /** | ||
129 | * Address styling not present in IE 8/9. | ||
130 | */ | ||
131 | mark { | ||
132 | background: #ff0; | ||
133 | color: #000; | ||
134 | } | ||
135 | /** | ||
136 | * Correct font family set oddly in Safari 5 and Chrome. | ||
137 | */ | ||
138 | code, | ||
139 | kbd, | ||
140 | pre, | ||
141 | samp { | ||
142 | font-family: monospace, serif; | ||
143 | font-size: 1em; | ||
144 | } | ||
145 | /** | ||
146 | * Improve readability of pre-formatted text in all browsers. | ||
147 | */ | ||
148 | pre { | ||
149 | white-space: pre-wrap; | ||
150 | } | ||
151 | /** | ||
152 | * Set consistent quote types. | ||
153 | */ | ||
154 | q { | ||
155 | quotes: "\201C" "\201D" "\2018" "\2019"; | ||
156 | } | ||
157 | /** | ||
158 | * Address inconsistent and variable font size in all browsers. | ||
159 | */ | ||
160 | small { | ||
161 | font-size: 80%; | ||
162 | } | ||
163 | /** | ||
164 | * Prevent `sub` and `sup` affecting `line-height` in all browsers. | ||
165 | */ | ||
166 | sub, | ||
167 | sup { | ||
168 | font-size: 75%; | ||
169 | line-height: 0; | ||
170 | position: relative; | ||
171 | vertical-align: baseline; | ||
172 | } | ||
173 | sup { | ||
174 | top: -0.5em; | ||
175 | } | ||
176 | sub { | ||
177 | bottom: -0.25em; | ||
178 | } | ||
179 | /* ========================================================================== | ||
180 | Embedded content | ||
181 | ========================================================================== */ | ||
182 | /** | ||
183 | * Remove border when inside `a` element in IE 8/9. | ||
184 | */ | ||
185 | img { | ||
186 | border: 0; | ||
187 | } | ||
188 | /** | ||
189 | * Correct overflow displayed oddly in IE 9. | ||
190 | */ | ||
191 | svg:not(:root) { | ||
192 | overflow: hidden; | ||
193 | } | ||
194 | /* ========================================================================== | ||
195 | Figures | ||
196 | ========================================================================== */ | ||
197 | /** | ||
198 | * Address margin not present in IE 8/9 and Safari 5. | ||
199 | */ | ||
200 | figure { | ||
201 | margin: 0; | ||
202 | } | ||
203 | /* ========================================================================== | ||
204 | Forms | ||
205 | ========================================================================== */ | ||
206 | /** | ||
207 | * Define consistent border, margin, and padding. | ||
208 | */ | ||
209 | fieldset { | ||
210 | border: 1px solid #c0c0c0; | ||
211 | margin: 0 2px; | ||
212 | padding: 0.35em 0.625em 0.75em; | ||
213 | } | ||
214 | /** | ||
215 | * 1. Correct `color` not being inherited in IE 8/9. | ||
216 | * 2. Remove padding so people aren't caught out if they zero out fieldsets. | ||
217 | */ | ||
218 | legend { | ||
219 | border: 0; | ||
220 | /* 1 */ | ||
221 | padding: 0; | ||
222 | /* 2 */ | ||
223 | } | ||
224 | /** | ||
225 | * 1. Correct font family not being inherited in all browsers. | ||
226 | * 2. Correct font size not being inherited in all browsers. | ||
227 | * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome. | ||
228 | */ | ||
229 | button, | ||
230 | input, | ||
231 | select, | ||
232 | textarea { | ||
233 | font-family: inherit; | ||
234 | /* 1 */ | ||
235 | font-size: 100%; | ||
236 | /* 2 */ | ||
237 | margin: 0; | ||
238 | /* 3 */ | ||
239 | } | ||
240 | /** | ||
241 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in | ||
242 | * the UA stylesheet. | ||
243 | */ | ||
244 | button, | ||
245 | input { | ||
246 | line-height: normal; | ||
247 | } | ||
248 | /** | ||
249 | * Address inconsistent `text-transform` inheritance for `button` and `select`. | ||
250 | * All other form control elements do not inherit `text-transform` values. | ||
251 | * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+. | ||
252 | * Correct `select` style inheritance in Firefox 4+ and Opera. | ||
253 | */ | ||
254 | button, | ||
255 | select { | ||
256 | text-transform: none; | ||
257 | } | ||
258 | /** | ||
259 | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` | ||
260 | * and `video` controls. | ||
261 | * 2. Correct inability to style clickable `input` types in iOS. | ||
262 | * 3. Improve usability and consistency of cursor style between image-type | ||
263 | * `input` and others. | ||
264 | */ | ||
265 | button, | ||
266 | html input[type="button"], | ||
267 | input[type="reset"], | ||
268 | input[type="submit"] { | ||
269 | -webkit-appearance: button; | ||
270 | /* 2 */ | ||
271 | cursor: pointer; | ||
272 | /* 3 */ | ||
273 | } | ||
274 | /** | ||
275 | * Re-set default cursor for disabled elements. | ||
276 | */ | ||
277 | button[disabled], | ||
278 | html input[disabled] { | ||
279 | cursor: default; | ||
280 | } | ||
281 | /** | ||
282 | * 1. Address box sizing set to `content-box` in IE 8/9/10. | ||
283 | * 2. Remove excess padding in IE 8/9/10. | ||
284 | */ | ||
285 | input[type="checkbox"], | ||
286 | input[type="radio"] { | ||
287 | box-sizing: border-box; | ||
288 | /* 1 */ | ||
289 | padding: 0; | ||
290 | /* 2 */ | ||
291 | } | ||
292 | /** | ||
293 | * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. | ||
294 | * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome | ||
295 | * (include `-moz` to future-proof). | ||
296 | */ | ||
297 | input[type="search"] { | ||
298 | -webkit-appearance: textfield; | ||
299 | /* 1 */ | ||
300 | -moz-box-sizing: content-box; | ||
301 | -webkit-box-sizing: content-box; | ||
302 | /* 2 */ | ||
303 | box-sizing: content-box; | ||
304 | } | ||
305 | /** | ||
306 | * Remove inner padding and search cancel button in Safari 5 and Chrome | ||
307 | * on OS X. | ||
308 | */ | ||
309 | input[type="search"]::-webkit-search-cancel-button, | ||
310 | input[type="search"]::-webkit-search-decoration { | ||
311 | -webkit-appearance: none; | ||
312 | } | ||
313 | /** | ||
314 | * Remove inner padding and border in Firefox 4+. | ||
315 | */ | ||
316 | button::-moz-focus-inner, | ||
317 | input::-moz-focus-inner { | ||
318 | border: 0; | ||
319 | padding: 0; | ||
320 | } | ||
321 | /** | ||
322 | * 1. Remove default vertical scrollbar in IE 8/9. | ||
323 | * 2. Improve readability and alignment in all browsers. | ||
324 | */ | ||
325 | textarea { | ||
326 | overflow: auto; | ||
327 | /* 1 */ | ||
328 | vertical-align: top; | ||
329 | /* 2 */ | ||
330 | } | ||
331 | /* ========================================================================== | ||
332 | Tables | ||
333 | ========================================================================== */ | ||
334 | /** | ||
335 | * Remove most spacing between table cells. | ||
336 | */ | ||
337 | table { | ||
338 | border-collapse: collapse; | ||
339 | border-spacing: 0; | ||
340 | } | ||