|
1 |
| -/* |
2 |
| - * HTML5 Boilerplate |
3 |
| - * |
4 |
| - * What follows is the result of much research on cross-browser styling. |
5 |
| - * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal, |
6 |
| - * Kroc Camen, and the H5BP dev community and team. |
7 |
| - * |
8 |
| - * Detailed information about this CSS: h5bp.com/css |
9 |
| - * |
10 |
| - * ==|== normalize ========================================================== |
11 |
| - */ |
12 |
| - |
13 |
| - |
14 |
| -/* ============================================================================= |
15 |
| - HTML5 display definitions |
16 |
| - ========================================================================== */ |
| 1 | +/* HTML5 Boilerplate */ |
17 | 2 |
|
18 | 3 | article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
|
19 | 4 | audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
|
20 | 5 | audio:not([controls]) { display: none; }
|
21 | 6 | [hidden] { display: none; }
|
22 | 7 |
|
23 |
| - |
24 |
| -/* ============================================================================= |
25 |
| - Base |
26 |
| - ========================================================================== */ |
27 |
| - |
28 |
| -/* |
29 |
| - * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units |
30 |
| - * 2. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g |
31 |
| - */ |
32 |
| - |
33 | 8 | html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
|
34 |
| - |
35 | 9 | html, button, input, select, textarea { font-family: sans-serif; color: #222; }
|
36 |
| - |
37 | 10 | body { margin: 0; font-size: 1em; line-height: 1.4; }
|
38 | 11 |
|
39 |
| -/* |
40 |
| - * Remove text-shadow in selection highlight: h5bp.com/i |
41 |
| - * These selection declarations have to be separate |
42 |
| - * Also: hot pink! (or customize the background color to match your design) |
43 |
| - */ |
44 |
| - |
45 | 12 | ::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
|
46 | 13 | ::selection { background: #fe57a1; color: #fff; text-shadow: none; }
|
47 | 14 |
|
48 |
| - |
49 |
| -/* ============================================================================= |
50 |
| - Links |
51 |
| - ========================================================================== */ |
52 |
| - |
53 | 15 | a { color: #00e; }
|
54 | 16 | a:visited { color: #551a8b; }
|
55 | 17 | a:hover { color: #06e; }
|
56 | 18 | a:focus { outline: thin dotted; }
|
57 |
| - |
58 |
| -/* Improve readability when focused and hovered in all browsers: h5bp.com/h */ |
59 | 19 | a:hover, a:active { outline: 0; }
|
60 |
| - |
61 |
| - |
62 |
| -/* ============================================================================= |
63 |
| - Typography |
64 |
| - ========================================================================== */ |
65 |
| - |
66 | 20 | abbr[title] { border-bottom: 1px dotted; }
|
67 |
| - |
68 | 21 | b, strong { font-weight: bold; }
|
69 |
| - |
70 | 22 | blockquote { margin: 1em 40px; }
|
71 |
| - |
72 | 23 | dfn { font-style: italic; }
|
73 |
| - |
74 | 24 | hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
|
75 |
| - |
76 | 25 | ins { background: #ff9; color: #000; text-decoration: none; }
|
77 |
| - |
78 | 26 | mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
|
79 |
| - |
80 |
| -/* Redeclare monospace font family: h5bp.com/j */ |
81 | 27 | pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
|
82 |
| - |
83 |
| -/* Improve readability of pre-formatted text in all browsers */ |
84 | 28 | pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
|
85 | 29 |
|
86 | 30 | q { quotes: none; }
|
87 | 31 | q:before, q:after { content: ""; content: none; }
|
88 |
| - |
89 | 32 | small { font-size: 85%; }
|
90 |
| - |
91 |
| -/* Position subscript and superscript content without affecting line-height: h5bp.com/k */ |
92 | 33 | sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
|
93 | 34 | sup { top: -0.5em; }
|
94 | 35 | sub { bottom: -0.25em; }
|
95 | 36 |
|
96 |
| - |
97 |
| -/* ============================================================================= |
98 |
| - Lists |
99 |
| - ========================================================================== */ |
100 |
| - |
101 | 37 | ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
|
102 | 38 | dd { margin: 0 0 0 40px; }
|
103 | 39 | nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }
|
104 | 40 |
|
105 |
| - |
106 |
| -/* ============================================================================= |
107 |
| - Embedded content |
108 |
| - ========================================================================== */ |
109 |
| - |
110 |
| -/* |
111 |
| - * 1. Improve image quality when scaled in IE7: h5bp.com/d |
112 |
| - * 2. Remove the gap between images and borders on image containers: h5bp.com/i/440 |
113 |
| - */ |
114 |
| - |
115 | 41 | img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
|
116 |
| - |
117 |
| -/* |
118 |
| - * Correct overflow not hidden in IE9 |
119 |
| - */ |
120 |
| - |
121 | 42 | svg:not(:root) { overflow: hidden; }
|
122 |
| - |
123 |
| - |
124 |
| -/* ============================================================================= |
125 |
| - Figures |
126 |
| - ========================================================================== */ |
127 |
| - |
128 | 43 | figure { margin: 0; }
|
129 | 44 |
|
130 |
| - |
131 |
| -/* ============================================================================= |
132 |
| - Forms |
133 |
| - ========================================================================== */ |
134 |
| - |
135 | 45 | form { margin: 0; }
|
136 | 46 | fieldset { border: 0; margin: 0; padding: 0; }
|
137 | 47 |
|
138 |
| -/* Indicate that 'label' will shift focus to the associated form element */ |
139 | 48 | label { cursor: pointer; }
|
140 |
| - |
141 |
| -/* |
142 |
| - * 1. Correct color not inheriting in IE6/7/8/9 |
143 |
| - * 2. Correct alignment displayed oddly in IE6/7 |
144 |
| - */ |
145 |
| - |
146 | 49 | legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
|
147 |
| - |
148 |
| -/* |
149 |
| - * 1. Correct font-size not inheriting in all browsers |
150 |
| - * 2. Remove margins in FF3/4 S5 Chrome |
151 |
| - * 3. Define consistent vertical alignment display in all browsers |
152 |
| - */ |
153 |
| - |
154 | 50 | button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
|
155 |
| - |
156 |
| -/* |
157 |
| - * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet) |
158 |
| - */ |
159 |
| - |
160 | 51 | button, input { line-height: normal; }
|
161 |
| - |
162 |
| -/* |
163 |
| - * 1. Display hand cursor for clickable form elements |
164 |
| - * 2. Allow styling of clickable form elements in iOS |
165 |
| - * 3. Correct inner spacing displayed oddly in IE7 (doesn't effect IE6) |
166 |
| - */ |
167 |
| - |
168 | 52 | button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
|
169 |
| - |
170 |
| -/* |
171 |
| - * Re-set default cursor for disabled elements |
172 |
| - */ |
173 |
| - |
174 | 53 | button[disabled], input[disabled] { cursor: default; }
|
175 |
| - |
176 |
| -/* |
177 |
| - * Consistent box sizing and appearance |
178 |
| - */ |
179 |
| - |
180 | 54 | input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
|
181 | 55 | input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
|
182 | 56 | input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
|
183 |
| - |
184 |
| -/* |
185 |
| - * Remove inner padding and border in FF3/4: h5bp.com/l |
186 |
| - */ |
187 |
| - |
188 | 57 | button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
|
189 |
| - |
190 |
| -/* |
191 |
| - * 1. Remove default vertical scrollbar in IE6/7/8/9 |
192 |
| - * 2. Allow only vertical resizing |
193 |
| - */ |
194 |
| - |
195 | 58 | textarea { overflow: auto; vertical-align: top; resize: vertical; }
|
196 |
| - |
197 |
| -/* Colors for form validity */ |
198 | 59 | input:valid, textarea:valid { }
|
199 | 60 | input:invalid, textarea:invalid { background-color: #f0dddd; }
|
200 | 61 |
|
201 |
| - |
202 |
| -/* ============================================================================= |
203 |
| - Tables |
204 |
| - ========================================================================== */ |
205 |
| - |
206 | 62 | table { border-collapse: collapse; border-spacing: 0; }
|
207 | 63 | td { vertical-align: top; }
|
208 | 64 |
|
209 |
| - |
210 |
| -/* ============================================================================= |
211 |
| - Chrome Frame Prompt |
212 |
| - ========================================================================== */ |
213 |
| - |
214 | 65 | .chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }
|
215 | 66 |
|
216 | 67 |
|
217 |
| -/* ==|== primary styles ===================================================== |
218 |
| - Author: |
219 |
| - ========================================================================== */ |
220 |
| - |
221 |
| - |
222 |
| - |
223 | 68 |
|
224 | 69 |
|
225 | 70 |
|
226 | 71 |
|
227 | 72 |
|
228 | 73 |
|
229 | 74 |
|
230 |
| - |
231 |
| - |
232 |
| - |
233 |
| - |
234 |
| - |
235 |
| - |
236 |
| -/* ==|== media queries ====================================================== |
237 |
| - EXAMPLE Media Query for Responsive Design. |
238 |
| - This example overrides the primary ('mobile first') styles |
239 |
| - Modify as content requires. |
240 |
| - ========================================================================== */ |
241 |
| - |
242 | 75 | @media only screen and (min-width: 35em) {
|
243 |
| - /* Style adjustments for viewports that meet the condition */ |
244 |
| -} |
245 |
| - |
246 |
| - |
| 76 | + |
247 | 77 |
|
248 |
| -/* ==|== non-semantic helper classes ======================================== |
249 |
| - Please define your styles before this section. |
250 |
| - ========================================================================== */ |
| 78 | +} |
251 | 79 |
|
252 |
| -/* For image replacement */ |
253 | 80 | .ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
|
254 | 81 | .ir br { display: none; }
|
255 |
| - |
256 |
| -/* Hide from both screenreaders and browsers: h5bp.com/u */ |
257 | 82 | .hidden { display: none !important; visibility: hidden; }
|
258 |
| - |
259 |
| -/* Hide only visually, but have it available for screenreaders: h5bp.com/v */ |
260 | 83 | .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
|
261 |
| - |
262 |
| -/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */ |
263 | 84 | .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
|
264 |
| - |
265 |
| -/* Hide visually and from screenreaders, but maintain layout */ |
266 | 85 | .invisible { visibility: hidden; }
|
267 |
| - |
268 |
| -/* Contain floats: h5bp.com/q */ |
269 | 86 | .clearfix:before, .clearfix:after { content: ""; display: table; }
|
270 | 87 | .clearfix:after { clear: both; }
|
271 | 88 | .clearfix { *zoom: 1; }
|
272 | 89 |
|
273 |
| - |
274 |
| - |
275 |
| -/* ==|== print styles ======================================================= |
276 |
| - Print styles. |
277 |
| - Inlined to avoid required HTTP connection: h5bp.com/r |
278 |
| - ========================================================================== */ |
279 |
| - |
280 | 90 | @media print {
|
281 |
| - * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */ |
| 91 | + * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } |
282 | 92 | a, a:visited { text-decoration: underline; }
|
283 | 93 | a[href]:after { content: " (" attr(href) ")"; }
|
284 | 94 | abbr[title]:after { content: " (" attr(title) ")"; }
|
285 |
| - .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */ |
| 95 | + .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } |
286 | 96 | pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
|
287 |
| - thead { display: table-header-group; } /* h5bp.com/t */ |
| 97 | + thead { display: table-header-group; } |
288 | 98 | tr, img { page-break-inside: avoid; }
|
289 | 99 | img { max-width: 100% !important; }
|
290 | 100 | @page { margin: 0.5cm; }
|
|
0 commit comments