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;
18 /* Don't use the main frame div when the error is in a subframe. */
19 html[subframe] #main-frame-error {
23 /* Don't use the subframe error div when the error is in a main frame. */
24 html:not([subframe]) #sub-frame-error {
29 background-color: #fbfbfb;
30 border: 1px solid #AAA;
31 border-bottom: 1px solid #888;
34 <if expr="not is_android and not is_ios">
35 /* Not done on mobile for performance reasons. */
36 box-shadow: 0px 2px 2px #AAA;
43 -webkit-margin-start: 0px;
46 #content-top #buttons,
49 margin: 10px 0px 25px 0px;
64 text-decoration: none;
68 -webkit-user-select: none;
73 * Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted
74 * renderer process, so embed the resource manually.
76 content: -webkit-image-set(
77 url('../../app/theme/default_100_percent/common/error_network_generic.png') 1x,
78 url('../../app/theme/default_200_percent/common/error_network_generic.png') 2x);
82 content: -webkit-image-set(
83 url('../../app/theme/default_100_percent/common/error_network_offline.png') 1x,
84 url('../../app/theme/default_200_percent/common/error_network_offline.png') 2x);
88 margin: 20px 20px 20px 25px;
93 -webkit-transition: height ease-in 218ms;
97 background-color: #f9f9f9;
98 border-top: 1px solid #EEE;
108 #sub-frame-error-details {
110 <if expr="not is_android and not is_ios">
111 /* Not done on mobile for performance reasons. */
112 text-shadow: 0 1px 0 rgba(255,255,255,0.3);
116 [jscontent=failedUrl] {
117 overflow-wrap: break-word;
121 border: 1px solid rgba(0, 0, 0, 0.25);
127 -webkit-user-select: none;
129 <if expr="not is_android">
130 /* iOS does not support linear-gradient without a prefix. */
131 background-image: -webkit-linear-gradient(#ededed, #ededed 38%, #dedede);
132 text-shadow: 0 1px 0 rgb(240, 240, 240);
134 <if expr="is_android">
135 /* Android uses flat background colors. */
136 background-color: #ededed;
139 <if expr="not is_android and not is_ios">
140 /* Not done on mobile for performance reasons. */
141 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.75);
146 border: 1px solid rgba(0, 0, 0, 0.3);
148 <if expr="not is_android">
149 background-image: -webkit-linear-gradient(#f0f0f0, #f0f0f0 38%, #e0e0e0);
151 <if expr="is_android">
152 background-color: #f0f0f0;
154 <if expr="not is_android and not is_ios">
155 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.95);
160 border: 1px solid rgba(0, 0, 0, 0.3);
162 <if expr="not is_android">
163 background-image: -webkit-linear-gradient(#e7e7e7, #e7e7e7 38%, #d7d7d7);
165 <if expr="is_android">
166 background-color: #e7e7e7;
168 <if expr="not is_android and not is_ios">
175 <if expr="not is_android">
176 background-image: -webkit-linear-gradient(#5d9aff, #5d9aff 38%, #5891f0);
177 border: 1px solid rgba(45, 102, 195, 1);
178 text-shadow: 0 1px 0 rgba(0,0,0,0.5);
180 <if expr="is_android">
181 background-color: rgb(39, 180, 231);
182 border: 1px solid rgb(0, 152, 206);
184 <if expr="not is_android and not is_ios">
185 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.2);
189 #reload-button:hover {
190 <if expr="not is_android">
191 background-image: -webkit-linear-gradient(#659efd, #659efd 38%, #6097f1);
192 border: 1px solid rgba(45, 102, 195, 1);
194 <if expr="not is_android and not is_ios">
195 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.2);
199 #reload-button:active {
200 <if expr="not is_android">
201 background-image: -webkit-linear-gradient(#6095ed, #6095ed 38%, #6095ed);
202 border: 1px solid rgb(38, 84, 160);
204 <if expr="is_android">
205 background-color: rgb(0, 152, 206);
207 <if expr="not is_android and not is_ios">
208 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
234 /* Increase line height at higher resolutions. */
235 @media (min-width: 641px) and (min-height: 641px) {
241 /* Decrease padding at low sizes. */
242 @media (max-width: 640px), (max-height: 640px) {
247 margin: 10px 0px 15px 0px;
266 /* Don't allow overflow when in a subframe. */
267 html[subframe] body {
272 -webkit-align-items: center;
273 background-color: #DDD;
274 display: -webkit-flex;
275 -webkit-flex-flow: column;
277 -webkit-justify-content: center;
284 #sub-frame-error:hover {
285 background-color: #EEE;
288 #sub-frame-error-details {
293 /* Show details only when hovering. */
294 #sub-frame-error:hover #sub-frame-error-details {
298 /* If the iframe is too small, always hide the error code. */
299 /* TODO(mmenke): See if overflow: no-display works better, once supported. */
300 @media (max-width: 200px), (max-height: 95px) {
301 #sub-frame-error-details {