Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / renderer / resources / neterror.css
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. */
4
5 body {
6   background-color: #E6E6E6;
7   font-family: Helvetica, Arial, sans-serif;
8   font-size: 10pt;
9   margin: 50px 40px 20px 40px;
10 }
11
12 #main-frame-error {
13   margin: auto;
14   max-width: 540px;
15   min-width: 200px;
16 }
17
18 /* Don't use the main frame div when the error is in a subframe. */
19 html[subframe] #main-frame-error {
20   display: none;
21 }
22
23 /* Don't use the subframe error div when the error is in a main frame. */
24 html:not([subframe]) #sub-frame-error {
25   display: none;
26 }
27
28 #box {
29   background-color: #fbfbfb;
30   border: 1px solid #AAA;
31   border-bottom: 1px solid #888;
32   border-radius: 3px;
33   color: black;
34 <if expr="not is_android and not is_ios">
35   /* Not done on mobile for performance reasons. */
36   box-shadow: 0px 2px 2px #AAA;
37 </if>
38 }
39
40 #diagnose-button {
41   -webkit-margin-start: 0;
42   margin-bottom: 10px;
43   margin-top: 20px;
44 }
45
46 #content-top #buttons,
47 #content-top h1 {
48   color: #666;
49   font-size: 1.5em;
50   font-weight: normal;
51   text-align: center;
52   margin: 10px 0 30px;
53 }
54
55 h2 {
56   color: #666;
57   font-size: 1.2em;
58   font-weight: normal;
59   margin: 10px 0;
60 }
61
62 a {
63   color: rgb(17, 85, 204);
64   text-decoration: none;
65 }
66
67 .icon {
68   -webkit-user-select: none;
69 }
70
71 .icon-generic {
72   /**
73    * Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted
74    * renderer process, so embed the resource manually.
75    */
76   content: -webkit-image-set(
77       url('../../app/theme/default_100_percent/common/error_network_generic.png') 1x,
78       url('../../app/theme/default_200_percent/common/error_network_generic.png') 2x);
79 }
80
81 .icon-offline {
82   content: -webkit-image-set(
83       url('../../app/theme/default_100_percent/common/error_network_offline.png') 1x,
84       url('../../app/theme/default_200_percent/common/error_network_offline.png') 2x);
85 }
86
87 #content-top {
88   margin: 20px;
89 }
90
91 #help-box-outer {
92   -webkit-transition: height ease-in 218ms;
93   overflow: hidden;
94 }
95
96 #help-box-inner {
97   background-color: #f9f9f9;
98   border-top: 1px solid #EEE;
99   color: #444;
100   padding: 20px;
101   text-align: start;
102 }
103
104 #suggestion {
105   margin-top: 15px;
106 }
107
108 #short-suggestion {
109   margin-top: 5px;
110 }
111
112 #sub-frame-error-details {
113   color: #8F8F8F;
114 <if expr="not is_android and not is_ios">
115   /* Not done on mobile for performance reasons. */
116   text-shadow: 0 1px 0 rgba(255,255,255,0.3);
117 </if>
118 }
119
120 [jscontent=failedUrl] {
121   overflow-wrap: break-word;
122 }
123
124 button {
125   -webkit-user-select: none;
126   border: 1px solid rgba(0, 0, 0, 0.25);
127   border-radius: 2px;
128   color: #444;
129 <if expr="not is_android">
130   /* iOS does not support linear-gradient without a prefix. */
131   background-image: -webkit-linear-gradient(#ededed, #ededed 38%, #dedede);
132   text-shadow: 0 1px 0 rgb(240, 240, 240);
133 </if>
134 <if expr="is_android">
135   /* Android uses flat background colors. */
136   background-color: #ededed;
137   font-weight: bold;
138 </if>
139 <if expr="not is_android and not is_ios">
140   /* Not done on mobile for performance reasons. */
141   box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08),
142               inset 0 1px 2px rgba(255, 255, 255, 0.75);
143 </if>
144 }
145
146 button:hover {
147   border: 1px solid rgba(0, 0, 0, 0.3);
148   color: #000;
149 <if expr="not is_android">
150   background-image: -webkit-linear-gradient(#f0f0f0, #f0f0f0 38%, #e0e0e0);
151 </if>
152 <if expr="is_android">
153   background-color: #f0f0f0;
154 </if>
155 <if expr="not is_android and not is_ios">
156   box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12),
157               inset 0 1px 2px rgba(255, 255, 255, 0.95);
158 </if>
159 }
160
161 button:active {
162   border: 1px solid rgba(0, 0, 0, 0.3);
163   color: #444;
164 <if expr="not is_android">
165   background-image: -webkit-linear-gradient(#e7e7e7, #e7e7e7 38%, #d7d7d7);
166 </if>
167 <if expr="is_android">
168   background-color: #e7e7e7;
169 </if>
170 <if expr="not is_android and not is_ios">
171   box-shadow: none;
172 </if>
173 }
174
175 .text-button {
176   margin: 0 5px;
177   min-height: 29px;
178   min-width: 65px;
179   padding: 7px 13px;
180 }
181
182 .blue-button {
183   color: #fff;
184 <if expr="not is_android">
185   background-image: -webkit-linear-gradient(#5d9aff, #5d9aff 38%, #5891f0);
186   border: 1px solid rgba(45, 102, 195, 1);
187   text-shadow: 0 1px 0 rgba(0,0,0,0.5);
188 </if>
189 <if expr="is_android">
190   background-color: rgb(39, 180, 231);
191   border: 1px solid rgb(0, 152, 206);
192 </if>
193 <if expr="not is_android and not is_ios">
194   box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15),
195               inset 0 1px 2px rgba(255, 255, 255, 0.2);
196 </if>
197 }
198
199 .blue-button:hover {
200   color: #fff;
201 <if expr="not is_android">
202   background-image: -webkit-linear-gradient(#659efd, #659efd 38%, #6097f1);
203   border: 1px solid rgba(45, 102, 195, 1);
204 </if>
205 <if expr="not is_android and not is_ios">
206   box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25),
207               inset 0 1px 2px rgba(255, 255, 255, 0.2);
208 </if>
209 }
210
211 .blue-button:active {
212 <if expr="not is_android">
213   background-image: -webkit-linear-gradient(#6095ed, #6095ed 38%, #6095ed);
214   border: 1px solid rgb(38, 84, 160);
215 </if>
216 <if expr="is_android">
217   background-color: rgb(0, 152, 206);
218 </if>
219 <if expr="not is_android and not is_ios">
220   box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
221 </if>
222 }
223
224 #search-container {
225   /* Prevents a space between controls. */
226   display: flex;
227   margin-top: 20px;
228 }
229
230 #search-box {
231   border: 1px solid #cdcdcd;
232   flex-grow: 1;
233   font-size: 16px;
234   height: 26px;
235   margin-right: 0;
236   padding: 1px 9px;
237 }
238
239 #search-box:focus {
240   border: 1px solid rgb(93, 154, 255);
241   outline: none;
242 }
243
244 #search-button {
245   border: none;
246   border-bottom-left-radius: 0;
247   border-top-left-radius: 0;
248   box-shadow: none;
249   display: flex;
250   height: 30px;
251   margin: 0;
252   padding: 0;
253   width: 60px;
254 }
255
256 #search-image {
257   content:
258       -webkit-image-set(
259           url('../../app/theme/default_100_percent/common/omnibox_search_button_loupe.png') 1x,
260           url('../../app/theme/default_200_percent/common/omnibox_search_button_loupe.png') 2x);
261   margin: auto;
262 }
263
264 .hidden {
265   display: none;
266 }
267
268 .suggestions {
269   margin-top: 18px;
270 }
271
272 .suggestion-header {
273   font-weight: bold;
274   margin-bottom: 4px;
275 }
276
277 .suggestion-body {
278   color: #777;
279 }
280
281 .error-code {
282   color: #A0A0A0;
283   margin-top: 15px;
284 }
285
286 /* Increase line height at higher resolutions. */
287 @media (min-width: 641px) and (min-height: 641px) {
288   #help-box-inner {
289     line-height: 18px;
290   }
291 }
292
293 /* Decrease padding at low sizes. */
294 @media (max-width: 640px), (max-height: 640px) {
295   body {
296     margin: 15px;
297   }
298   h1 {
299     margin: 10px 0 15px;
300   }
301   #content-top {
302     margin: 15px;
303   }
304   #help-box-inner {
305     padding: 20px;
306   }
307   .suggestions {
308     margin-top: 10px;
309   }
310   .suggestion-header {
311     margin-bottom: 0;
312   }
313   .error-code {
314     margin-top: 10px;
315   }
316 }
317
318 /* Don't allow overflow when in a subframe. */
319 html[subframe] body {
320   overflow: hidden;
321 }
322
323 #sub-frame-error {
324   -webkit-align-items: center;
325   background-color: #DDD;
326   display: -webkit-flex;
327   -webkit-flex-flow: column;
328   height: 100%;
329   -webkit-justify-content: center;
330   left: 0;
331   position: absolute;
332   top: 0;
333   width: 100%;
334 }
335
336 #sub-frame-error:hover {
337   background-color: #EEE;
338 }
339
340 #sub-frame-error-details {
341   margin: 0 10px;
342   visibility: hidden;
343 }
344
345 /* Show details only when hovering. */
346 #sub-frame-error:hover #sub-frame-error-details {
347   visibility: visible;
348 }
349
350 /* If the iframe is too small, always hide the error code. */
351 /* TODO(mmenke): See if overflow: no-display works better, once supported. */
352 @media (max-width: 200px), (max-height: 95px) {
353   #sub-frame-error-details {
354     display: none;
355   }
356 }
357
358 /* details-button is special; it's a <button> element that looks like a link. */
359 #details-button {
360   background-color: inherit;
361   background-image: none;
362   border: none;
363   box-shadow: none;
364   min-width: 0;
365   padding: 0;
366   text-decoration: underline;
367 }
368
369 #buttons {
370   padding-left: 20px;
371   padding-right: 20px;
372 }
373
374 /* Styles for platform dependent separation of controls and details button. */
375 .suggested-left > #control-buttons,
376 .suggested-right > #details-button  {
377   float: left;
378 }
379
380 .suggested-right > #control-buttons,
381 .suggested-left > #details-button  {
382   float: right;
383 }
384
385 #details-button.singular {
386   float: none;
387 }
388
389 #buttons::after {
390   clear: both;
391   content: '';
392   display: block;
393   width: 100%;
394 }