[Presentation API, Android] Implement basic messaging
[chromium-blink-merge.git] / chrome / browser / resources / security_warnings / interstitial_v2.css
blob0f1846565a439083cb0fcaafea654bceee67f812
1 /* Copyright 2014 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 a {
6 color: #585858;
9 .bad-clock .icon {
10 background-image: -webkit-image-set(
11 url(images/1x/clock.png) 1x,
12 url(images/2x/clock.png) 2x);
15 body {
16 background-color: #f7f7f7;
17 color: #646464;
20 body.safe-browsing {
21 background-color: rgb(206, 52, 38);
22 color: white;
25 button {
26 -webkit-user-select: none;
27 background: rgb(76, 142, 250);
28 border: 0;
29 border-radius: 2px;
30 box-sizing: border-box;
31 color: #fff;
32 cursor: pointer;
33 float: right;
34 font-size: .875em;
35 margin: 0;
36 padding: 10px 24px;
37 transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
40 [dir='rtl'] button {
41 float: left;
44 button:active {
45 background: rgb(50, 102, 213);
46 outline: 0;
49 button:hover {
50 box-shadow: 0 1px 3px rgba(0, 0, 0, .50);
53 #debugging {
54 display: inline;
55 overflow: auto;
58 .debugging-content {
59 line-height: 1em;
60 margin-bottom: 0;
61 margin-top: 1em;
64 .debugging-title {
65 font-weight: bold;
68 #details {
69 color: #696969;
70 margin: 45px 0 50px;
73 #details p:not(:first-of-type) {
74 margin-top: 20px;
77 #details-button {
78 background: inherit;
79 border: 0;
80 float: none;
81 margin: 0;
82 padding: 10px 0;
83 text-decoration: underline;
86 #details-button:hover {
87 box-shadow: inherit;
90 .error-code {
91 color: #777;
92 display: inline;
93 font-size: .86667em;
94 margin-top: 15px;
95 opacity: .5;
96 text-transform: uppercase;
99 #error-debugging-info {
100 font-size: 0.8em;
103 h1 {
104 color: #333;
105 font-size: 1.6em;
106 font-weight: normal;
107 line-height: 1.25em;
108 margin-bottom: 16px;
111 h2 {
112 font-size: 1.2em;
113 font-weight: normal;
116 .hidden {
117 display: none;
120 html {
121 -webkit-text-size-adjust: 100%;
122 font-size: 125%;
125 .icon {
126 background-repeat: no-repeat;
127 background-size: 100%;
128 height: 72px;
129 margin: 0 0 40px;
130 width: 72px;
133 input[type=checkbox] {
134 opacity: 0;
137 input[type=checkbox]:focus ~ .checkbox {
138 outline: -webkit-focus-ring-color auto 5px;
141 .interstitial-wrapper {
142 box-sizing: border-box;
143 font-size: 1em;
144 line-height: 1.6em;
145 margin: 100px auto 0;
146 max-width: 600px;
147 width: 100%;
150 #main-message > p {
151 display: inline;
154 #extended-reporting-opt-in {
155 font-size: .875em;
156 margin-top: 39px;
159 #extended-reporting-opt-in label {
160 position: relative;
163 .nav-wrapper {
164 margin-top: 51px;
167 .nav-wrapper::after {
168 clear: both;
169 content: '';
170 display: table;
171 width: 100%;
174 .safe-browsing :-webkit-any(
175 a, #details, #details-button, h1, h2, p, .small-link) {
176 color: white;
179 .safe-browsing button {
180 background-color: rgba(255, 255, 255, .15);
183 .safe-browsing button:active {
184 background-color: rgba(255, 255, 255, .25);
187 .safe-browsing button:hover {
188 box-shadow: 0 2px 3px rgba(0, 0, 0, .5);
191 .safe-browsing .error-code {
192 display: none;
195 .safe-browsing .icon {
196 background-image: -webkit-image-set(
197 url(images/1x/stop_sign.png) 1x,
198 url(images/2x/stop_sign.png) 2x);
201 .small-link {
202 color: #696969;
203 font-size: .875em;
206 .ssl .icon {
207 background-image: -webkit-image-set(
208 url(images/1x/brokenssl_red.png) 1x,
209 url(images/2x/brokenssl_red.png) 2x);
212 .captive-portal .icon {
213 background-image: -webkit-image-set(
214 url(images/1x/captive_portal_page_icon.png) 1x,
215 url(images/2x/captive_portal_page_icon.png) 2x);
218 .checkbox {
219 background: transparent;
220 border: 1px solid white;
221 border-radius: 2px;
222 display: block;
223 height: 14px;
224 left: 0;
225 position: absolute;
226 right: 0;
227 top: -1px;
228 width: 14px;
231 .checkbox::before {
232 background: transparent;
233 border: 2px solid white;
234 border-right-width: 0;
235 border-top-width: 0;
236 content: '';
237 height: 4px;
238 left: 2px;
239 opacity: 0;
240 position: absolute;
241 top: 3px;
242 transform: rotate(-45deg);
243 width: 9px;
246 .ssl-opt-in .checkbox {
247 border-color: #696969;
250 .ssl-opt-in .checkbox::before {
251 border-color: #696969;
254 input[type=checkbox]:checked ~ .checkbox::before {
255 opacity: 1;
258 @media (max-width: 700px) {
259 .interstitial-wrapper {
260 padding: 0 10%;
263 #error-debugging-info {
264 overflow: auto;
268 @media (max-height: 600px) {
269 .error-code {
270 margin-top: 10px;
274 @media (max-width: 420px) {
275 button,
276 [dir='rtl'] button,
277 .small-link {
278 float: none;
279 font-size: .825em;
280 font-weight: 400;
281 margin: 0;
282 text-transform: uppercase;
283 width: 100%;
286 #details {
287 margin: 20px 0 20px 0;
290 #details p:not(:first-of-type) {
291 margin-top: 10px;
294 #details-button {
295 display: block;
296 margin-top: 20px;
297 text-align: center;
298 width: 100%;
301 .interstitial-wrapper {
302 padding: 0 5%;
305 #extended-reporting-opt-in {
306 margin-top: 24px;
309 .nav-wrapper {
310 margin-top: 30px;
315 * Mobile specific styling.
316 * Navigation buttons are anchored to the bottom of the screen.
317 * Details message replaces the top content in its own scrollable area.
320 @media (max-width: 420px) and (max-height: 736px) and (orientation: portrait) {
321 #details-button {
322 border: 0;
323 margin: 8px 0 0;
326 .secondary-button {
327 -webkit-margin-end: 0;
328 margin-top: 16px;
332 /* Fixed nav. */
333 @media (min-width: 240px) and (max-width: 420px) and
334 (min-height: 401px) and (max-height: 736px) and (orientation:portrait),
335 (min-width: 421px) and (max-width: 736px) and (min-height: 240px) and
336 (max-height: 420px) and (orientation:landscape) {
337 body .nav-wrapper {
338 background: #f7f7f7;
339 bottom: 0;
340 box-shadow: 0 -22px 40px rgb(247, 247, 247);
341 left: 0;
342 margin: 0;
343 max-width: 736px;
344 padding-left: 24px;
345 padding-right: 24px;
346 position: fixed;
347 z-index: 1;
350 body.safe-browsing .nav-wrapper {
351 background: rgb(206, 52, 38);
352 box-shadow: 0 -22px 40px rgb(206, 52, 38);
355 .interstitial-wrapper {
356 max-width: 736px;
359 #details,
360 #main-content {
361 padding-bottom: 40px;
365 @media (max-width: 420px) and (max-height: 736px) and (orientation: portrait),
366 (max-width: 736px) and (max-height: 420px) and (orientation: landscape) {
367 body {
368 margin: 0 auto;
371 button,
372 [dir='rtl'] button,
373 button.small-link {
374 font-family: Roboto-Regular,Helvetica;
375 font-size: .933em;
376 font-weight: 600;
377 margin: 6px 0;
378 text-transform: uppercase;
381 .nav-wrapper {
382 box-sizing: border-box;
383 padding-bottom: 8px;
384 width: 100%;
387 .error-code {
388 margin-top: 0;
391 #details {
392 box-sizing: border-box;
393 height: auto;
394 margin: 0;
395 opacity: 1;
396 transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
399 #details.hidden,
400 #main-content.hidden {
401 display: block;
402 height: 0;
403 opacity: 0;
404 overflow: hidden;
405 transition: none;
408 #details-button {
409 padding-bottom: 16px;
410 padding-top: 16px;
413 h1 {
414 font-size: 1.5em;
415 margin-bottom: 8px;
418 .icon {
419 margin-bottom: 12px;
422 .interstitial-wrapper {
423 box-sizing: border-box;
424 margin: 24px auto 12px;
425 padding: 0 24px;
426 position: relative;
429 .interstitial-wrapper p {
430 font-size: .95em;
431 line-height: 1.61em;
432 margin-top: 8px;
435 #main-content {
436 margin: 0;
437 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1);
440 .small-link {
441 border: 0;
444 .suggested-left > #control-buttons,
445 .suggested-right > #control-buttons {
446 float: none;
447 margin: 0;
451 @media (min-height: 400px) and (orientation:portrait) {
452 .interstitial-wrapper {
453 margin-bottom: 145px;
457 @media (min-height: 299px) and (orientation:portrait) {
458 .nav-wrapper {
459 padding-bottom: 16px;
463 @media (min-height: 405px) and (max-height: 736px) and
464 (max-width: 420px) and (orientation:portrait) {
465 .icon {
466 margin-bottom: 24px;
469 .interstitial-wrapper {
470 margin-top: 64px;
474 @media (min-height: 480px) and (max-width: 420px) and
475 (max-height: 736px) and (orientation: portrait),
476 (min-height: 338px) and (max-height: 420px) and (max-width: 736px) and
477 (orientation: landscape) {
478 .icon {
479 margin-bottom: 24px;
482 .nav-wrapper {
483 padding-bottom: 24px;
487 @media (min-height: 500px) and (max-width: 414px) and (orientation: portrait) {
488 .interstitial-wrapper {
489 margin-top: 96px;
493 /* Phablet sizing */
494 @media (min-width: 375px) and (min-height: 641px) and (max-height: 736px) and
495 (max-width: 414px) and (orientation: portrait) {
496 button,
497 [dir='rtl'] button,
498 .small-link {
499 font-size: 1em;
500 padding-bottom: 12px;
501 padding-top: 12px;
504 body:not(.offline) .icon {
505 height: 80px;
506 width: 80px;
509 #details-button {
510 margin-top: 28px;
513 h1 {
514 font-size: 1.7em;
517 .icon {
518 margin-bottom: 28px;
521 .interstitial-wrapper {
522 padding: 28px;
525 .interstitial-wrapper p {
526 font-size: 1.05em;
529 .nav-wrapper {
530 padding: 28px;
534 @media (min-width: 420px) and (max-width: 736px) and
535 (min-height: 240px) and (max-height: 298px) and
536 (orientation:landscape) {
537 body:not(.offline) .icon {
538 height: 50px;
539 width: 50px;
542 .icon {
543 padding-top: 0;
546 .interstitial-wrapper {
547 margin-top: 16px;
550 .nav-wrapper {
551 padding: 0 24px 8px;
555 @media (min-width: 420px) and (max-width: 736px) and
556 (min-height: 240px) and (max-height: 420px) and
557 (orientation:landscape) {
558 #details-button {
559 margin: 0;
562 .interstitial-wrapper {
563 margin-bottom: 70px;
566 .nav-wrapper {
567 margin-top: 0;
570 #extended-reporting-opt-in {
571 margin-top: 0;
575 /* Phablet landscape */
576 @media (min-width: 680px) and (max-height: 414px) {
577 .interstitial-wrapper {
578 margin: 24px auto;
581 .nav-wrapper {
582 margin: 16px auto 0;
586 @media (max-height: 240px) and (orientation: landscape),
587 (max-height: 480px) and (orientation: portrait),
588 (max-width: 419px) and (max-height: 323px) {
589 body:not(.offline) .icon {
590 height: 56px;
591 width: 56px;
594 .icon {
595 margin-bottom: 16px;
599 /* Small mobile screens. No fixed nav. */
600 @media (max-height: 400px) and (orientation: portrait),
601 (max-height: 239px) and (orientation: landscape),
602 (max-width: 419px) and (max-height: 399px) {
603 .interstitial-wrapper {
604 display: flex;
605 flex-direction: column;
606 margin-bottom: 0;
609 #details {
610 flex: 1 1 auto;
611 order: 0;
614 #main-content {
615 flex: 1 1 auto;
616 order: 0;
619 .nav-wrapper {
620 flex: 0 1 auto;
621 margin-top: 8px;
622 order: 1;
623 padding-left: 0;
624 padding-right: 0;
625 position: relative;
626 width: 100%;
630 @media (max-width: 239px) and (orientation: portrait) {
631 .nav-wrapper {
632 padding-left: 0;
633 padding-right: 0;