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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 margin-bottom: 16px; | 116 margin-bottom: 16px; |
117 } | 117 } |
118 | 118 |
119 h2 { | 119 h2 { |
120 font-size: 1.2em; | 120 font-size: 1.2em; |
121 font-weight: normal; | 121 font-weight: normal; |
122 } | 122 } |
123 | 123 |
124 .hidden { | 124 .hidden { |
125 display: none; | 125 display: none; |
126 opacity: 0; | |
127 overflow: hidden; | |
128 transition: none; | |
edwardjung
2017/04/25 10:32:04
Are you sure this fixes the issue?
Looking at th
Nate Fischer
2017/04/25 19:04:42
That code in the media query looked like a bug, so
edwardjung
2017/04/25 19:50:04
Apologies, I missed the removal of that other code
| |
126 } | 129 } |
127 | 130 |
128 html { | 131 html { |
129 -webkit-text-size-adjust: 100%; | 132 -webkit-text-size-adjust: 100%; |
130 font-size: 125%; | 133 font-size: 125%; |
131 } | 134 } |
132 | 135 |
133 .icon { | 136 .icon { |
134 background-repeat: no-repeat; | 137 background-repeat: no-repeat; |
135 background-size: 100%; | 138 background-size: 100%; |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
324 margin-top: 30px; | 327 margin-top: 30px; |
325 } | 328 } |
326 } | 329 } |
327 | 330 |
328 /** | 331 /** |
329 * Mobile specific styling. | 332 * Mobile specific styling. |
330 * Navigation buttons are anchored to the bottom of the screen. | 333 * Navigation buttons are anchored to the bottom of the screen. |
331 * Details message replaces the top content in its own scrollable area. | 334 * Details message replaces the top content in its own scrollable area. |
332 */ | 335 */ |
333 | 336 |
334 @media (max-width: 420px) and (max-height: 736px) and (orientation: portrait) { | 337 @media (max-width: 420px) { |
335 #details-button { | 338 #details-button { |
336 border: 0; | 339 border: 0; |
337 margin: 8px 0 0; | 340 margin: 28px 0 0; |
338 } | 341 } |
339 | 342 |
340 .secondary-button { | 343 .secondary-button { |
341 -webkit-margin-end: 0; | 344 -webkit-margin-end: 0; |
342 margin-top: 16px; | 345 margin-top: 16px; |
343 } | 346 } |
344 } | 347 } |
345 | 348 |
346 /* Fixed nav. */ | 349 /* Fixed nav. */ |
347 @media (min-width: 240px) and (max-width: 420px) and | 350 @media (min-width: 240px) and (max-width: 420px) and |
348 (min-height: 401px) and (max-height: 736px) and (orientation:portrait), | 351 (min-height: 401px), |
349 (min-width: 421px) and (max-width: 736px) and (min-height: 240px) and | 352 (min-width: 421px) and (min-height: 240px) and |
350 (max-height: 420px) and (orientation:landscape) { | 353 (max-height: 736px) { |
351 body .nav-wrapper { | 354 body .nav-wrapper { |
352 background: #f7f7f7; | 355 background: #f7f7f7; |
353 bottom: 0; | 356 bottom: 0; |
354 box-shadow: 0 -22px 40px rgb(247, 247, 247); | 357 box-shadow: 0 -22px 40px rgb(247, 247, 247); |
355 left: 0; | |
356 margin: 0; | 358 margin: 0; |
357 max-width: 736px; | 359 max-width: 736px; |
358 padding-left: 24px; | 360 padding-left: 0px; |
359 padding-right: 24px; | 361 padding-right: 48px; |
360 position: fixed; | 362 position: fixed; |
361 z-index: 2; | 363 z-index: 2; |
362 } | 364 } |
363 | 365 |
364 body.safe-browsing .nav-wrapper { | 366 body.safe-browsing .nav-wrapper { |
365 background: rgb(206, 52, 38); | 367 background: rgb(206, 52, 38); |
366 box-shadow: 0 -22px 40px rgb(206, 52, 38); | 368 box-shadow: 0 -22px 40px rgb(206, 52, 38); |
367 } | 369 } |
368 | 370 |
369 .interstitial-wrapper { | 371 .interstitial-wrapper { |
370 max-width: 736px; | 372 max-width: 736px; |
371 } | 373 } |
372 | 374 |
373 #details, | 375 #details, |
374 #main-content { | 376 #main-content { |
375 padding-bottom: 40px; | 377 padding-bottom: 40px; |
376 } | 378 } |
379 | |
380 #details { | |
381 padding-top: 40px; | |
382 } | |
edwardjung
2017/04/25 10:32:04
This wasn't in the original CL, it is required for
Nate Fischer
2017/04/25 19:04:42
This has to do with the change above. Setting `dis
| |
377 } | 383 } |
378 | 384 |
379 @media (max-width: 420px) and (max-height: 736px) and (orientation: portrait), | 385 @media (max-width: 420px) and (orientation: portrait), |
380 (max-width: 736px) and (max-height: 420px) and (orientation: landscape) { | 386 (max-height: 736px) { |
381 body { | 387 body { |
382 margin: 0 auto; | 388 margin: 0 auto; |
383 } | 389 } |
384 | 390 |
385 button, | 391 button, |
386 [dir='rtl'] button, | 392 [dir='rtl'] button, |
387 button.small-link { | 393 button.small-link { |
388 font-family: Roboto-Regular,Helvetica; | 394 font-family: Roboto-Regular,Helvetica; |
389 font-size: .933em; | 395 font-size: .933em; |
390 font-weight: 600; | 396 font-weight: 600; |
(...skipping 13 matching lines...) Expand all Loading... | |
404 } | 410 } |
405 | 411 |
406 #details { | 412 #details { |
407 box-sizing: border-box; | 413 box-sizing: border-box; |
408 height: auto; | 414 height: auto; |
409 margin: 0; | 415 margin: 0; |
410 opacity: 1; | 416 opacity: 1; |
411 transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1); | 417 transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1); |
412 } | 418 } |
413 | 419 |
414 #details.hidden, | |
415 #main-content.hidden { | |
416 display: block; | |
417 height: 0; | |
418 opacity: 0; | |
419 overflow: hidden; | |
420 transition: none; | |
421 } | |
422 | |
423 #details-button { | 420 #details-button { |
424 padding-bottom: 16px; | 421 padding-bottom: 16px; |
425 padding-top: 16px; | 422 padding-top: 16px; |
426 } | 423 } |
427 | 424 |
428 h1 { | 425 h1 { |
429 font-size: 1.5em; | 426 font-size: 1.5em; |
430 margin-bottom: 8px; | 427 margin-bottom: 8px; |
431 } | 428 } |
432 | 429 |
433 .icon { | 430 .icon { |
434 margin-bottom: 12px; | 431 margin-bottom: 12px; |
435 } | 432 } |
436 | 433 |
437 .interstitial-wrapper { | 434 .interstitial-wrapper { |
438 box-sizing: border-box; | 435 box-sizing: border-box; |
439 margin: 24px auto 12px; | 436 margin: 7vh auto 12px; |
440 padding: 0 24px; | 437 padding: 0 24px; |
441 position: relative; | 438 position: relative; |
442 } | 439 } |
443 | 440 |
444 .interstitial-wrapper p { | 441 .interstitial-wrapper p { |
445 font-size: .95em; | 442 font-size: .95em; |
446 line-height: 1.61em; | 443 line-height: 1.61em; |
447 margin-top: 8px; | 444 margin-top: 8px; |
448 } | 445 } |
449 | 446 |
450 #main-content { | 447 #main-content { |
451 margin: 0; | 448 margin: 0; |
452 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1); | 449 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1); |
453 } | 450 } |
454 | 451 |
455 .small-link { | 452 .small-link { |
456 border: 0; | 453 border: 0; |
457 } | 454 } |
458 | 455 |
459 .suggested-left > #control-buttons, | 456 .suggested-left > #control-buttons, |
460 .suggested-right > #control-buttons { | 457 .suggested-right > #control-buttons { |
461 float: none; | 458 float: none; |
462 margin: 0; | 459 margin: 0; |
463 } | 460 } |
464 } | 461 } |
465 | 462 |
463 @media (min-width: 421px) and (min-height: 500px) and (max-height: 736px) { | |
464 .interstitial-wrapper { | |
465 margin-top: 10vh; | |
466 } | |
467 } | |
468 | |
466 @media (min-height: 400px) and (orientation:portrait) { | 469 @media (min-height: 400px) and (orientation:portrait) { |
467 .interstitial-wrapper { | 470 .interstitial-wrapper { |
468 margin-bottom: 145px; | 471 margin-bottom: 145px; |
469 } | 472 } |
470 } | 473 } |
471 | 474 |
472 @media (min-height: 299px) and (orientation:portrait) { | 475 @media (min-height: 299px) { |
473 .nav-wrapper { | 476 .nav-wrapper { |
474 padding-bottom: 16px; | 477 padding-bottom: 16px; |
475 } | 478 } |
476 } | 479 } |
477 | 480 |
478 @media (min-height: 405px) and (max-height: 736px) and | 481 @media (min-height: 500px) and (max-height: 650px) and (max-width: 414px) and |
479 (max-width: 420px) and (orientation:portrait) { | 482 (orientation: portrait) { |
480 .icon { | |
481 margin-bottom: 24px; | |
482 } | |
483 | |
484 .interstitial-wrapper { | 483 .interstitial-wrapper { |
485 margin-top: 64px; | 484 margin-top: 7vh; |
486 } | 485 } |
487 } | 486 } |
488 | 487 |
489 @media (min-height: 480px) and (max-width: 420px) and | 488 @media (min-height: 650px) and (max-width: 414px) and (orientation: portrait) { |
490 (max-height: 736px) and (orientation: portrait), | 489 .interstitial-wrapper { |
491 (min-height: 338px) and (max-height: 420px) and (max-width: 736px) and | 490 margin-top: 10vh; |
492 (orientation: landscape) { | |
493 .icon { | |
494 margin-bottom: 24px; | |
495 } | |
496 | |
497 .nav-wrapper { | |
498 padding-bottom: 24px; | |
499 } | 491 } |
500 } | 492 } |
501 | 493 |
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. */ | 494 /* Small mobile screens. No fixed nav. */ |
615 @media (max-height: 400px) and (orientation: portrait), | 495 @media (max-height: 400px) and (orientation: portrait), |
616 (max-height: 239px) and (orientation: landscape), | 496 (max-height: 239px) and (orientation: landscape), |
617 (max-width: 419px) and (max-height: 399px) { | 497 (max-width: 419px) and (max-height: 399px) { |
618 .interstitial-wrapper { | 498 .interstitial-wrapper { |
619 display: flex; | 499 display: flex; |
620 flex-direction: column; | 500 flex-direction: column; |
621 margin-bottom: 0; | 501 margin-bottom: 0; |
622 } | 502 } |
623 | 503 |
(...skipping 17 matching lines...) Expand all Loading... | |
641 width: 100%; | 521 width: 100%; |
642 } | 522 } |
643 } | 523 } |
644 | 524 |
645 @media (max-width: 239px) and (orientation: portrait) { | 525 @media (max-width: 239px) and (orientation: portrait) { |
646 .nav-wrapper { | 526 .nav-wrapper { |
647 padding-left: 0; | 527 padding-left: 0; |
648 padding-right: 0; | 528 padding-right: 0; |
649 } | 529 } |
650 } | 530 } |
OLD | NEW |