/* Copyright 2013 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Don't use the main frame div when the error is in a subframe. */ html[subframe] #main-frame-error { display: none; } /* Don't use the subframe error div when the error is in a main frame. */ html:not([subframe]) #sub-frame-error { display: none; } #diagnose-button { -webkit-margin-start: 0; margin-bottom: 10px; margin-top: 20px; } h1 { color: #666; font-size: 1.5em; font-weight: normal; margin: 10px 0 25px 0; } a { color: rgb(17, 85, 204); text-decoration: none; } .icon { -webkit-user-select: none; } .icon-generic { /** * Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted * renderer process, so embed the resource manually. */ content: -webkit-image-set( url(../../../../components/resources/default_100_percent/neterror/error_network_generic.png) 1x, url(../../../../components/resources/default_200_percent/neterror/error_network_generic.png) 2x); } .icon-offline { content: -webkit-image-set( url(../../../../components/neterror/resources/default_100_percent/offline/100-error-offline.png) 1x, url(../../../../components/neterror/resources/default_200_percent/offline/200-error-offline.png) 2x); } #help-box-outer { -webkit-transition: height ease-in 218ms; overflow: hidden; } #help-box-inner { background-color: #f9f9f9; border-top: 1px solid #EEE; color: #444; padding: 25px 20px; text-align: start; } #suggestions { margin-top: 15px; } #sub-frame-error-details { color: #8F8F8F; text-shadow: 0 1px 0 rgba(255,255,255,0.3); } [jscontent=failedUrl] { overflow-wrap: break-word; } .hidden { display: none; } .suggestions { margin-top: 18px; } .suggestion-header { font-weight: bold; margin-bottom: 4px; } .suggestion-body { color: #777; } .error-code { color: #A0A0A0; margin-top: 15px; } /* Increase line height at higher resolutions. */ @media (min-width: 641px) and (min-height: 641px) { #help-box-inner { line-height: 18px; } } /* Decrease padding at low sizes. */ @media (max-width: 640px), (max-height: 640px) { body { margin: 15px; } h1 { margin: 10px 0 15px 0; } #help-box-inner { padding: 20px; } .suggestions { margin-top: 10px; } .suggestion-header { margin-bottom: 0; } .error-code { margin-top: 10px; } } /* Don't allow overflow when in a subframe. */ html[subframe] body { overflow: hidden; } #sub-frame-error { -webkit-align-items: center; -webkit-flex-flow: column; -webkit-justify-content: center; background-color: #DDD; display: -webkit-flex; height: 100%; left: 0; position: absolute; top: 0; width: 100%; } #sub-frame-error:hover { background-color: #EEE; } #sub-frame-error-details { margin: 0 10px; visibility: hidden; } /* Show details only when hovering. */ #sub-frame-error:hover #sub-frame-error-details { visibility: visible; } /* If the iframe is too small, always hide the error code. */ /* TODO(mmenke): See if overflow: no-display works better, once supported. */ @media (max-width: 200px), (max-height: 95px) { #sub-frame-error-details { display: none; } } /* Offline page */ .offline .interstitial-wrapper { color: #2b2b2b; font-size: 1em; line-height: 1.55; margin: 100px auto 0; max-width: 600px; width: 100%; } .offline .runner-container { height: 150px; max-width: 600px; overflow: hidden; position: absolute; top: 10px; width: 44px; z-index: 2; } .offline .runner-canvas { height: 150px; max-width: 600px; opacity: 1; overflow: hidden; position: absolute; top: 0; } .offline .controller { background: rgba(247,247,247, .1); height: 100vh; left: 0; position: absolute; top: 0; width: 100vw; z-index: 1; } #offline-resources { display: none; }