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
;
45 * Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted
46 * renderer process, so embed the resource manually.
48 content: -webkit-image-set
(
49 url
(default_100_percent/common/error_network_generic.png) 1x,
50 url
(default_200_percent/common/error_network_generic.png) 2x);
55 content: -webkit-image-set
(
56 url
(default_100_percent
/offline
/100-error-offline
.png
) 1x,
57 url
(default_200_percent
/offline
/200-error-offline
.png
) 2x);
62 content: -webkit-image-set
(
63 url
(default_100_percent
/offline
/100-disabled
.png
) 1x,
64 url
(default_200_percent
/offline
/200-disabled
.png
) 2x);
77 background-color: #f9f9f9;
78 border-top: 1px solid
#EEE;
96 #sub-frame-error-details {
98 <if expr
="not is_android and not is_ios">
99 /* Not done on mobile for performance reasons. */
100 text-shadow: 0 1px 0 rgba
(255,255,255,0.3);
104 [jscontent
=failedUrl
] {
105 overflow-wrap: break-word
;
109 /* Prevents a space between controls. */
115 border: 1px solid
#cdcdcd;
124 border: 1px solid rgb
(93, 154, 255);
130 border-bottom-left-radius: 0;
131 border-top-left-radius: 0;
143 url
(../../app/theme/default_100_percent/common/omnibox_search_button_loupe.png) 1x,
144 url
(../../app/theme/default_200_percent/common/omnibox_search_button_loupe.png) 2x);
149 -webkit-margin-end: 16px;
158 box-sizing: border-box
;
165 padding: 16px 24px 12px;
167 transform: translateY
(90px);
168 will-change: opacity
, transform
;
174 show-snackbar
.25s cubic-bezier
(0.0, 0.0, 0.2, 1) forwards
,
175 hide-snackbar
.25s cubic-bezier
(0.4, 0.0, 1, 1) forwards
5s;
178 @-webkit-keyframes show-snackbar
{
181 transform: translateY
(0);
185 @-webkit-keyframes hide-snackbar
{
188 transform: translateY
(0);
192 transform: translateY
(90px);
209 /* Increase line height at higher resolutions. */
210 @media (min-width: 641px) and
(min-height: 641px) {
216 /* Decrease padding at low sizes. */
217 @media (max-width: 640px), (max-height: 640px) {
238 /* Don't allow overflow when in a subframe. */
239 html
[subframe
] body
{
244 -webkit-align-items: center
;
245 background-color: #DDD;
246 display: -webkit-flex
;
247 -webkit-flex-flow: column
;
249 -webkit-justify-content: center
;
253 transition: background-color
.2s ease-in-out
;
257 #sub-frame-error:hover
{
258 background-color: #EEE;
261 #sub-frame-error .icon-generic
{
265 #sub-frame-error-details {
271 /* Show details only when hovering. */
272 #sub-frame-error:hover #sub-frame-error-details
{
276 /* If the iframe is too small, always hide the error code. */
277 /* TODO(mmenke): See if overflow: no-display works better, once supported. */
278 @media (max-width: 200px), (max-height: 95px) {
279 #sub-frame-error-details {
284 /* Adjust icon for small embedded frames in apps. */
285 @media (max-height: 100px) {
286 #sub-frame-error .icon-generic
{
294 /* details-button is special; it's a <button> element that looks like a link. */
300 /* Styles for platform dependent separation of controls and details button. */
301 .suggested-left
> #control-buttons
,
302 .suggested-left #stale-load-button
,
303 .suggested-right > #details-button {
307 .suggested-right
> #control-buttons
,
308 .suggested-right #stale-load-button
,
309 .suggested-left > #details-button {
313 .suggested-left .secondary-button {
314 -webkit-margin-end: 0px;
315 -webkit-margin-start: 16px;
318 #details-button.singular
{
330 .offline .interstitial-wrapper {
340 .offline .runner-container {
349 .offline .runner-canvas {
359 .offline .controller {
360 background: rgba
(247,247,247, .1);
373 @media (max-width: 420px) {
374 .suggested-left
> #control-buttons
,
375 .suggested-right > #control-buttons {
387 @media (max-height: 350px) {
396 .interstitial-wrapper {
405 @media (min-width: 600px) and
(max-width: 736px) and
(orientation: landscape
) {
406 .offline .interstitial-wrapper {
412 @media (min-width: 420px) and
(max-width: 736px) and
413 (min-height: 240px) and
(max-height: 420px) and
414 (orientation:landscape
) {
415 .interstitial-wrapper {
416 margin-bottom: 100px;
420 @media (min-height: 240px) and
(orientation: landscape
) {
421 .offline .interstitial-wrapper {
430 @media (max-height: 320px) and
(orientation: landscape
) {
435 .offline .runner-container {
440 @media (max-width: 240px) {
446 .interstitial-wrapper {
452 @media (max-width: 120px) {