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;
23 -webkit-margin-before: 0;
34 color: rgb(17, 85, 204);
35 text-decoration: none;
39 -webkit-user-select: none;
44 * Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted
45 * renderer process, so embed the resource manually.
47 content: -webkit-image-set(
48 url('default_100_percent/common/error_network_generic.png') 1x,
49 url('default_200_percent/common/error_network_generic.png') 2x);
56 content: -webkit-image-set(
57 url('default_100_percent/offline/100-error-offline.png') 1x,
58 url('default_200_percent/offline/200-error-offline.png') 2x);
70 -webkit-transition: height ease-in 218ms;
75 background-color: #f9f9f9;
76 border-top: 1px solid #EEE;
90 #sub-frame-error-details {
92 <if expr="not is_android and not is_ios">
93 /* Not done on mobile for performance reasons. */
94 text-shadow: 0 1px 0 rgba(255,255,255,0.3);
98 [jscontent=failedUrl] {
99 overflow-wrap: break-word;
103 /* Prevents a space between controls. */
109 border: 1px solid #cdcdcd;
118 border: 1px solid rgb(93, 154, 255);
124 border-bottom-left-radius: 0;
125 border-top-left-radius: 0;
137 url('../../app/theme/default_100_percent/common/omnibox_search_button_loupe.png') 1x,
138 url('../../app/theme/default_200_percent/common/omnibox_search_button_loupe.png') 2x);
164 /* Increase line height at higher resolutions. */
165 @media (min-width: 641px) and (min-height: 641px) {
171 /* Decrease padding at low sizes. */
172 @media (max-width: 640px), (max-height: 640px) {
196 /* Don't allow overflow when in a subframe. */
197 html[subframe] body {
202 -webkit-align-items: center;
203 background-color: #DDD;
204 display: -webkit-flex;
205 -webkit-flex-flow: column;
207 -webkit-justify-content: center;
214 #sub-frame-error:hover {
215 background-color: #EEE;
218 #sub-frame-error-details {
223 /* Show details only when hovering. */
224 #sub-frame-error:hover #sub-frame-error-details {
228 /* If the iframe is too small, always hide the error code. */
229 /* TODO(mmenke): See if overflow: no-display works better, once supported. */
230 @media (max-width: 200px), (max-height: 95px) {
231 #sub-frame-error-details {
236 /* details-button is special; it's a <button> element that looks like a link. */
238 background-color: inherit;
239 background-image: none;
244 text-decoration: underline;
247 /* Styles for platform dependent separation of controls and details button. */
248 .suggested-left > #control-buttons,
249 .suggested-right > #details-button {
253 .suggested-right > #control-buttons,
254 .suggested-left > #details-button {
258 #details-button.singular {
270 .offline .interstitial-wrapper {
274 margin: 100px auto 0;
279 .offline .runner-container {
289 .offline .runner-canvas {
298 .offline .controller {
299 background: rgba(247,247,247, .1);