Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: chrome/browser/resources/security_warnings/interstitial_v2.css

Issue 865943002: Update SSL/malware/net error interstitial design (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix background colour for nav-wrapper on safe browsing state Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Copyright 2014 The Chromium Authors. All rights reserved. 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 2 Use of this source code is governed by a BSD-style license that can be
3 found in the LICENSE file. */ 3 found in the LICENSE file. */
4 4
5 a { 5 a {
6 color: #585858; 6 color: #585858;
7 } 7 }
8 8
9 .bad-clock .icon { 9 .bad-clock .icon {
10 background-image: -webkit-image-set( 10 background-image: -webkit-image-set(
11 url(images/1x/clock.png) 1x, 11 url(images/1x/clock.png) 1x,
12 url(images/2x/clock.png) 2x); 12 url(images/2x/clock.png) 2x);
13 } 13 }
14 14
15 body { 15 body {
16 background-color: #f7f7f7; 16 background-color: #f7f7f7;
17 color: #585858; 17 color: #646464;
18 } 18 }
19 19
20 body.safe-browsing { 20 body.safe-browsing {
21 background-color: rgb(206, 52, 38); 21 background-color: rgb(206, 52, 38);
22 color: white; 22 color: white;
23 } 23 }
24 24
25 button { 25 button {
26 background: rgb(76, 142, 250); 26 background: rgb(76, 142, 250);
27 border: 0; 27 border: 0;
(...skipping 15 matching lines...) Expand all
43 43
44 button:active { 44 button:active {
45 background: rgb(50, 102, 213); 45 background: rgb(50, 102, 213);
46 outline: 0; 46 outline: 0;
47 } 47 }
48 48
49 button:hover { 49 button:hover {
50 box-shadow: 0 1px 3px rgba(0, 0, 0, .50); 50 box-shadow: 0 1px 3px rgba(0, 0, 0, .50);
51 } 51 }
52 52
53 #debugging {
54 overflow: auto;
55 }
56
53 .debugging-content { 57 .debugging-content {
54 line-height: 1em; 58 line-height: 1em;
55 margin-bottom: 0; 59 margin-bottom: 0;
56 margin-top: 0; 60 margin-top: 0;
57 } 61 }
58 62
59 .debugging-title { 63 .debugging-title {
60 font-weight: bold; 64 font-weight: bold;
61 } 65 }
62 66
63 #details { 67 #details {
64 color: #696969; 68 color: #696969;
65 margin: 45px 0 50px; 69 margin: 45px 0 50px;
66 } 70 }
67 71
68 #details p:not(:first-of-type) { 72 #details p:not(:first-of-type) {
69 margin-top: 20px; 73 margin-top: 20px;
70 } 74 }
71 75
76 #details-button {
77 background: inherit;
78 border: 0;
79 float: none;
80 margin: -6px 0 0;
81 padding: 0;
82 text-decoration: underline;
83 }
84
85 #details-button:hover {
86 box-shadow: inherit;
87 }
88
72 #error-code { 89 #error-code {
73 color: black; 90 color: black;
91 font-size: .825em;
74 opacity: .35; 92 opacity: .35;
75 text-transform: uppercase; 93 text-transform: uppercase;
76 } 94 }
77 95
78 #error-debugging-info { 96 #error-debugging-info {
79 font-size: 0.8em; 97 font-size: 0.8em;
98 overflow: auto;
80 } 99 }
81 100
82 h1 { 101 h1 {
83 color: #585858; 102 color: #333;
84 font-size: 1.6em; 103 font-size: 1.6em;
85 font-weight: normal; 104 font-weight: normal;
86 line-height: 1.25em; 105 line-height: 1.25em;
87 margin-bottom: 16px; 106 margin-bottom: 16px;
88 } 107 }
89 108
90 h2 { 109 h2 {
91 font-size: 1.2em; 110 font-size: 1.2em;
92 font-weight: normal; 111 font-weight: normal;
93 } 112 }
94 113
95 .hidden { 114 .hidden {
96 display: none; 115 display: none;
97 } 116 }
98 117
99 html { 118 html {
119 -webkit-text-size-adjust: 100%;
100 font-size: 125%; 120 font-size: 125%;
101 } 121 }
102 122
103 .icon { 123 .icon {
104 background-repeat: no-repeat; 124 background-repeat: no-repeat;
105 background-size: 100%; 125 background-size: 100%;
106 height: 72px; 126 height: 72px;
107 margin: 0 0 40px; 127 margin: 0 0 40px;
108 width: 72px; 128 width: 72px;
109 } 129 }
(...skipping 30 matching lines...) Expand all
140 #opt-in-label { 160 #opt-in-label {
141 -webkit-margin-start: 32px; 161 -webkit-margin-start: 32px;
142 } 162 }
143 163
144 .safe-browsing :-webkit-any( 164 .safe-browsing :-webkit-any(
145 a, #details, #details-button, h1, h2, p, .small-link) { 165 a, #details, #details-button, h1, h2, p, .small-link) {
146 color: white; 166 color: white;
147 } 167 }
148 168
149 .safe-browsing button { 169 .safe-browsing button {
150 background-color: rgb(206, 52, 38); 170 background-color: rgba(255, 255, 255, .15);
151 border: 1px solid white;
152 } 171 }
153 172
154 .safe-browsing button:active { 173 .safe-browsing button:active {
155 background-color: rgb(206, 52, 38); 174 background-color: rgba(255, 255, 255, .25);
156 border-color: rgba(255, 255, 255, .6);
157 } 175 }
158 176
159 .safe-browsing button:hover { 177 .safe-browsing button:hover {
160 box-shadow: 0 2px 3px rgba(0, 0, 0, .5); 178 box-shadow: 0 2px 3px rgba(0, 0, 0, .5);
161 } 179 }
162 180
163 .safe-browsing .icon { 181 .safe-browsing .icon {
164 background-image: -webkit-image-set( 182 background-image: -webkit-image-set(
165 url(images/1x/stop_sign.png) 1x, 183 url(images/1x/stop_sign.png) 1x,
166 url(images/2x/stop_sign.png) 2x); 184 url(images/2x/stop_sign.png) 2x);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 padding: 0 10%; 249 padding: 0 10%;
232 } 250 }
233 } 251 }
234 252
235 @media (max-height: 600px) { 253 @media (max-height: 600px) {
236 .interstitial-wrapper { 254 .interstitial-wrapper {
237 margin-top: 13%; 255 margin-top: 13%;
238 } 256 }
239 } 257 }
240 258
241 @media (max-width: 400px) { 259 @media (max-width: 420px) {
242 button, 260 button,
243 [dir='rtl'] button { 261 [dir='rtl'] button,
262 .small-link {
244 float: none; 263 float: none;
245 font-size: 1em; 264 font-size: .825em;
265 font-weight: 400;
266 text-transform: uppercase;
246 width: 100%; 267 width: 100%;
247 } 268 }
248 269
249 #details { 270 #details {
250 margin: 20px 0 20px 0; 271 margin: 20px 0 20px 0;
251 } 272 }
252 273
253 #details p:not(:first-of-type) { 274 #details p:not(:first-of-type) {
254 margin-top: 10px; 275 margin-top: 10px;
255 } 276 }
256 277
257 #details-button { 278 #details-button {
258 display: block; 279 display: block;
259 padding-top: 14px;
260 text-align: center; 280 text-align: center;
261 width: 100%; 281 width: 100%;
262 } 282 }
263 283
264 .interstitial-wrapper { 284 .interstitial-wrapper {
265 padding: 0 5%; 285 padding: 0 5%;
266 } 286 }
267 287
268 #malware-opt-in { 288 #malware-opt-in {
269 margin-top: 24px; 289 margin-top: 24px;
270 } 290 }
271 291
272 .nav-wrapper { 292 .nav-wrapper {
273 margin-top: 30px; 293 margin-top: 30px;
274 } 294 }
275 295 }
296
297 /**
298 * Mobile specific styling.
299 * Navigation buttons are anchored to the bottom of the screen.
300 * Details message replaces the top content in it's own scrollable area.
301 */
302
303 @media (max-width: 420px) and (orientation: portrait) {
304 #details-button {
305 margin: 20px 0 0;
306 border: 0;
307 }
308 }
309
310 /* Fixed nav. */
311 @media (min-width:320px) and (max-width: 420px) and
312 (min-height: 400px) and (orientation:portrait),
313 (min-width: 421px) and (max-width: 736px) and (min-height: 240px) and
314 (max-height: 420px) and (orientation:landscape) {
315
316 body:not(.offline) .nav-wrapper {
317 background: #f7f7f7;
318 bottom: 0;
319 position: fixed;
320 }
321
322 body.safe-browsing .nav-wrapper {
323 background: rgb(206, 52, 38);
324 }
325 }
326
327 @media (max-width: 420px) and (orientation: portrait),
328 (max-width: 736px) and (max-height: 420px) and (orientation: landscape) {
329 body {
330 margin: 0 auto;
331 }
332
333 button,
334 [dir='rtl'] button,
335 button.small-link {
336 font-family: helvetica;
337 font-size: .933em;
338 font-weight: 600;
339 text-transform: uppercase;
340 }
341
342 .nav-wrapper {
343 box-sizing: border-box;
344 padding: 16px 24px 8px;
345 width: 100%;
346 }
347
348 #details {
349 box-sizing: border-box;
350 height: auto;
351 margin: 0;
352 opacity: 1;
353 transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
354 }
355
356 #details.hidden,
357 #main-content.hidden {
358 display: block;
359 height: 0;
360 opacity: 0;
361 overflow: hidden;
362 }
363
364 #details-button {
365 height: 48px;
366 }
367
368 h1 {
369 font-size: 1.5em;
370 margin-bottom: 8px;
371 }
372
373 .icon {
374 margin-bottom: 12px;
375 }
376
377 .interstitial-wrapper {
378 box-sizing: border-box;
379 margin: 24px 0 12px;
380 max-width: initial;
381 overflow: auto;
382 padding: 0 24px;
383 position: relative;
384 }
385
386 .interstitial-wrapper p {
387 font-size: .95em;
388 line-height: 1.61em;
389 margin-top: 8px;
390 }
391
392 #main-content {
393 margin: 0;
394 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1);
395 }
396
397 .small-link {
398 border: 0;
399 }
400
401 .suggested-left > #control-buttons,
402 .suggested-right > #control-buttons {
403 float: none;
404 margin: 0;
405 }
406 }
407
408 @media (min-height: 400px) and (orientation:portrait) {
409 body:not(.safe-browsing-has-checkbox):not(.offline) .interstitial-wrapper {
410 margin-bottom: 145px;
411 }
412 }
413
414 @media (min-height: 299px) and (orientation:portrait) {
415 .nav-wrapper {
416 padding-bottom: 16px;
417 }
418 }
419
420 @media (min-height: 405px) and (orientation:portrait) {
421 .icon {
422 margin-bottom: 24px;
423 }
424
425 .interstitial-wrapper {
426 margin-top: 64px;
427 }
428 }
429
430 @media (min-height: 480px) and (max-width: 420px) and (orientation: portrait),
431 (min-height: 338px) and (max-height: 420px) and (max-width: 736px) and
432 (orientation: landscape) {
433 .icon {
434 margin-bottom: 24px;
435 }
436
437 .nav-wrapper {
438 padding: 16px 24px 24px;
439 }
440 }
441
442 @media (min-height: 500px) and (max-width: 414px) and (orientation: portrait) {
443 :not(.safe-browsing-has-checkbox) .interstitial-wrapper {
444 margin-top: 96px;
445 }
446 }
447
448 /* Phablet sizing */
449 @media (min-width: 375px) and (min-height: 641px) and
450 (max-width: 414px) and (orientation: portrait) {
451 button,
452 [dir='rtl'] button,
276 .small-link { 453 .small-link {
277 font-size: 1em; 454 font-size: 1em;
278 } 455 height: 40px;
279 } 456 }
457
458 body:not(.neterror) .icon {
459 height: 80px;
460 width: 80px;
461 }
462
463 #details-button {
464 margin-top: 28px;
465 }
466
467 h1 {
468 font-size: 1.7em;
469 }
470
471 .icon {
472 margin-bottom: 28px;
473 }
474
475 .interstitial-wrapper {
476 padding: 28px;
477 }
478
479 .interstitial-wrapper p {
480 font-size: 1.05em;
481 }
482
483 .nav-wrapper {
484 padding: 28px;
485 }
486
487 .neterror .icon {
488 height: 80px;
489 width: 65.6px;
490 }
491 }
492
493 @media (min-width: 420px) and (max-width: 736px) and
494 (min-height: 240px) and (max-height: 298px) and
495 (orientation:landscape) {
496 body:not(.neterror) .icon {
497 height: 50px;
498 width: 50px;
499 }
500
501 .icon {
502 padding-top: 0;
503 }
504
505 .interstitial-wrapper {
506 margin-top: 16px;
507 }
508
509 .nav-wrapper {
510 padding: 0 24px 8px;
511 }
512 }
513
514 @media (min-width: 420px) and (max-width: 736px) and
515 (min-height: 240px) and (max-height: 420px) and
516 (orientation:landscape) {
517 #details-button {
518 margin: 0;
519 }
520
521 .interstitial-wrapper {
522 margin-bottom: 70px;
523 }
524
525 .nav-wrapper {
526 margin-top: 0;
527 }
528
529 #malware-opt-in {
530 margin-top: 0;
531 }
532
533 #reload-button,
534 #primary-button {
535 margin: 6px 0;
536 }
537 }
538
539 /* Phablet landscape */
540 @media (min-width: 680px) and (max-height: 414px) {
541 .interstitial-wrapper {
542 margin: 24px auto;
543 }
544
545 .nav-wrapper {
546 margin: 0 auto;
547 }
548 }
549
550 @media (max-height: 404px) {
551 button {
552 margin-top: 0;
553 }
554
555 #details-button {
556 height: 32px;
557 margin: 8px 0;
558 }
559 }
560
561 @media (max-height: 240px) and (orientation: landscape),
562 (max-height: 480px) and (orientation: portrait),
563 (max-width: 419px) and (max-height: 323px) {
564 body:not(.neterror) .icon {
565 height: 56px;
566 width: 56px;
567 }
568
569 .icon {
570 margin-bottom: 16px;
571 }
572 }
573
574 /* Small mobile screens. No fixed nav. */
575 @media (max-height: 400px) and (orientation: portrait),
576 (max-height: 240px) and (orientation: landscape) {
577 .interstitial-wrapper {
578 margin-bottom: 0;
579 }
580
581 .nav-wrapper {
582 margin-top: 0;
583 position: relative;
584 }
585 }
586
587 /* Malware opt-in. No fixed nav. */
588 @media (max-height: 600px) and (orientation: portrait),
589 (max-height: 360px) and (orientation: landscape) {
590 .safe-browsing-has-checkbox .interstitial-wrapper {
591 margin-bottom: 0;
592 }
593
594 .safe-browsing-has-checkbox #malware-opt-in {
595 margin-bottom: 8px;
596 }
597
598 body.safe-browsing-has-checkbox .nav-wrapper {
599 margin-top: 0;
600 position: relative;
601 }
602 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698