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

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 hidden buttons on offline interstitial on CrOS 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%;
edwardjung 2015/01/23 12:19:40 Fixes iOS bug where font sizes don't scale correct
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 10 matching lines...) Expand all
120 max-width: 600px; 140 max-width: 600px;
121 width: 100%; 141 width: 100%;
122 } 142 }
123 143
124 #malware-opt-in { 144 #malware-opt-in {
125 font-size: .875em; 145 font-size: .875em;
126 margin-top: 39px; 146 margin-top: 39px;
127 } 147 }
128 148
129 .nav-wrapper { 149 .nav-wrapper {
150 background: #f7f7f7;
130 margin-top: 51px; 151 margin-top: 51px;
131 } 152 }
132 153
133 .nav-wrapper::after { 154 .nav-wrapper::after {
134 clear: both; 155 clear: both;
135 content: ''; 156 content: '';
136 display: table; 157 display: table;
137 width: 100%; 158 width: 100%;
138 } 159 }
139 160
140 #opt-in-label { 161 #opt-in-label {
141 -webkit-margin-start: 32px; 162 -webkit-margin-start: 32px;
142 } 163 }
143 164
144 .safe-browsing :-webkit-any( 165 .safe-browsing :-webkit-any(
145 a, #details, #details-button, h1, h2, p, .small-link) { 166 a, #details, #details-button, h1, h2, p, .small-link) {
146 color: white; 167 color: white;
147 } 168 }
148 169
149 .safe-browsing button { 170 .safe-browsing button {
150 background-color: rgb(206, 52, 38); 171 background-color: rgba(255, 255, 255, .15);
151 border: 1px solid white;
152 } 172 }
153 173
154 .safe-browsing button:active { 174 .safe-browsing button:active {
155 background-color: rgb(206, 52, 38); 175 background-color: rgba(255, 255, 255, .25);
156 border-color: rgba(255, 255, 255, .6);
157 } 176 }
158 177
159 .safe-browsing button:hover { 178 .safe-browsing button:hover {
160 box-shadow: 0 2px 3px rgba(0, 0, 0, .5); 179 box-shadow: 0 2px 3px rgba(0, 0, 0, .5);
161 } 180 }
162 181
163 .safe-browsing .icon { 182 .safe-browsing .icon {
164 background-image: -webkit-image-set( 183 background-image: -webkit-image-set(
165 url(images/1x/stop_sign.png) 1x, 184 url(images/1x/stop_sign.png) 1x,
166 url(images/2x/stop_sign.png) 2x); 185 url(images/2x/stop_sign.png) 2x);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 padding: 0 10%; 250 padding: 0 10%;
232 } 251 }
233 } 252 }
234 253
235 @media (max-height: 600px) { 254 @media (max-height: 600px) {
236 .interstitial-wrapper { 255 .interstitial-wrapper {
237 margin-top: 13%; 256 margin-top: 13%;
238 } 257 }
239 } 258 }
240 259
241 @media (max-width: 400px) { 260 @media (max-width: 420px) {
242 button, 261 button,
243 [dir='rtl'] button { 262 [dir='rtl'] button,
263 .small-link {
244 float: none; 264 float: none;
245 font-size: 1em; 265 font-size: .825em;
266 font-weight: 400;
267 text-transform: uppercase;
246 width: 100%; 268 width: 100%;
247 } 269 }
248 270
249 #details { 271 #details {
250 margin: 20px 0 20px 0; 272 margin: 20px 0 20px 0;
251 } 273 }
252 274
253 #details p:not(:first-of-type) { 275 #details p:not(:first-of-type) {
254 margin-top: 10px; 276 margin-top: 10px;
255 } 277 }
256 278
257 #details-button { 279 #details-button {
258 display: block; 280 display: block;
259 padding-top: 14px;
260 text-align: center; 281 text-align: center;
261 width: 100%; 282 width: 100%;
262 } 283 }
263 284
264 .interstitial-wrapper { 285 .interstitial-wrapper {
265 padding: 0 5%; 286 padding: 0 5%;
266 } 287 }
267 288
268 #malware-opt-in { 289 #malware-opt-in {
269 margin-top: 24px; 290 margin-top: 24px;
270 } 291 }
271 292
272 .nav-wrapper { 293 .nav-wrapper {
273 margin-top: 30px; 294 margin-top: 30px;
274 } 295 }
275 296 }
297
298 /**
299 * Mobile specific styling.
300 * Navigation buttons are anchored to the bottom of the screen.
301 * Details message replaces the top content in it's own scrollable area.
302 */
303
304 @media (max-width: 420px) and (orientation: portrait) {
305 #details-button {
306 margin: 20px 0 0;
307 border: 0;
308 }
309 }
310
311 /* Fixed nav. */
312 @media (min-width:320px) and (max-width: 420px) and
313 (min-height: 400px) and (orientation:portrait),
314 (min-width: 421px) and (max-width: 736px) and (min-height: 240px) and
315 (max-height: 420px) and (orientation:landscape) {
316
317 body:not(.offline) .nav-wrapper {
318 bottom: 0;
319 box-sizing: border-box;
320 padding: 16px 24px 8px;
321 position: fixed;
322 width: 100%;
323 }
324 }
325
326 @media (max-width: 420px) and (orientation: portrait),
327 (max-width: 736px) and (max-height: 420px) and (orientation: landscape) {
328 body {
329 margin: 0 auto;
330 }
331
332 button,
333 [dir='rtl'] button,
334 button.small-link {
335 font-family: helvetica;
336 font-size: .933em;
337 font-weight: 600;
338 text-transform: uppercase;
339 }
340
341 .nav-wrapper {
342 box-sizing: border-box;
343 padding: 16px 24px 8px;
344 width: 100%;
345 }
346
347 #details {
348 box-sizing: border-box;
349 height: auto;
350 margin: 0;
351 opacity: 1;
352 transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
353 }
354
355 #details.hidden,
356 #main-content.hidden {
357 display: block;
358 height: 0;
359 opacity: 0;
360 overflow: hidden;
361 }
362
363 #details-button {
364 height: 48px;
365 }
366
367 h1 {
368 font-size: 1.5em;
369 margin-bottom: 8px;
370 }
371
372 .icon {
373 margin-bottom: 12px;
374 }
375
376 .interstitial-wrapper {
377 box-sizing: border-box;
378 margin: 24px 0 12px;
379 max-width: initial;
380 overflow: auto;
381 padding: 0 24px;
382 position: relative;
383 }
384
385 .interstitial-wrapper p {
386 font-size: .95em;
387 line-height: 1.61em;
388 margin-top: 8px;
389 }
390
391 #main-content {
392 background: #f7f7f7;
393 margin: 0;
394 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1);
395 }
396
397 .safe-browsing #main-content,
398 .safe-browsing .nav-wrapper {
399 background: rgb(206, 52, 38);
400 }
401
402 .small-link {
403 border: 0;
404 }
405
406 .suggested-left > #control-buttons,
407 .suggested-right > #control-buttons {
408 float: none;
409 margin: 0;
410 }
411 }
412
413 @media (min-height: 400px) and (orientation:portrait) {
414 body:not(.safe-browsing-has-checkbox):not(.offline) .interstitial-wrapper {
415 margin-bottom: 145px;
416 }
417 }
418
419 @media (min-height: 299px) and (orientation:portrait) {
420 .nav-wrapper {
421 padding-bottom: 16px;
422 }
423 }
424
425 @media (min-height: 405px) and (orientation:portrait) {
426 .icon {
427 margin-bottom: 24px;
428 }
429
430 .interstitial-wrapper {
431 margin-top: 64px;
432 }
433 }
434
435 @media (min-height: 480px) and (max-width: 420px) and (orientation: portrait),
436 (min-height: 338px) and (max-height: 420px) and (max-width: 736px) and
437 (orientation: landscape) {
438 .icon {
439 margin-bottom: 24px;
440 }
441
442 .nav-wrapper {
443 padding: 16px 24px 24px;
444 }
445 }
446
447 @media (min-height: 500px) and (max-width: 414px) and (orientation: portrait) {
448 :not(.safe-browsing-has-checkbox) .interstitial-wrapper {
449 margin-top: 96px;
450 }
451 }
452
453 /* Phablet sizing */
454 @media (min-width: 375px) and (min-height: 641px) and
455 (max-width: 414px) and (orientation: portrait) {
456 button,
457 [dir='rtl'] button,
276 .small-link { 458 .small-link {
277 font-size: 1em; 459 font-size: 1em;
278 } 460 height: 40px;
279 } 461 }
462
463 body:not(.neterror) .icon {
464 height: 80px;
465 width: 80px;
466 }
467
468 #details-button {
469 margin-top: 28px;
470 }
471
472 h1 {
473 font-size: 1.7em;
474 }
475
476 .icon {
477 margin-bottom: 28px;
478 }
479
480 .interstitial-wrapper {
481 padding: 28px;
482 }
483
484 .interstitial-wrapper p {
485 font-size: 1.05em;
486 }
487
488 .nav-wrapper {
489 padding: 28px;
490 }
491
492 .neterror .icon {
493 height: 80px;
494 width: 65.6px;
495 }
496 }
497
498 @media (min-width: 420px) and (max-width: 736px) and
499 (min-height: 240px) and (max-height: 298px) and
500 (orientation:landscape) {
501 body:not(.neterror) .icon {
502 height: 50px;
503 width: 50px;
504 }
505
506 .icon {
507 padding-top: 0;
508 }
509
510 .interstitial-wrapper {
511 margin-top: 16px;
512 }
513
514 .nav-wrapper {
515 padding: 0 24px 8px;
516 }
517 }
518
519 @media (min-width: 420px) and (max-width: 736px) and
520 (min-height: 240px) and (max-height: 420px) and
521 (orientation:landscape) {
522 #details-button {
523 margin: 0;
524 }
525
526 .interstitial-wrapper {
527 margin-bottom: 70px;
528 }
529
530 .nav-wrapper {
531 margin-top: 0;
532 }
533
534 #malware-opt-in {
535 margin-top: 0;
536 }
537
538 #reload-button,
539 #primary-button {
540 margin: 6px 0;
541 }
542 }
543
544 /* Phablet landscape */
545 @media (min-width: 680px) and (max-height: 414px) {
546 .interstitial-wrapper {
547 margin: 24px auto;
548 }
549
550 .nav-wrapper {
551 margin: 0 auto;
552 }
553 }
554
555 @media (max-height: 404px) {
556 button {
557 margin-top: 0;
558 }
559
560 #details-button {
561 height: 32px;
562 margin: 8px 0;
563 }
564 }
565
566 @media (max-height: 240px) and (orientation: landscape),
567 (max-height: 480px) and (orientation: portrait),
568 (max-width: 419px) and (max-height: 323px) {
569 body:not(.neterror) .icon {
570 height: 56px;
571 width: 56px;
572 }
573
574 .icon {
575 margin-bottom: 16px;
576 }
577 }
578
579 /* Small mobile screens. No fixed nav. */
580 @media (max-height: 400px) and (orientation: portrait),
581 (max-height: 240px) and (orientation: landscape) {
582 .interstitial-wrapper {
583 margin-bottom: 0;
584 }
585
586 .nav-wrapper {
587 margin-top: 0;
588 position: relative;
589 }
590 }
591
592 /* Malware opt-in. No fixed nav. */
593 @media (max-height: 600px) and (orientation: portrait),
594 (max-height: 360px) and (orientation: landscape) {
595 .safe-browsing-has-checkbox .interstitial-wrapper {
596 margin-bottom: 0;
597 }
598
599 .safe-browsing-has-checkbox #malware-opt-in {
600 margin-bottom: 8px;
601 }
602
603 .safe-browsing-has-checkbox .nav-wrapper {
604 margin-top: 0;
605 position: relative;
606 }
607 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/security_warnings/interstitial_v2.html » ('j') | chrome/renderer/resources/neterror.css » ('J')

Powered by Google App Engine
This is Rietveld 408576698