OLD | NEW |
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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 margin-top: 30px; | 324 margin-top: 30px; |
325 } | 325 } |
326 } | 326 } |
327 | 327 |
328 /** | 328 /** |
329 * Mobile specific styling. | 329 * Mobile specific styling. |
330 * Navigation buttons are anchored to the bottom of the screen. | 330 * Navigation buttons are anchored to the bottom of the screen. |
331 * Details message replaces the top content in its own scrollable area. | 331 * Details message replaces the top content in its own scrollable area. |
332 */ | 332 */ |
333 | 333 |
334 @media (max-width: 420px) and (max-height: 736px) and (orientation: portrait) { | 334 @media (max-width: 420px) { |
335 #details-button { | 335 #details-button { |
336 border: 0; | 336 border: 0; |
337 margin: 8px 0 0; | 337 margin: 28px 0 0; |
338 } | 338 } |
339 | 339 |
340 .secondary-button { | 340 .secondary-button { |
341 -webkit-margin-end: 0; | 341 -webkit-margin-end: 0; |
342 margin-top: 16px; | 342 margin-top: 16px; |
343 } | 343 } |
344 } | 344 } |
345 | 345 |
346 /* Fixed nav. */ | 346 /* Fixed nav. */ |
347 @media (min-width: 240px) and (max-width: 420px) and | 347 @media (min-width: 240px) and (max-width: 420px) and |
348 (min-height: 401px) and (max-height: 736px) and (orientation:portrait), | 348 (min-height: 401px), |
349 (min-width: 421px) and (max-width: 736px) and (min-height: 240px) and | 349 (min-width: 421px) and (min-height: 240px) and |
350 (max-height: 420px) and (orientation:landscape) { | 350 (max-height: 736px) { |
351 body .nav-wrapper { | 351 body .nav-wrapper { |
352 background: #f7f7f7; | 352 background: #f7f7f7; |
353 bottom: 0; | 353 bottom: 0; |
354 box-shadow: 0 -22px 40px rgb(247, 247, 247); | 354 box-shadow: 0 -22px 40px rgb(247, 247, 247); |
355 left: 0; | |
356 margin: 0; | 355 margin: 0; |
357 max-width: 736px; | 356 max-width: 736px; |
358 padding-left: 24px; | 357 padding-left: 0px; |
359 padding-right: 24px; | 358 padding-right: 48px; |
360 position: fixed; | 359 position: fixed; |
361 z-index: 2; | 360 z-index: 2; |
362 } | 361 } |
363 | 362 |
364 body.safe-browsing .nav-wrapper { | 363 body.safe-browsing .nav-wrapper { |
365 background: rgb(206, 52, 38); | 364 background: rgb(206, 52, 38); |
366 box-shadow: 0 -22px 40px rgb(206, 52, 38); | 365 box-shadow: 0 -22px 40px rgb(206, 52, 38); |
367 } | 366 } |
368 | 367 |
369 .interstitial-wrapper { | 368 .interstitial-wrapper { |
370 max-width: 736px; | 369 max-width: 736px; |
371 } | 370 } |
372 | 371 |
373 #details, | 372 #details, |
374 #main-content { | 373 #main-content { |
375 padding-bottom: 40px; | 374 padding-bottom: 40px; |
376 } | 375 } |
| 376 |
| 377 #details { |
| 378 padding-top: 5.5vh; |
| 379 } |
377 } | 380 } |
378 | 381 |
379 @media (max-width: 420px) and (max-height: 736px) and (orientation: portrait), | 382 @media (max-width: 420px) and (orientation: portrait), |
380 (max-width: 736px) and (max-height: 420px) and (orientation: landscape) { | 383 (max-height: 736px) { |
381 body { | 384 body { |
382 margin: 0 auto; | 385 margin: 0 auto; |
383 } | 386 } |
384 | 387 |
385 button, | 388 button, |
386 [dir='rtl'] button, | 389 [dir='rtl'] button, |
387 button.small-link { | 390 button.small-link { |
388 font-family: Roboto-Regular,Helvetica; | 391 font-family: Roboto-Regular,Helvetica; |
389 font-size: .933em; | 392 font-size: .933em; |
390 font-weight: 600; | 393 font-weight: 600; |
(...skipping 19 matching lines...) Expand all Loading... |
410 opacity: 1; | 413 opacity: 1; |
411 transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1); | 414 transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1); |
412 } | 415 } |
413 | 416 |
414 #details.hidden, | 417 #details.hidden, |
415 #main-content.hidden { | 418 #main-content.hidden { |
416 display: block; | 419 display: block; |
417 height: 0; | 420 height: 0; |
418 opacity: 0; | 421 opacity: 0; |
419 overflow: hidden; | 422 overflow: hidden; |
| 423 padding-bottom: 0; |
420 transition: none; | 424 transition: none; |
421 } | 425 } |
422 | 426 |
423 #details-button { | 427 #details-button { |
424 padding-bottom: 16px; | 428 padding-bottom: 16px; |
425 padding-top: 16px; | 429 padding-top: 16px; |
426 } | 430 } |
427 | 431 |
428 h1 { | 432 h1 { |
429 font-size: 1.5em; | 433 font-size: 1.5em; |
430 margin-bottom: 8px; | 434 margin-bottom: 8px; |
431 } | 435 } |
432 | 436 |
433 .icon { | 437 .icon { |
434 margin-bottom: 12px; | 438 margin-bottom: 5.69vh; |
435 } | 439 } |
436 | 440 |
437 .interstitial-wrapper { | 441 .interstitial-wrapper { |
438 box-sizing: border-box; | 442 box-sizing: border-box; |
439 margin: 24px auto 12px; | 443 margin: 7vh auto 12px; |
440 padding: 0 24px; | 444 padding: 0 24px; |
441 position: relative; | 445 position: relative; |
442 } | 446 } |
443 | 447 |
444 .interstitial-wrapper p { | 448 .interstitial-wrapper p { |
445 font-size: .95em; | 449 font-size: .95em; |
446 line-height: 1.61em; | 450 line-height: 1.61em; |
447 margin-top: 8px; | 451 margin-top: 8px; |
448 } | 452 } |
449 | 453 |
450 #main-content { | 454 #main-content { |
451 margin: 0; | 455 margin: 0; |
452 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1); | 456 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1); |
453 } | 457 } |
454 | 458 |
455 .small-link { | 459 .small-link { |
456 border: 0; | 460 border: 0; |
457 } | 461 } |
458 | 462 |
459 .suggested-left > #control-buttons, | 463 .suggested-left > #control-buttons, |
460 .suggested-right > #control-buttons { | 464 .suggested-right > #control-buttons { |
461 float: none; | 465 float: none; |
462 margin: 0; | 466 margin: 0; |
463 } | 467 } |
464 } | 468 } |
465 | 469 |
| 470 @media (min-width: 421px) and (min-height: 500px) and (max-height: 736px) { |
| 471 .interstitial-wrapper { |
| 472 margin-top: 10vh; |
| 473 } |
| 474 } |
| 475 |
466 @media (min-height: 400px) and (orientation:portrait) { | 476 @media (min-height: 400px) and (orientation:portrait) { |
467 .interstitial-wrapper { | 477 .interstitial-wrapper { |
468 margin-bottom: 145px; | 478 margin-bottom: 145px; |
469 } | 479 } |
470 } | 480 } |
471 | 481 |
472 @media (min-height: 299px) and (orientation:portrait) { | 482 @media (min-height: 299px) { |
473 .nav-wrapper { | 483 .nav-wrapper { |
474 padding-bottom: 16px; | 484 padding-bottom: 16px; |
475 } | 485 } |
476 } | 486 } |
477 | 487 |
478 @media (min-height: 405px) and (max-height: 736px) and | 488 @media (min-height: 500px) and (max-height: 650px) and (max-width: 414px) and |
479 (max-width: 420px) and (orientation:portrait) { | 489 (orientation: portrait) { |
480 .icon { | |
481 margin-bottom: 24px; | |
482 } | |
483 | |
484 .interstitial-wrapper { | 490 .interstitial-wrapper { |
485 margin-top: 64px; | 491 margin-top: 7vh; |
486 } | 492 } |
487 } | 493 } |
488 | 494 |
489 @media (min-height: 480px) and (max-width: 420px) and | 495 @media (min-height: 650px) and (max-width: 414px) and (orientation: portrait) { |
490 (max-height: 736px) and (orientation: portrait), | 496 .interstitial-wrapper { |
491 (min-height: 338px) and (max-height: 420px) and (max-width: 736px) and | 497 margin-top: 10vh; |
492 (orientation: landscape) { | |
493 .icon { | |
494 margin-bottom: 24px; | |
495 } | |
496 | |
497 .nav-wrapper { | |
498 padding-bottom: 24px; | |
499 } | 498 } |
500 } | 499 } |
501 | 500 |
502 @media (min-height: 500px) and (max-width: 414px) and (orientation: portrait) { | |
503 .interstitial-wrapper { | |
504 margin-top: 96px; | |
505 } | |
506 } | |
507 | |
508 /* Phablet sizing */ | |
509 @media (min-width: 375px) and (min-height: 641px) and (max-height: 736px) and | |
510 (max-width: 414px) and (orientation: portrait) { | |
511 button, | |
512 [dir='rtl'] button, | |
513 .small-link { | |
514 font-size: 1em; | |
515 padding-bottom: 12px; | |
516 padding-top: 12px; | |
517 } | |
518 | |
519 body:not(.offline) .icon { | |
520 height: 80px; | |
521 width: 80px; | |
522 } | |
523 | |
524 #details-button { | |
525 margin-top: 28px; | |
526 } | |
527 | |
528 h1 { | |
529 font-size: 1.7em; | |
530 } | |
531 | |
532 .icon { | |
533 margin-bottom: 28px; | |
534 } | |
535 | |
536 .interstitial-wrapper { | |
537 padding: 28px; | |
538 } | |
539 | |
540 .interstitial-wrapper p { | |
541 font-size: 1.05em; | |
542 } | |
543 | |
544 .nav-wrapper { | |
545 padding: 28px; | |
546 } | |
547 } | |
548 | |
549 @media (min-width: 420px) and (max-width: 736px) and | |
550 (min-height: 240px) and (max-height: 298px) and | |
551 (orientation:landscape) { | |
552 body:not(.offline) .icon { | |
553 height: 50px; | |
554 width: 50px; | |
555 } | |
556 | |
557 .icon { | |
558 padding-top: 0; | |
559 } | |
560 | |
561 .interstitial-wrapper { | |
562 margin-top: 16px; | |
563 } | |
564 | |
565 .nav-wrapper { | |
566 padding: 0 24px 8px; | |
567 } | |
568 } | |
569 | |
570 @media (min-width: 420px) and (max-width: 736px) and | |
571 (min-height: 240px) and (max-height: 420px) and | |
572 (orientation:landscape) { | |
573 #details-button { | |
574 margin: 0; | |
575 } | |
576 | |
577 .interstitial-wrapper { | |
578 margin-bottom: 70px; | |
579 } | |
580 | |
581 .nav-wrapper { | |
582 margin-top: 0; | |
583 } | |
584 | |
585 #extended-reporting-opt-in { | |
586 margin-top: 0; | |
587 } | |
588 } | |
589 | |
590 /* Phablet landscape */ | |
591 @media (min-width: 680px) and (max-height: 414px) { | |
592 .interstitial-wrapper { | |
593 margin: 24px auto; | |
594 } | |
595 | |
596 .nav-wrapper { | |
597 margin: 16px auto 0; | |
598 } | |
599 } | |
600 | |
601 @media (max-height: 240px) and (orientation: landscape), | |
602 (max-height: 480px) and (orientation: portrait), | |
603 (max-width: 419px) and (max-height: 323px) { | |
604 body:not(.offline) .icon { | |
605 height: 56px; | |
606 width: 56px; | |
607 } | |
608 | |
609 .icon { | |
610 margin-bottom: 16px; | |
611 } | |
612 } | |
613 | |
614 /* Small mobile screens. No fixed nav. */ | 501 /* Small mobile screens. No fixed nav. */ |
615 @media (max-height: 400px) and (orientation: portrait), | 502 @media (max-height: 400px) and (orientation: portrait), |
616 (max-height: 239px) and (orientation: landscape), | 503 (max-height: 239px) and (orientation: landscape), |
617 (max-width: 419px) and (max-height: 399px) { | 504 (max-width: 419px) and (max-height: 399px) { |
618 .interstitial-wrapper { | 505 .interstitial-wrapper { |
619 display: flex; | 506 display: flex; |
620 flex-direction: column; | 507 flex-direction: column; |
621 margin-bottom: 0; | 508 margin-bottom: 0; |
622 } | 509 } |
623 | 510 |
(...skipping 17 matching lines...) Expand all Loading... |
641 width: 100%; | 528 width: 100%; |
642 } | 529 } |
643 } | 530 } |
644 | 531 |
645 @media (max-width: 239px) and (orientation: portrait) { | 532 @media (max-width: 239px) and (orientation: portrait) { |
646 .nav-wrapper { | 533 .nav-wrapper { |
647 padding-left: 0; | 534 padding-left: 0; |
648 padding-right: 0; | 535 padding-right: 0; |
649 } | 536 } |
650 } | 537 } |
OLD | NEW |