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: ''; | |
edwardjung
2015/01/23 12:19:40
Fixes empty image icon flash bug:
https://code.goo
| |
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
158 | 159 |
159 /* Increase line height at higher resolutions. */ | 160 /* Increase line height at higher resolutions. */ |
160 @media (min-width: 641px) and (min-height: 641px) { | 161 @media (min-width: 641px) and (min-height: 641px) { |
161 #help-box-inner { | 162 #help-box-inner { |
162 line-height: 18px; | 163 line-height: 18px; |
163 } | 164 } |
164 } | 165 } |
165 | 166 |
166 /* Decrease padding at low sizes. */ | 167 /* Decrease padding at low sizes. */ |
167 @media (max-width: 640px), (max-height: 640px) { | 168 @media (max-width: 640px), (max-height: 640px) { |
168 body { | |
169 margin: 15px; | |
170 } | |
171 h1 { | 169 h1 { |
172 margin: 10px 0 15px; | 170 margin: 10px 0 15px; |
173 } | 171 } |
174 #content-top { | 172 #content-top { |
175 margin: 15px; | 173 margin: 15px; |
176 } | 174 } |
177 #help-box-inner { | 175 #help-box-inner { |
178 padding: 20px; | 176 padding: 20px; |
179 } | 177 } |
180 .suggestions { | 178 .suggestions { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
275 content: ''; | 273 content: ''; |
276 display: block; | 274 display: block; |
277 width: 100%; | 275 width: 100%; |
278 } | 276 } |
279 | 277 |
280 /* Offline page */ | 278 /* Offline page */ |
281 .offline .interstitial-wrapper { | 279 .offline .interstitial-wrapper { |
282 color: #2b2b2b; | 280 color: #2b2b2b; |
283 font-size: 1em; | 281 font-size: 1em; |
284 line-height: 1.55; | 282 line-height: 1.55; |
285 margin: 100px auto 0; | 283 margin: 0 auto; |
286 max-width: 600px; | 284 max-width: 600px; |
285 padding-top: 100px; | |
287 width: 100%; | 286 width: 100%; |
288 } | 287 } |
289 | 288 |
290 .offline .runner-container { | 289 .offline .runner-container { |
291 height: 150px; | 290 height: 150px; |
292 max-width: 600px; | 291 max-width: 600px; |
293 overflow: hidden; | 292 overflow: hidden; |
294 position: absolute; | 293 position: absolute; |
295 top: 10px; | 294 top: 10px; |
296 width: 44px; | 295 width: 44px; |
(...skipping 20 matching lines...) Expand all Loading... | |
317 } | 316 } |
318 | 317 |
319 #offline-resources { | 318 #offline-resources { |
320 display: none; | 319 display: none; |
321 } | 320 } |
322 | 321 |
323 @media (max-width: 400px) { | 322 @media (max-width: 400px) { |
324 .suggested-left > #control-buttons, | 323 .suggested-left > #control-buttons, |
325 .suggested-right > #control-buttons { | 324 .suggested-right > #control-buttons { |
326 float: none; | 325 float: none; |
327 margin: 50px 0 20px; | |
328 } | 326 } |
329 } | 327 } |
330 | 328 |
331 @media (max-height: 350px) { | 329 @media (max-height: 350px) { |
332 h1 { | 330 h1 { |
333 margin: 0 0 15px; | 331 margin: 0 0 15px; |
334 } | 332 } |
335 | 333 |
336 .icon-offline { | 334 .icon-offline { |
337 margin: 0 0 10px; | 335 margin: 0 0 10px; |
338 } | 336 } |
339 | 337 |
340 .interstitial-wrapper { | 338 .interstitial-wrapper { |
341 margin-top: 5%; | 339 margin-top: 5%; |
342 } | 340 } |
343 | 341 |
344 .nav-wrapper { | 342 .nav-wrapper { |
345 margin-top: 30px; | 343 margin-top: 30px; |
346 } | 344 } |
347 } | 345 } |
346 | |
347 @media (min-height: 240px) and (orientation: landscape) { | |
348 .offline .interstitial-wrapper { | |
349 margin-bottom: 20px; | |
350 } | |
351 } | |
OLD | NEW |