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