/* 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; float: none; margin-bottom: 10px; margin-top: 20px; } h1 { margin-top: 0; } h2 { color: #666; font-size: 1.2em; font-weight: normal; margin: 10px 0; } a { color: rgb(17, 85, 204); text-decoration: none; } .icon { -webkit-user-select: none; display: inline-block; } .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(default_100_percent/common/error_network_generic.png) 1x, url(default_200_percent/common/error_network_generic.png) 2x); } .icon-offline { content: -webkit-image-set( url(default_100_percent/offline/100-error-offline.png) 1x, url(default_200_percent/offline/200-error-offline.png) 2x); position: relative; } .icon-disabled { content: -webkit-image-set( url(default_100_percent/offline/100-disabled.png) 1x, url(default_200_percent/offline/200-disabled.png) 2x); width: 112px; } .error-code { display: block; } #content-top { margin: 20px; } #help-box-inner { background-color: #f9f9f9; border-top: 1px solid #EEE; color: #444; padding: 20px; text-align: start; } .hidden { display: none; } #suggestion { margin-top: 15px; } #short-suggestion { margin-top: 5px; } #sub-frame-error-details { color: #8F8F8F; /* Not done on mobile for performance reasons. */ text-shadow: 0 1px 0 rgba(255,255,255,0.3); } [jscontent=failedUrl] { overflow-wrap: break-word; } #search-container { /* Prevents a space between controls. */ display: flex; margin-top: 20px; } #search-box { border: 1px solid #cdcdcd; flex-grow: 1; font-size: 16px; height: 26px; margin-right: 0; padding: 1px 9px; } #search-box:focus { border: 1px solid rgb(93, 154, 255); outline: none; } #search-button { border: none; border-bottom-left-radius: 0; border-top-left-radius: 0; box-shadow: none; display: flex; height: 30px; margin: 0; padding: 0; width: 60px; } #search-image { content: -webkit-image-set( url(../../app/theme/default_100_percent/common/omnibox_search_button_loupe.png) 1x, url(../../app/theme/default_200_percent/common/omnibox_search_button_loupe.png) 2x); margin: auto; } .secondary-button { -webkit-margin-end: 16px; background: #d9d9d9; color: #696969; } .snackbar { background: #323232; border-radius: 2px; bottom: 24px; box-sizing: border-box; color: #fff; font-size: .87em; left: 24px; max-width: 568px; min-width: 288px; opacity: 0; padding: 16px 24px 12px; position: fixed; transform: translateY(90px); will-change: opacity, transform; z-index: 999; } .snackbar-show { -webkit-animation: show-snackbar .25s cubic-bezier(0.0, 0.0, 0.2, 1) forwards, hide-snackbar .25s cubic-bezier(0.4, 0.0, 1, 1) forwards 5s; } @-webkit-keyframes show-snackbar { 100% { opacity: 1; transform: translateY(0); } } @-webkit-keyframes hide-snackbar { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(90px); } } .suggestions { margin-top: 18px; } .suggestion-header { font-weight: bold; margin-bottom: 4px; } .suggestion-body { color: #777; } /* 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) { h1 { margin: 0 0 15px; } #content-top { margin: 15px; } #help-box-inner { padding: 20px; } .suggestions { margin-top: 10px; } .suggestion-header { margin-bottom: 0; } .error-code { margin: 10px 0; } } /* Don't allow overflow when in a subframe. */ html[subframe] body { overflow: hidden; } #sub-frame-error { -webkit-align-items: center; background-color: #DDD; display: -webkit-flex; -webkit-flex-flow: column; height: 100%; -webkit-justify-content: center; left: 0; position: absolute; top: 0; transition: background-color .2s ease-in-out; width: 100%; } #sub-frame-error:hover { background-color: #EEE; } #sub-frame-error .icon-generic { margin: 0 0 16px; } #sub-frame-error-details { margin: 0 10px; text-align: center; 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; } } /* Adjust icon for small embedded frames in apps. */ @media (max-height: 100px) { #sub-frame-error .icon-generic { height: auto; margin: 0; padding-top: 0; width: 25px; } } /* details-button is special; it's a