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
3 * found in the LICENSE file. */
5 /* Don't use the main frame div when the error is in a subframe. */
6 html
[subframe
] #main-frame-error
{
10 /* Don't use the subframe error div when the error is in a main frame. */
11 html:not
([subframe
]) #sub-frame-error
{
16 -webkit-margin-start: 0;
25 margin: 10px 0 25px 0;
29 color: rgb
(17, 85, 204);
30 text-decoration: none
;
34 -webkit-user-select: none
;
39 * Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted
40 * renderer process, so embed the resource manually.
42 content: -webkit-image-set
(
43 url
(../../../renderer/resources/default_100_percent/common/error_network_generic.png) 1x,
44 url
(../../../renderer/resources/default_200_percent/common/error_network_generic.png) 2x);
48 content: -webkit-image-set
(
49 url
(../../../renderer
/resources
/default_100_percent
/offline
/100-error-offline
.png
) 1x,
50 url
(../../../renderer
/resources
/default_200_percent
/offline
/200-error-offline
.png
) 2x);
54 -webkit-transition: height ease-in
218ms;
59 background-color: #f9f9f9;
60 border-top: 1px solid
#EEE;
70 #sub-frame-error-details {
72 text-shadow: 0 1px 0 rgba
(255,255,255,0.3);
75 [jscontent
=failedUrl
] {
76 overflow-wrap: break-word
;
101 /* Increase line height at higher resolutions. */
102 @media (min-width: 641px) and
(min-height: 641px) {
108 /* Decrease padding at low sizes. */
109 @media (max-width: 640px),
110 (max-height: 640px) {
115 margin: 10px 0 15px 0;
131 /* Don't allow overflow when in a subframe. */
132 html
[subframe
] body
{
137 -webkit-align-items: center
;
138 -webkit-flex-flow: column
;
139 -webkit-justify-content: center
;
140 background-color: #DDD;
141 display: -webkit-flex
;
149 #sub-frame-error:hover
{
150 background-color: #EEE;
153 #sub-frame-error-details {
158 /* Show details only when hovering. */
159 #sub-frame-error:hover #sub-frame-error-details
{
163 /* If the iframe is too small, always hide the error code. */
164 /* TODO(mmenke): See if overflow: no-display works better, once supported. */
165 @media (max-width: 200px),
167 #sub-frame-error-details {
173 .offline .interstitial-wrapper {
177 margin: 100px auto
0;
182 .offline .runner-container {
192 .offline .runner-canvas {
201 .offline .controller {
202 background: rgba
(247,247,247, .1);