Add testing/scripts/OWNERS
[chromium-blink-merge.git] / chrome / renderer / resources / neterror.css
blobba758c892d29028706326eb1450b6949e6f19aa6
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 {
7 display: none;
10 /* Don't use the subframe error div when the error is in a main frame. */
11 html:not([subframe]) #sub-frame-error {
12 display: none;
15 #diagnose-button {
16 -webkit-margin-start: 0;
17 float: none;
18 margin-bottom: 10px;
19 margin-top: 20px;
22 h1 {
23 margin-top: 0;
26 h2 {
27 color: #666;
28 font-size: 1.2em;
29 font-weight: normal;
30 margin: 10px 0;
33 a {
34 color: rgb(17, 85, 204);
35 text-decoration: none;
38 .icon {
39 -webkit-user-select: none;
42 .icon-generic {
43 /**
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);
50 height: 50px;
51 padding-top: 20px;
52 width: 41px;
55 .icon-offline {
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);
59 height: 47px;
60 margin: 0 0 40px;
61 position: relative;
62 width: 44px;
65 #content-top {
66 margin: 20px;
69 #help-box-inner {
70 background-color: #f9f9f9;
71 border-top: 1px solid #EEE;
72 color: #444;
73 padding: 20px;
74 text-align: start;
77 #suggestion {
78 margin-top: 15px;
81 #short-suggestion {
82 margin-top: 5px;
85 #sub-frame-error-details {
86 color: #8F8F8F;
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);
90 </if>
93 [jscontent=failedUrl] {
94 overflow-wrap: break-word;
97 #search-container {
98 /* Prevents a space between controls. */
99 display: flex;
100 margin-top: 20px;
103 #search-box {
104 border: 1px solid #cdcdcd;
105 flex-grow: 1;
106 font-size: 16px;
107 height: 26px;
108 margin-right: 0;
109 padding: 1px 9px;
112 #search-box:focus {
113 border: 1px solid rgb(93, 154, 255);
114 outline: none;
117 #search-button {
118 border: none;
119 border-bottom-left-radius: 0;
120 border-top-left-radius: 0;
121 box-shadow: none;
122 display: flex;
123 height: 30px;
124 margin: 0;
125 padding: 0;
126 width: 60px;
129 #search-image {
130 content:
131 -webkit-image-set(
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);
134 margin: auto;
137 .hidden {
138 display: none;
141 .suggestions {
142 margin-top: 18px;
145 .suggestion-header {
146 font-weight: bold;
147 margin-bottom: 4px;
150 .suggestion-body {
151 color: #777;
154 .error-code {
155 color: #A0A0A0;
156 margin-top: 15px;
159 /* Increase line height at higher resolutions. */
160 @media (min-width: 641px) and (min-height: 641px) {
161 #help-box-inner {
162 line-height: 18px;
166 /* Decrease padding at low sizes. */
167 @media (max-width: 640px), (max-height: 640px) {
168 body {
169 margin: 15px;
171 h1 {
172 margin: 10px 0 15px;
174 #content-top {
175 margin: 15px;
177 #help-box-inner {
178 padding: 20px;
180 .suggestions {
181 margin-top: 10px;
183 .suggestion-header {
184 margin-bottom: 0;
186 .error-code {
187 margin-top: 10px;
191 /* Don't allow overflow when in a subframe. */
192 html[subframe] body {
193 overflow: hidden;
196 #sub-frame-error {
197 -webkit-align-items: center;
198 background-color: #DDD;
199 display: -webkit-flex;
200 -webkit-flex-flow: column;
201 height: 100%;
202 -webkit-justify-content: center;
203 left: 0;
204 position: absolute;
205 top: 0;
206 transition: background-color .2s ease-in-out;
207 width: 100%;
210 #sub-frame-error:hover {
211 background-color: #EEE;
214 #sub-frame-error .icon-generic {
215 margin: 0 0 16px;
218 #sub-frame-error-details {
219 margin: 0 10px;
220 text-align: center;
221 visibility: hidden;
224 /* Show details only when hovering. */
225 #sub-frame-error:hover #sub-frame-error-details {
226 visibility: visible;
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 {
233 display: none;
237 /* Adjust icon for small embedded frames in apps. */
238 @media (max-height: 100px) {
239 #sub-frame-error .icon-generic {
240 height: auto;
241 margin: 0;
242 padding-top: 0;
243 width: 25px;
247 /* details-button is special; it's a <button> element that looks like a link. */
248 #details-button {
249 background-color: inherit;
250 background-image: none;
251 border: none;
252 box-shadow: none;
253 min-width: 0;
254 padding: 0;
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 {
261 float: left;
264 .suggested-right > #control-buttons,
265 .suggested-left > #details-button {
266 float: right;
269 #details-button.singular {
270 float: none;
273 #buttons::after {
274 clear: both;
275 content: '';
276 display: block;
277 width: 100%;
280 /* Offline page */
281 .offline .interstitial-wrapper {
282 color: #2b2b2b;
283 font-size: 1em;
284 line-height: 1.55;
285 margin: 100px auto 0;
286 max-width: 600px;
287 width: 100%;
290 .offline .runner-container {
291 height: 150px;
292 max-width: 600px;
293 overflow: hidden;
294 position: absolute;
295 top: 10px;
296 width: 44px;
297 z-index: 2;
300 .offline .runner-canvas {
301 height: 150px;
302 max-width: 600px;
303 opacity: 1;
304 overflow: hidden;
305 position: absolute;
306 top: 0;
309 .offline .controller {
310 background: rgba(247,247,247, .1);
311 height: 100vh;
312 left: 0;
313 position: absolute;
314 top: 0;
315 width: 100vw;
316 z-index: 1;
319 #offline-resources {
320 display: none;
323 @media (max-width: 400px) {
324 .suggested-left > #control-buttons,
325 .suggested-right > #control-buttons {
326 float: none;
327 margin: 50px 0 20px;
331 @media (max-height: 350px) {
332 h1 {
333 margin: 0 0 15px;
336 .icon-offline {
337 margin: 0 0 10px;
340 .interstitial-wrapper {
341 margin-top: 5%;
344 .nav-wrapper {
345 margin-top: 30px;