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) { | 334 @media (max-width: 420px) and (max-height: 736px) and (orientation: portrait) { |
335 #details-button { | 335 #details-button { |
336 border: 0; | 336 border: 0; |
337 margin: 28px 0 0; | 337 margin: 8px 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), | 348 (min-height: 401px) and (max-height: 736px) and (orientation:portrait), |
349 (min-width: 421px) and (min-height: 240px) and | 349 (min-width: 421px) and (max-width: 736px) and (min-height: 240px) and |
350 (max-height: 736px) { | 350 (max-height: 420px) and (orientation:landscape) { |
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; |
355 margin: 0; | 356 margin: 0; |
356 max-width: 736px; | 357 max-width: 736px; |
357 padding-left: 0px; | 358 padding-left: 24px; |
358 padding-right: 48px; | 359 padding-right: 24px; |
359 position: fixed; | 360 position: fixed; |
360 z-index: 2; | 361 z-index: 2; |
361 } | 362 } |
362 | 363 |
363 body.safe-browsing .nav-wrapper { | 364 body.safe-browsing .nav-wrapper { |
364 background: rgb(206, 52, 38); | 365 background: rgb(206, 52, 38); |
365 box-shadow: 0 -22px 40px rgb(206, 52, 38); | 366 box-shadow: 0 -22px 40px rgb(206, 52, 38); |
366 } | 367 } |
367 | 368 |
368 .interstitial-wrapper { | 369 .interstitial-wrapper { |
369 max-width: 736px; | 370 max-width: 736px; |
370 } | 371 } |
371 | 372 |
372 #details, | 373 #details, |
373 #main-content { | 374 #main-content { |
374 padding-bottom: 40px; | 375 padding-bottom: 40px; |
375 } | 376 } |
376 } | 377 } |
377 | 378 |
378 @media (max-width: 420px) and (orientation: portrait), | 379 @media (max-width: 420px) and (max-height: 736px) and (orientation: portrait), |
379 (max-height: 736px) { | 380 (max-width: 736px) and (max-height: 420px) and (orientation: landscape) { |
380 body { | 381 body { |
381 margin: 0 auto; | 382 margin: 0 auto; |
382 } | 383 } |
383 | 384 |
384 button, | 385 button, |
385 [dir='rtl'] button, | 386 [dir='rtl'] button, |
386 button.small-link { | 387 button.small-link { |
387 font-family: Roboto-Regular,Helvetica; | 388 font-family: Roboto-Regular,Helvetica; |
388 font-size: .933em; | 389 font-size: .933em; |
389 font-weight: 600; | 390 font-weight: 600; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 font-size: 1.5em; | 429 font-size: 1.5em; |
429 margin-bottom: 8px; | 430 margin-bottom: 8px; |
430 } | 431 } |
431 | 432 |
432 .icon { | 433 .icon { |
433 margin-bottom: 12px; | 434 margin-bottom: 12px; |
434 } | 435 } |
435 | 436 |
436 .interstitial-wrapper { | 437 .interstitial-wrapper { |
437 box-sizing: border-box; | 438 box-sizing: border-box; |
438 margin: 7vh auto 12px; | 439 margin: 24px auto 12px; |
439 padding: 0 24px; | 440 padding: 0 24px; |
440 position: relative; | 441 position: relative; |
441 } | 442 } |
442 | 443 |
443 .interstitial-wrapper p { | 444 .interstitial-wrapper p { |
444 font-size: .95em; | 445 font-size: .95em; |
445 line-height: 1.61em; | 446 line-height: 1.61em; |
446 margin-top: 8px; | 447 margin-top: 8px; |
447 } | 448 } |
448 | 449 |
449 #main-content { | 450 #main-content { |
450 margin: 0; | 451 margin: 0; |
451 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1); | 452 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1); |
452 } | 453 } |
453 | 454 |
454 .small-link { | 455 .small-link { |
455 border: 0; | 456 border: 0; |
456 } | 457 } |
457 | 458 |
458 .suggested-left > #control-buttons, | 459 .suggested-left > #control-buttons, |
459 .suggested-right > #control-buttons { | 460 .suggested-right > #control-buttons { |
460 float: none; | 461 float: none; |
461 margin: 0; | 462 margin: 0; |
462 } | 463 } |
463 } | 464 } |
464 | 465 |
465 @media (min-width: 421px) and (min-height: 500px) and (max-height: 736px) { | |
466 .interstitial-wrapper { | |
467 margin-top: 10vh; | |
468 } | |
469 } | |
470 | |
471 @media (min-height: 400px) and (orientation:portrait) { | 466 @media (min-height: 400px) and (orientation:portrait) { |
472 .interstitial-wrapper { | 467 .interstitial-wrapper { |
473 margin-bottom: 145px; | 468 margin-bottom: 145px; |
474 } | 469 } |
475 } | 470 } |
476 | 471 |
477 @media (min-height: 299px) { | 472 @media (min-height: 299px) and (orientation:portrait) { |
478 .nav-wrapper { | 473 .nav-wrapper { |
479 padding-bottom: 16px; | 474 padding-bottom: 16px; |
480 } | 475 } |
481 } | 476 } |
482 | 477 |
483 @media (min-height: 500px) and (max-height: 650px) and (max-width: 414px) and | 478 @media (min-height: 405px) and (max-height: 736px) and |
484 (orientation: portrait) { | 479 (max-width: 420px) and (orientation:portrait) { |
| 480 .icon { |
| 481 margin-bottom: 24px; |
| 482 } |
| 483 |
485 .interstitial-wrapper { | 484 .interstitial-wrapper { |
486 margin-top: 7vh; | 485 margin-top: 64px; |
487 } | 486 } |
488 } | 487 } |
489 | 488 |
490 @media (min-height: 650px) and (max-width: 414px) and (orientation: portrait) { | 489 @media (min-height: 480px) and (max-width: 420px) and |
491 .interstitial-wrapper { | 490 (max-height: 736px) and (orientation: portrait), |
492 margin-top: 10vh; | 491 (min-height: 338px) and (max-height: 420px) and (max-width: 736px) and |
| 492 (orientation: landscape) { |
| 493 .icon { |
| 494 margin-bottom: 24px; |
| 495 } |
| 496 |
| 497 .nav-wrapper { |
| 498 padding-bottom: 24px; |
493 } | 499 } |
494 } | 500 } |
495 | 501 |
| 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 |
496 /* Small mobile screens. No fixed nav. */ | 614 /* Small mobile screens. No fixed nav. */ |
497 @media (max-height: 400px) and (orientation: portrait), | 615 @media (max-height: 400px) and (orientation: portrait), |
498 (max-height: 239px) and (orientation: landscape), | 616 (max-height: 239px) and (orientation: landscape), |
499 (max-width: 419px) and (max-height: 399px) { | 617 (max-width: 419px) and (max-height: 399px) { |
500 .interstitial-wrapper { | 618 .interstitial-wrapper { |
501 display: flex; | 619 display: flex; |
502 flex-direction: column; | 620 flex-direction: column; |
503 margin-bottom: 0; | 621 margin-bottom: 0; |
504 } | 622 } |
505 | 623 |
(...skipping 17 matching lines...) Expand all Loading... |
523 width: 100%; | 641 width: 100%; |
524 } | 642 } |
525 } | 643 } |
526 | 644 |
527 @media (max-width: 239px) and (orientation: portrait) { | 645 @media (max-width: 239px) and (orientation: portrait) { |
528 .nav-wrapper { | 646 .nav-wrapper { |
529 padding-left: 0; | 647 padding-left: 0; |
530 padding-right: 0; | 648 padding-right: 0; |
531 } | 649 } |
532 } | 650 } |
OLD | NEW |