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);
54 content: -webkit-image-set
(
55 url
(default_100_percent
/offline
/100-error-offline
.png
) 1x,
56 url
(default_200_percent
/offline
/200-error-offline
.png
) 2x);
61 content: -webkit-image-set
(
62 url
(default_100_percent
/offline
/100-disabled
.png
) 1x,
63 url
(default_200_percent
/offline
/200-disabled
.png
) 2x);
76 background-color: #f9f9f9;
77 border-top: 1px solid
#EEE;
95 #sub-frame-error-details {
97 <if expr
="not is_android and not is_ios">
98 /* Not done on mobile for performance reasons. */
99 text-shadow: 0 1px 0 rgba
(255,255,255,0.3);
103 [jscontent
=failedUrl
] {
104 overflow-wrap: break-word
;
108 /* Prevents a space between controls. */
114 border: 1px solid
#cdcdcd;
123 border: 1px solid rgb
(93, 154, 255);
129 border-bottom-left-radius: 0;
130 border-top-left-radius: 0;
142 url
(../../app/theme/default_100_percent/common/omnibox_search_button_loupe.png) 1x,
143 url
(../../app/theme/default_200_percent/common/omnibox_search_button_loupe.png) 2x);
148 -webkit-margin-end: 16px;
157 box-sizing: border-box
;
164 padding: 16px 24px 12px;
166 transform: translateY
(90px);
167 will-change: opacity
, transform
;
173 show-snackbar
.25s cubic-bezier
(0.0, 0.0, 0.2, 1) forwards
,
174 hide-snackbar
.25s cubic-bezier
(0.4, 0.0, 1, 1) forwards
5s;
177 @-webkit-keyframes show-snackbar
{
180 transform: translateY
(0);
184 @-webkit-keyframes hide-snackbar
{
187 transform: translateY
(0);
191 transform: translateY
(90px);
208 /* Increase line height at higher resolutions. */
209 @media (min-width: 641px) and
(min-height: 641px) {
215 /* Decrease padding at low sizes. */
216 @media (max-width: 640px), (max-height: 640px) {
237 /* Don't allow overflow when in a subframe. */
238 html
[subframe
] body
{
243 -webkit-align-items: center
;
244 background-color: #DDD;
245 display: -webkit-flex
;
246 -webkit-flex-flow: column
;
248 -webkit-justify-content: center
;
252 transition: background-color
.2s ease-in-out
;
256 #sub-frame-error:hover
{
257 background-color: #EEE;
260 #sub-frame-error .icon-generic
{
264 #sub-frame-error-details {
270 /* Show details only when hovering. */
271 #sub-frame-error:hover #sub-frame-error-details
{
275 /* If the iframe is too small, always hide the error code. */
276 /* TODO(mmenke): See if overflow: no-display works better, once supported. */
277 @media (max-width: 200px), (max-height: 95px) {
278 #sub-frame-error-details {
283 /* Adjust icon for small embedded frames in apps. */
284 @media (max-height: 100px) {
285 #sub-frame-error .icon-generic
{
293 /* details-button is special; it's a <button> element that looks like a link. */
299 /* Styles for platform dependent separation of controls and details button. */
300 .suggested-left
> #control-buttons
,
301 .suggested-left #stale-load-button
,
302 .suggested-right > #details-button {
306 .suggested-right
> #control-buttons
,
307 .suggested-right #stale-load-button
,
308 .suggested-left > #details-button {
312 .suggested-left .secondary-button {
313 -webkit-margin-end: 0px;
314 -webkit-margin-start: 16px;
317 #details-button.singular
{
329 .offline .interstitial-wrapper {
339 .offline .runner-container {
348 .offline .runner-canvas {
358 .offline .controller {
359 background: rgba
(247,247,247, .1);
372 @media (max-width: 420px) {
373 .suggested-left
> #control-buttons
,
374 .suggested-right > #control-buttons {
386 @media (max-height: 350px) {
395 .interstitial-wrapper {
404 @media (min-width: 600px) and
(max-width: 736px) and
(orientation: landscape
) {
405 .offline .interstitial-wrapper {
411 @media (min-width: 420px) and
(max-width: 736px) and
412 (min-height: 240px) and
(max-height: 420px) and
413 (orientation:landscape
) {
414 .interstitial-wrapper {
415 margin-bottom: 100px;
419 @media (min-height: 240px) and
(orientation: landscape
) {
420 .offline .interstitial-wrapper {
429 @media (max-height: 320px) and
(orientation: landscape
) {
434 .offline .runner-container {
439 @media (max-width: 240px) {
445 .interstitial-wrapper {
451 @media (max-width: 120px) {