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

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

Issue 1116693003: Interstitial page bug fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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(
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 #error-debugging-info { 263 #error-debugging-info {
264 overflow: auto; 264 overflow: auto;
265 } 265 }
266 } 266 }
267 267
268 @media (max-height: 600px) { 268 @media (max-height: 600px) {
269 .error-code { 269 .error-code {
270 margin-top: 10px; 270 margin-top: 10px;
271 } 271 }
272
273 .interstitial-wrapper {
274 margin-top: 13%;
275 }
276 } 272 }
277 273
278 @media (max-width: 420px) { 274 @media (max-width: 420px) {
279 button, 275 button,
280 [dir='rtl'] button, 276 [dir='rtl'] button,
281 .small-link { 277 .small-link {
282 float: none; 278 float: none;
283 font-size: .825em; 279 font-size: .825em;
284 font-weight: 400; 280 font-weight: 400;
285 margin: 0; 281 margin: 0;
(...skipping 28 matching lines...) Expand all
314 margin-top: 30px; 310 margin-top: 30px;
315 } 311 }
316 } 312 }
317 313
318 /** 314 /**
319 * Mobile specific styling. 315 * Mobile specific styling.
320 * Navigation buttons are anchored to the bottom of the screen. 316 * Navigation buttons are anchored to the bottom of the screen.
321 * Details message replaces the top content in its own scrollable area. 317 * Details message replaces the top content in its own scrollable area.
322 */ 318 */
323 319
324 @media (max-width: 420px) and (orientation: portrait) { 320 @media (max-width: 420px) and (max-height: 736px) and (orientation: portrait) {
325 #details-button { 321 #details-button {
326 border: 0; 322 border: 0;
327 margin: 8px 0 0; 323 margin: 8px 0 0;
328 } 324 }
329 325
330 .secondary-button { 326 .secondary-button {
331 -webkit-margin-end: 0; 327 -webkit-margin-end: 0;
332 margin-top: 16px; 328 margin-top: 16px;
333 } 329 }
334 } 330 }
335 331
336 /* Fixed nav. */ 332 /* Fixed nav. */
337 @media (min-width: 240px) and (max-width: 420px) and 333 @media (min-width: 240px) and (max-width: 420px) and
338 (min-height: 401px) and (orientation:portrait), 334 (min-height: 401px) and (max-height: 736px) and (orientation:portrait),
339 (min-width: 421px) and (max-width: 736px) and (min-height: 240px) and 335 (min-width: 421px) and (max-width: 736px) and (min-height: 240px) and
340 (max-height: 420px) and (orientation:landscape) { 336 (max-height: 420px) and (orientation:landscape) {
341 body .nav-wrapper { 337 body .nav-wrapper {
342 background: #f7f7f7; 338 background: #f7f7f7;
343 bottom: 0; 339 bottom: 0;
344 box-shadow: 0 -22px 40px rgb(247, 247, 247); 340 box-shadow: 0 -22px 40px rgb(247, 247, 247);
345 left: 0; 341 left: 0;
346 margin: 0; 342 margin: 0;
347 max-width: 736px; 343 max-width: 736px;
344 padding-left: 24px;
345 padding-right: 24px;
348 position: fixed; 346 position: fixed;
349 z-index: 1; 347 z-index: 1;
350 } 348 }
351 349
352 body.safe-browsing .nav-wrapper { 350 body.safe-browsing .nav-wrapper {
353 background: rgb(206, 52, 38); 351 background: rgb(206, 52, 38);
354 box-shadow: 0 -22px 40px rgb(206, 52, 38); 352 box-shadow: 0 -22px 40px rgb(206, 52, 38);
355 } 353 }
356 354
357 .interstitial-wrapper { 355 .interstitial-wrapper {
358 max-width: 736px; 356 max-width: 736px;
359 } 357 }
360 358
361 #details, 359 #details,
362 #main-content { 360 #main-content {
363 padding-bottom: 30px; 361 padding-bottom: 40px;
364 } 362 }
365 } 363 }
366 364
367 @media (max-width: 420px) and (orientation: portrait), 365 @media (max-width: 420px) and (max-height: 736px) and (orientation: portrait),
368 (max-width: 736px) and (max-height: 420px) and (orientation: landscape) { 366 (max-width: 736px) and (max-height: 420px) and (orientation: landscape) {
369 body { 367 body {
370 margin: 0 auto; 368 margin: 0 auto;
371 } 369 }
372 370
373 button, 371 button,
374 [dir='rtl'] button, 372 [dir='rtl'] button,
375 button.small-link { 373 button.small-link {
376 font-family: Roboto-Regular,Helvetica; 374 font-family: Roboto-Regular,Helvetica;
377 font-size: .933em; 375 font-size: .933em;
378 font-weight: 600; 376 font-weight: 600;
379 margin: 6px 0; 377 margin: 6px 0;
380 text-transform: uppercase; 378 text-transform: uppercase;
381 } 379 }
382 380
383 .nav-wrapper { 381 .nav-wrapper {
384 box-sizing: border-box; 382 box-sizing: border-box;
385 padding: 16px 24px 8px; 383 padding-bottom: 8px;
386 width: 100%; 384 width: 100%;
387 } 385 }
388 386
389 .error-code { 387 .error-code {
390 margin-top: 0; 388 margin-top: 0;
391 } 389 }
392 390
393 #details { 391 #details {
394 box-sizing: border-box; 392 box-sizing: border-box;
395 height: auto; 393 height: auto;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 margin-bottom: 145px; 452 margin-bottom: 145px;
455 } 453 }
456 } 454 }
457 455
458 @media (min-height: 299px) and (orientation:portrait) { 456 @media (min-height: 299px) and (orientation:portrait) {
459 .nav-wrapper { 457 .nav-wrapper {
460 padding-bottom: 16px; 458 padding-bottom: 16px;
461 } 459 }
462 } 460 }
463 461
464 @media (min-height: 405px) and (orientation:portrait) { 462 @media (min-height: 405px) and (max-height: 736px) and
463 (max-width: 420px) and (orientation:portrait) {
465 .icon { 464 .icon {
466 margin-bottom: 24px; 465 margin-bottom: 24px;
467 } 466 }
468 467
469 .interstitial-wrapper { 468 .interstitial-wrapper {
470 margin-top: 64px; 469 margin-top: 64px;
471 } 470 }
472 } 471 }
473 472
474 @media (min-height: 480px) and (max-width: 420px) and (orientation: portrait), 473 @media (min-height: 480px) and (max-width: 420px) and
474 (max-height: 736px) and (orientation: portrait),
475 (min-height: 338px) and (max-height: 420px) and (max-width: 736px) and 475 (min-height: 338px) and (max-height: 420px) and (max-width: 736px) and
476 (orientation: landscape) { 476 (orientation: landscape) {
477 .icon { 477 .icon {
478 margin-bottom: 24px; 478 margin-bottom: 24px;
479 } 479 }
480 480
481 .nav-wrapper { 481 .nav-wrapper {
482 padding: 16px 24px 24px; 482 padding-bottom: 24px;
483 } 483 }
484 } 484 }
485 485
486 @media (min-height: 500px) and (max-width: 414px) and (orientation: portrait) { 486 @media (min-height: 500px) and (max-width: 414px) and (orientation: portrait) {
487 :not(.extended-reporting-has-checkbox) .interstitial-wrapper { 487 :not(.extended-reporting-has-checkbox) .interstitial-wrapper {
488 margin-top: 96px; 488 margin-top: 96px;
489 } 489 }
490 } 490 }
491 491
492 /* Phablet sizing */ 492 /* Phablet sizing */
493 @media (min-width: 375px) and (min-height: 641px) and 493 @media (min-width: 375px) and (min-height: 641px) and (max-height: 736px) and
494 (max-width: 414px) and (orientation: portrait) { 494 (max-width: 414px) and (orientation: portrait) {
495 button, 495 button,
496 [dir='rtl'] button, 496 [dir='rtl'] button,
497 .small-link { 497 .small-link {
498 font-size: 1em; 498 font-size: 1em;
499 padding-bottom: 12px; 499 padding-bottom: 12px;
500 padding-top: 12px; 500 padding-top: 12px;
501 } 501 }
502 502
503 body:not(.offline) .icon { 503 body:not(.offline) .icon {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 } 591 }
592 592
593 .icon { 593 .icon {
594 margin-bottom: 16px; 594 margin-bottom: 16px;
595 } 595 }
596 } 596 }
597 597
598 /* Small mobile screens. No fixed nav. */ 598 /* Small mobile screens. No fixed nav. */
599 @media (max-height: 400px) and (orientation: portrait), 599 @media (max-height: 400px) and (orientation: portrait),
600 (max-height: 239px) and (orientation: landscape), 600 (max-height: 239px) and (orientation: landscape),
601 (max-width: 419px) and (max-height: 360px) { 601 (max-width: 419px) and (max-height: 399px) {
602 .interstitial-wrapper { 602 .interstitial-wrapper {
603 display: flex; 603 display: flex;
604 flex-direction: column; 604 flex-direction: column;
605 margin-bottom: 0; 605 margin-bottom: 0;
606 } 606 }
607 607
608 #details { 608 #details {
609 flex: 1 1 auto; 609 flex: 1 1 auto;
610 order: 0; 610 order: 0;
611 } 611 }
612 612
613 #main-content { 613 #main-content {
614 flex: 1 1 auto; 614 flex: 1 1 auto;
615 order: 0; 615 order: 0;
616 } 616 }
617 617
618 .nav-wrapper { 618 .nav-wrapper {
619 flex: 0 1 auto; 619 flex: 0 1 auto;
620 margin-top: 8px; 620 margin-top: 8px;
621 order: 1; 621 order: 1;
622 padding-left: 0; 622 padding-left: 0;
623 padding-right: 0; 623 padding-right: 0;
624 position: relative; 624 position: relative;
625 width: 100%; 625 width: 100%;
626 } 626 }
627 } 627 }
628 628
629 /* Extended reporting opt-in. No fixed nav. */ 629 /* Extended reporting opt-in. No fixed nav. */
630 @media (max-height: 600px) and (orientation: portrait), 630 @media (max-height: 736px) and (orientation: portrait),
631 (max-height: 360px) and (max-width: 680px) and (orientation: landscape) { 631 (max-height: 360px) and (max-width: 680px) and (orientation: landscape) {
632 .extended-reporting-has-checkbox .interstitial-wrapper { 632 .extended-reporting-has-checkbox .interstitial-wrapper {
633 display: flex; 633 display: flex;
634 flex-direction: column; 634 flex-direction: column;
635 margin-bottom: 0; 635 margin-bottom: 0;
636 } 636 }
637 637
638 .extended-reporting-has-checkbox #details { 638 .extended-reporting-has-checkbox #details {
639 flex: 1 1 auto; 639 flex: 1 1 auto;
640 order: 0; 640 order: 0;
(...skipping 19 matching lines...) Expand all
660 width: 100%; 660 width: 100%;
661 } 661 }
662 } 662 }
663 663
664 @media (max-width: 239px) and (orientation: portrait) { 664 @media (max-width: 239px) and (orientation: portrait) {
665 .nav-wrapper { 665 .nav-wrapper {
666 padding-left: 0; 666 padding-left: 0;
667 padding-right: 0; 667 padding-right: 0;
668 } 668 }
669 } 669 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698