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 #details { | |
378 padding-top: 5.5vh; | |
379 } | |
380 } | 377 } |
381 | 378 |
382 @media (max-width: 420px) and (orientation: portrait), | 379 @media (max-width: 420px) and (max-height: 736px) and (orientation: portrait), |
383 (max-height: 736px) { | 380 (max-width: 736px) and (max-height: 420px) and (orientation: landscape) { |
384 body { | 381 body { |
385 margin: 0 auto; | 382 margin: 0 auto; |
386 } | 383 } |
387 | 384 |
388 button, | 385 button, |
389 [dir='rtl'] button, | 386 [dir='rtl'] button, |
390 button.small-link { | 387 button.small-link { |
391 font-family: Roboto-Regular,Helvetica; | 388 font-family: Roboto-Regular,Helvetica; |
392 font-size: .933em; | 389 font-size: .933em; |
393 font-weight: 600; | 390 font-weight: 600; |
(...skipping 19 matching lines...) Expand all Loading... |
413 opacity: 1; | 410 opacity: 1; |
414 transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1); | 411 transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1); |
415 } | 412 } |
416 | 413 |
417 #details.hidden, | 414 #details.hidden, |
418 #main-content.hidden { | 415 #main-content.hidden { |
419 display: block; | 416 display: block; |
420 height: 0; | 417 height: 0; |
421 opacity: 0; | 418 opacity: 0; |
422 overflow: hidden; | 419 overflow: hidden; |
423 padding-bottom: 0; | |
424 transition: none; | 420 transition: none; |
425 } | 421 } |
426 | 422 |
427 #details-button { | 423 #details-button { |
428 padding-bottom: 16px; | 424 padding-bottom: 16px; |
429 padding-top: 16px; | 425 padding-top: 16px; |
430 } | 426 } |
431 | 427 |
432 h1 { | 428 h1 { |
433 font-size: 1.5em; | 429 font-size: 1.5em; |
434 margin-bottom: 8px; | 430 margin-bottom: 8px; |
435 } | 431 } |
436 | 432 |
437 .icon { | 433 .icon { |
438 margin-bottom: 5.69vh; | 434 margin-bottom: 12px; |
439 } | 435 } |
440 | 436 |
441 .interstitial-wrapper { | 437 .interstitial-wrapper { |
442 box-sizing: border-box; | 438 box-sizing: border-box; |
443 margin: 7vh auto 12px; | 439 margin: 24px auto 12px; |
444 padding: 0 24px; | 440 padding: 0 24px; |
445 position: relative; | 441 position: relative; |
446 } | 442 } |
447 | 443 |
448 .interstitial-wrapper p { | 444 .interstitial-wrapper p { |
449 font-size: .95em; | 445 font-size: .95em; |
450 line-height: 1.61em; | 446 line-height: 1.61em; |
451 margin-top: 8px; | 447 margin-top: 8px; |
452 } | 448 } |
453 | 449 |
454 #main-content { | 450 #main-content { |
455 margin: 0; | 451 margin: 0; |
456 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1); | 452 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1); |
457 } | 453 } |
458 | 454 |
459 .small-link { | 455 .small-link { |
460 border: 0; | 456 border: 0; |
461 } | 457 } |
462 | 458 |
463 .suggested-left > #control-buttons, | 459 .suggested-left > #control-buttons, |
464 .suggested-right > #control-buttons { | 460 .suggested-right > #control-buttons { |
465 float: none; | 461 float: none; |
466 margin: 0; | 462 margin: 0; |
467 } | 463 } |
468 } | 464 } |
469 | 465 |
470 @media (min-width: 421px) and (min-height: 500px) and (max-height: 736px) { | |
471 .interstitial-wrapper { | |
472 margin-top: 10vh; | |
473 } | |
474 } | |
475 | |
476 @media (min-height: 400px) and (orientation:portrait) { | 466 @media (min-height: 400px) and (orientation:portrait) { |
477 .interstitial-wrapper { | 467 .interstitial-wrapper { |
478 margin-bottom: 145px; | 468 margin-bottom: 145px; |
479 } | 469 } |
480 } | 470 } |
481 | 471 |
482 @media (min-height: 299px) { | 472 @media (min-height: 299px) and (orientation:portrait) { |
483 .nav-wrapper { | 473 .nav-wrapper { |
484 padding-bottom: 16px; | 474 padding-bottom: 16px; |
485 } | 475 } |
486 } | 476 } |
487 | 477 |
488 @media (min-height: 500px) and (max-height: 650px) and (max-width: 414px) and | 478 @media (min-height: 405px) and (max-height: 736px) and |
489 (orientation: portrait) { | 479 (max-width: 420px) and (orientation:portrait) { |
| 480 .icon { |
| 481 margin-bottom: 24px; |
| 482 } |
| 483 |
490 .interstitial-wrapper { | 484 .interstitial-wrapper { |
491 margin-top: 7vh; | 485 margin-top: 64px; |
492 } | 486 } |
493 } | 487 } |
494 | 488 |
495 @media (min-height: 650px) and (max-width: 414px) and (orientation: portrait) { | 489 @media (min-height: 480px) and (max-width: 420px) and |
496 .interstitial-wrapper { | 490 (max-height: 736px) and (orientation: portrait), |
497 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; |
498 } | 499 } |
499 } | 500 } |
500 | 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 |
501 /* Small mobile screens. No fixed nav. */ | 614 /* Small mobile screens. No fixed nav. */ |
502 @media (max-height: 400px) and (orientation: portrait), | 615 @media (max-height: 400px) and (orientation: portrait), |
503 (max-height: 239px) and (orientation: landscape), | 616 (max-height: 239px) and (orientation: landscape), |
504 (max-width: 419px) and (max-height: 399px) { | 617 (max-width: 419px) and (max-height: 399px) { |
505 .interstitial-wrapper { | 618 .interstitial-wrapper { |
506 display: flex; | 619 display: flex; |
507 flex-direction: column; | 620 flex-direction: column; |
508 margin-bottom: 0; | 621 margin-bottom: 0; |
509 } | 622 } |
510 | 623 |
(...skipping 17 matching lines...) Expand all Loading... |
528 width: 100%; | 641 width: 100%; |
529 } | 642 } |
530 } | 643 } |
531 | 644 |
532 @media (max-width: 239px) and (orientation: portrait) { | 645 @media (max-width: 239px) and (orientation: portrait) { |
533 .nav-wrapper { | 646 .nav-wrapper { |
534 padding-left: 0; | 647 padding-left: 0; |
535 padding-right: 0; | 648 padding-right: 0; |
536 } | 649 } |
537 } | 650 } |
OLD | NEW |