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;
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 background-color: #f9f9f9;
71 border-top: 1px solid
#EEE;
85 #sub-frame-error-details {
87 <if expr
="not is_android and not is_ios">
88 /* Not done on mobile for performance reasons. */
89 text-shadow: 0 1px 0 rgba
(255,255,255,0.3);
93 [jscontent
=failedUrl
] {
94 overflow-wrap: break-word
;
98 /* Prevents a space between controls. */
104 border: 1px solid
#cdcdcd;
113 border: 1px solid rgb
(93, 154, 255);
119 border-bottom-left-radius: 0;
120 border-top-left-radius: 0;
132 url
('../../app/theme/default_100_percent/common/omnibox_search_button_loupe.png') 1x,
133 url
('../../app/theme/default_200_percent/common/omnibox_search_button_loupe.png') 2x);
159 /* Increase line height at higher resolutions. */
160 @media (min-width: 641px) and
(min-height: 641px) {
166 /* Decrease padding at low sizes. */
167 @media (max-width: 640px), (max-height: 640px) {
191 /* Don't allow overflow when in a subframe. */
192 html
[subframe
] body
{
197 -webkit-align-items: center
;
198 background-color: #DDD;
199 display: -webkit-flex
;
200 -webkit-flex-flow: column
;
202 -webkit-justify-content: center
;
206 transition: background-color
.2s ease-in-out
;
210 #sub-frame-error:hover
{
211 background-color: #EEE;
214 #sub-frame-error .icon-generic
{
218 #sub-frame-error-details {
224 /* Show details only when hovering. */
225 #sub-frame-error:hover #sub-frame-error-details
{
229 /* If the iframe is too small, always hide the error code. */
230 /* TODO(mmenke): See if overflow: no-display works better, once supported. */
231 @media (max-width: 200px), (max-height: 95px) {
232 #sub-frame-error-details {
237 /* Adjust icon for small embedded frames in apps. */
238 @media (max-height: 100px) {
239 #sub-frame-error .icon-generic
{
247 /* details-button is special; it's a <button> element that looks like a link. */
249 background-color: inherit
;
250 background-image: none
;
255 text-decoration: underline
;
258 /* Styles for platform dependent separation of controls and details button. */
259 .suggested-left
> #control-buttons
,
260 .suggested-right > #details-button {
264 .suggested-right
> #control-buttons
,
265 .suggested-left > #details-button {
269 #details-button.singular
{
281 .offline .interstitial-wrapper {
285 margin: 100px auto
0;
290 .offline .runner-container {
300 .offline .runner-canvas {
309 .offline .controller {
310 background: rgba
(247,247,247, .1);
323 @media (max-width: 400px) {
324 .suggested-left
> #control-buttons
,
325 .suggested-right > #control-buttons {
331 @media (max-height: 350px) {
340 .interstitial-wrapper {