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 /*******************************************************************************
7 * Note: This is also used by a file in chrome/browser/resources/ssl. When
8 * updating this file, make sure nothing in that directory regresses.
10 ******************************************************************************/
13 background-color: #E6E6E6;
14 font-family: Helvetica
, Arial
, sans-serif
;
16 margin: 50px 40px 20px 40px;
25 /* Don't use the main frame div when the error is in a subframe. */
26 html
[subframe
] #main-frame-error
{
30 /* Don't use the subframe error div when the error is in a main frame. */
31 html:not
([subframe
]) #sub-frame-error
{
36 background-color: #fbfbfb;
37 border: 1px solid
#AAA;
38 border-bottom: 1px solid
#888;
41 <if expr
="not is_android and not is_ios">
42 /* Not done on mobile for performance reasons. */
43 box-shadow: 0px 2px 2px #AAA;
50 -webkit-margin-start: 0px;
53 #content-top #buttons
,
56 margin: 10px 0px 30px 0px;
71 text-decoration: none
;
75 -webkit-user-select: none
;
80 * Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted
81 * renderer process, so embed the resource manually.
83 content: -webkit-image-set
(
84 url
('../../app/theme/default_100_percent/common/error_network_generic.png') 1x,
85 url
('../../app/theme/default_200_percent/common/error_network_generic.png') 2x);
89 content: -webkit-image-set
(
90 url
('../../app/theme/default_100_percent/common/error_network_offline.png') 1x,
91 url
('../../app/theme/default_200_percent/common/error_network_offline.png') 2x);
100 -webkit-transition: height ease-in
218ms;
104 background-color: #f9f9f9;
105 border-top: 1px solid
#EEE;
119 #sub-frame-error-details {
121 <if expr
="not is_android and not is_ios">
122 /* Not done on mobile for performance reasons. */
123 text-shadow: 0 1px 0 rgba
(255,255,255,0.3);
127 [jscontent
=failedUrl
] {
128 overflow-wrap: break-word
;
132 border: 1px solid rgba
(0, 0, 0, 0.25);
135 -webkit-user-select: none
;
136 <if expr
="not is_android">
137 /* iOS does not support linear-gradient without a prefix. */
138 background-image: -webkit-linear-gradient
(#ededed, #ededed 38%, #dedede);
139 text-shadow: 0 1px 0 rgb
(240, 240, 240);
141 <if expr
="is_android">
142 /* Android uses flat background colors. */
143 background-color: #ededed;
146 <if expr
="not is_android and not is_ios">
147 /* Not done on mobile for performance reasons. */
148 box-shadow: 0 1px 0 rgba
(0, 0, 0, 0.08), inset
0 1px 2px rgba
(255, 255, 255, 0.75);
153 border: 1px solid rgba
(0, 0, 0, 0.3);
155 <if expr
="not is_android">
156 background-image: -webkit-linear-gradient
(#f0f0f0, #f0f0f0 38%, #e0e0e0);
158 <if expr
="is_android">
159 background-color: #f0f0f0;
161 <if expr
="not is_android and not is_ios">
162 box-shadow: 0 1px 0 rgba
(0, 0, 0, 0.12), inset
0 1px 2px rgba
(255, 255, 255, 0.95);
167 border: 1px solid rgba
(0, 0, 0, 0.3);
169 <if expr
="not is_android">
170 background-image: -webkit-linear-gradient
(#e7e7e7, #e7e7e7 38%, #d7d7d7);
172 <if expr
="is_android">
173 background-color: #e7e7e7;
175 <if expr
="not is_android and not is_ios">
189 <if expr
="not is_android">
190 background-image: -webkit-linear-gradient
(#5d9aff, #5d9aff 38%, #5891f0);
191 border: 1px solid rgba
(45, 102, 195, 1);
192 text-shadow: 0 1px 0 rgba
(0,0,0,0.5);
194 <if expr
="is_android">
195 background-color: rgb
(39, 180, 231);
196 border: 1px solid rgb
(0, 152, 206);
198 <if expr
="not is_android and not is_ios">
199 box-shadow: 0 1px 0 rgba
(0, 0, 0, 0.15), inset
0 1px 2px rgba
(255, 255, 255, 0.2);
205 <if expr
="not is_android">
206 background-image: -webkit-linear-gradient
(#659efd, #659efd 38%, #6097f1);
207 border: 1px solid rgba
(45, 102, 195, 1);
209 <if expr
="not is_android and not is_ios">
210 box-shadow: 0 1px 0 rgba
(0, 0, 0, 0.25), inset
0 1px 2px rgba
(255, 255, 255, 0.2);
214 .blue-button:active {
215 <if expr
="not is_android">
216 background-image: -webkit-linear-gradient
(#6095ed, #6095ed 38%, #6095ed);
217 border: 1px solid rgb
(38, 84, 160);
219 <if expr
="is_android">
220 background-color: rgb
(0, 152, 206);
222 <if expr
="not is_android and not is_ios">
223 box-shadow: inset
0 1px 1px rgba
(0, 0, 0, 0.1);
228 /* Prevents a space between controls. */
234 border: 1px solid
#cdcdcd;
243 border: 1px solid
#5d9aff;
249 border-top-left-radius: 0;
250 border-bottom-left-radius: 0;
262 url
('../../app/theme/default_100_percent/common/omnibox_search_button_loupe.png') 1x,
263 url
('../../app/theme/default_200_percent/common/omnibox_search_button_loupe.png') 2x);
289 /* Increase line height at higher resolutions. */
290 @media (min-width: 641px) and
(min-height: 641px) {
296 /* Decrease padding at low sizes. */
297 @media (max-width: 640px), (max-height: 640px) {
302 margin: 10px 0px 15px 0px;
321 /* Don't allow overflow when in a subframe. */
322 html
[subframe
] body
{
327 -webkit-align-items: center
;
328 background-color: #DDD;
329 display: -webkit-flex
;
330 -webkit-flex-flow: column
;
332 -webkit-justify-content: center
;
339 #sub-frame-error:hover
{
340 background-color: #EEE;
343 #sub-frame-error-details {
348 /* Show details only when hovering. */
349 #sub-frame-error:hover #sub-frame-error-details
{
353 /* If the iframe is too small, always hide the error code. */
354 /* TODO(mmenke): See if overflow: no-display works better, once supported. */
355 @media (max-width: 200px), (max-height: 95px) {
356 #sub-frame-error-details {