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. */
6 background-color: #E6E6E6;
7 font-family: Helvetica
, Arial
, sans-serif
;
9 margin: 50px 40px 20px 40px;
19 /* Don't use the main frame div when the error is in a subframe. */
20 html
[subframe
] #main-frame-error
{
24 /* Don't use the subframe error div when the error is in a main frame. */
25 html:not
([subframe
]) #sub-frame-error
{
30 background-color: #fbfbfb;
31 border: 1px solid
#AAA;
32 border-bottom: 1px solid
#888;
34 box-shadow: 0 2px 2px #AAA;
39 -webkit-margin-start: 0;
48 margin: 10px 0 25px 0;
52 color: rgb
(17, 85, 204);
53 text-decoration: none
;
57 -webkit-user-select: none
;
62 * Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted
63 * renderer process, so embed the resource manually.
65 content: -webkit-image-set
(
66 url
('../../../app/theme/default_100_percent/common/error_network_generic.png') 1x,
67 url
('../../../app/theme/default_200_percent/common/error_network_generic.png') 2x);
71 content: -webkit-image-set
(
72 url
('../../../app/theme/default_100_percent/common/error_network_offline.png') 1x,
73 url
('../../../app/theme/default_200_percent/common/error_network_offline.png') 2x);
77 margin: 20px 20px 20px 25px;
81 -webkit-transition: height ease-in
218ms;
86 background-color: #f9f9f9;
87 border-top: 1px solid
#EEE;
97 #sub-frame-error-details {
99 text-shadow: 0 1px 0 rgba
(255,255,255,0.3);
102 [jscontent
=failedUrl
] {
103 overflow-wrap: break-word
;
107 -webkit-user-select: none
;
108 background-image: -webkit-linear-gradient
(#ededed, #ededed 38%, #dedede);
109 border: 1px solid rgba
(0, 0, 0, 0.25);
111 box-shadow: 0 1px 0 rgba
(0, 0, 0, 0.08),
112 inset
0 1px 2px rgba
(255, 255, 255, 0.75);
118 text-shadow: 0 1px 0 rgb
(240, 240, 240);
122 background-image: -webkit-linear-gradient
(#f0f0f0, #f0f0f0 38%, #e0e0e0);
123 border: 1px solid rgba
(0, 0, 0, 0.3);
124 box-shadow: 0 1px 0 rgba
(0, 0, 0, 0.12),
125 inset
0 1px 2px rgba
(255, 255, 255, 0.95);
130 background-image: -webkit-linear-gradient
(#e7e7e7, #e7e7e7 38%, #d7d7d7);
131 border: 1px solid rgba
(0, 0, 0, 0.3);
137 background-image: -webkit-linear-gradient
(rgb
(93, 154, 255),
140 border: 1px solid rgba
(45, 102, 195, 1);
141 box-shadow: 0 1px 0 rgba
(0, 0, 0, 0.15),
142 inset
0 1px 2px rgba
(255, 255, 255, 0.2);
144 text-shadow: 0 1px 0 rgba
(0,0,0,0.5);
147 #reload-button:hover
{
148 background-image: -webkit-linear-gradient
(rgb
(101, 158, 253),
151 border: 1px solid rgba
(45, 102, 195, 1);
152 box-shadow: 0 1px 0 rgba
(0, 0, 0, 0.25),
153 inset
0 1px 2px rgba
(255, 255, 255, 0.2);
156 #reload-button:active
{
157 background-image: -webkit-linear-gradient
(rgb
(96, 149, 237),
160 border: 1px solid rgb
(38, 84, 160);
161 box-shadow: inset
0 1px 1px rgba
(0, 0, 0, 0.1);
186 /* Increase line height at higher resolutions. */
187 @media (min-width: 641px) and
(min-height: 641px) {
193 /* Decrease padding at low sizes. */
194 @media (max-width: 640px),
195 (max-height: 640px) {
200 margin: 10px 0 15px 0;
219 /* Don't allow overflow when in a subframe. */
220 html
[subframe
] body
{
225 -webkit-align-items: center
;
226 -webkit-flex-flow: column
;
227 -webkit-justify-content: center
;
228 background-color: #DDD;
229 display: -webkit-flex
;
237 #sub-frame-error:hover
{
238 background-color: #EEE;
241 #sub-frame-error-details {
246 /* Show details only when hovering. */
247 #sub-frame-error:hover #sub-frame-error-details
{
251 /* If the iframe is too small, always hide the error code. */
252 /* TODO(mmenke): See if overflow: no-display works better, once supported. */
253 @media (max-width: 200px),
255 #sub-frame-error-details {