OLD | NEW |
1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 /* Don't use the main frame div when the error is in a subframe. */ | 5 /* Don't use the main frame div when the error is in a subframe. */ |
6 html[subframe] #main-frame-error { | 6 html[subframe] #main-frame-error { |
7 display: none; | 7 display: none; |
8 } | 8 } |
9 | 9 |
10 /* Don't use the subframe error div when the error is in a main frame. */ | 10 /* Don't use the subframe error div when the error is in a main frame. */ |
(...skipping 19 matching lines...) Expand all Loading... |
30 margin: 10px 0; | 30 margin: 10px 0; |
31 } | 31 } |
32 | 32 |
33 a { | 33 a { |
34 color: rgb(17, 85, 204); | 34 color: rgb(17, 85, 204); |
35 text-decoration: none; | 35 text-decoration: none; |
36 } | 36 } |
37 | 37 |
38 .icon { | 38 .icon { |
39 -webkit-user-select: none; | 39 -webkit-user-select: none; |
| 40 content: ''; |
40 } | 41 } |
41 | 42 |
42 .icon-generic { | 43 .icon-generic { |
43 /** | 44 /** |
44 * Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted | 45 * Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted |
45 * renderer process, so embed the resource manually. | 46 * renderer process, so embed the resource manually. |
46 */ | 47 */ |
47 content: -webkit-image-set( | 48 content: -webkit-image-set( |
48 url(default_100_percent/common/error_network_generic.png) 1x, | 49 url(default_100_percent/common/error_network_generic.png) 1x, |
49 url(default_200_percent/common/error_network_generic.png) 2x); | 50 url(default_200_percent/common/error_network_generic.png) 2x); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 font-weight: bold; | 147 font-weight: bold; |
147 margin-bottom: 4px; | 148 margin-bottom: 4px; |
148 } | 149 } |
149 | 150 |
150 .suggestion-body { | 151 .suggestion-body { |
151 color: #777; | 152 color: #777; |
152 } | 153 } |
153 | 154 |
154 .error-code { | 155 .error-code { |
155 color: #A0A0A0; | 156 color: #A0A0A0; |
| 157 font-size: .825em; |
156 margin-top: 15px; | 158 margin-top: 15px; |
157 } | 159 } |
158 | 160 |
159 /* Increase line height at higher resolutions. */ | 161 /* Increase line height at higher resolutions. */ |
160 @media (min-width: 641px) and (min-height: 641px) { | 162 @media (min-width: 641px) and (min-height: 641px) { |
161 #help-box-inner { | 163 #help-box-inner { |
162 line-height: 18px; | 164 line-height: 18px; |
163 } | 165 } |
164 } | 166 } |
165 | 167 |
166 /* Decrease padding at low sizes. */ | 168 /* Decrease padding at low sizes. */ |
167 @media (max-width: 640px), (max-height: 640px) { | 169 @media (max-width: 640px), (max-height: 640px) { |
168 body { | |
169 margin: 15px; | |
170 } | |
171 h1 { | 170 h1 { |
172 margin: 10px 0 15px; | 171 margin: 0 0 15px; |
173 } | 172 } |
174 #content-top { | 173 #content-top { |
175 margin: 15px; | 174 margin: 15px; |
176 } | 175 } |
177 #help-box-inner { | 176 #help-box-inner { |
178 padding: 20px; | 177 padding: 20px; |
179 } | 178 } |
180 .suggestions { | 179 .suggestions { |
181 margin-top: 10px; | 180 margin-top: 10px; |
182 } | 181 } |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 content: ''; | 274 content: ''; |
276 display: block; | 275 display: block; |
277 width: 100%; | 276 width: 100%; |
278 } | 277 } |
279 | 278 |
280 /* Offline page */ | 279 /* Offline page */ |
281 .offline .interstitial-wrapper { | 280 .offline .interstitial-wrapper { |
282 color: #2b2b2b; | 281 color: #2b2b2b; |
283 font-size: 1em; | 282 font-size: 1em; |
284 line-height: 1.55; | 283 line-height: 1.55; |
285 margin: 100px auto 0; | 284 margin: 0 auto; |
286 max-width: 600px; | 285 max-width: 600px; |
| 286 padding-top: 100px; |
287 width: 100%; | 287 width: 100%; |
288 } | 288 } |
289 | 289 |
290 .offline .runner-container { | 290 .offline .runner-container { |
291 height: 150px; | 291 height: 150px; |
292 max-width: 600px; | 292 max-width: 600px; |
293 overflow: hidden; | 293 overflow: hidden; |
294 position: absolute; | 294 position: absolute; |
295 top: 10px; | 295 top: 10px; |
296 width: 44px; | 296 width: 44px; |
(...skipping 16 matching lines...) Expand all Loading... |
313 position: absolute; | 313 position: absolute; |
314 top: 0; | 314 top: 0; |
315 width: 100vw; | 315 width: 100vw; |
316 z-index: 1; | 316 z-index: 1; |
317 } | 317 } |
318 | 318 |
319 #offline-resources { | 319 #offline-resources { |
320 display: none; | 320 display: none; |
321 } | 321 } |
322 | 322 |
323 @media (max-width: 400px) { | 323 @media (max-width: 420px) { |
324 .suggested-left > #control-buttons, | 324 .suggested-left > #control-buttons, |
325 .suggested-right > #control-buttons { | 325 .suggested-right > #control-buttons { |
326 float: none; | 326 float: none; |
327 margin: 50px 0 20px; | |
328 } | 327 } |
329 } | 328 } |
330 | 329 |
331 @media (max-height: 350px) { | 330 @media (max-height: 350px) { |
332 h1 { | 331 h1 { |
333 margin: 0 0 15px; | 332 margin: 0 0 15px; |
334 } | 333 } |
335 | 334 |
336 .icon-offline { | 335 .icon-offline { |
337 margin: 0 0 10px; | 336 margin: 0 0 10px; |
338 } | 337 } |
339 | 338 |
340 .interstitial-wrapper { | 339 .interstitial-wrapper { |
341 margin-top: 5%; | 340 margin-top: 5%; |
342 } | 341 } |
343 | 342 |
344 .nav-wrapper { | 343 .nav-wrapper { |
345 margin-top: 30px; | 344 margin-top: 30px; |
346 } | 345 } |
347 } | 346 } |
| 347 |
| 348 @media (min-height: 240px) and (orientation: landscape) { |
| 349 .offline .interstitial-wrapper { |
| 350 margin-bottom: 20px; |
| 351 } |
| 352 } |
OLD | NEW |