Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: static/css/main.css

Issue 29438582: Issue 5135 - Reduce font size and padding on smaller screens on acceptableads.com (Closed) Base URL: https://hg.adblockplus.org/web.acceptableads.com
Patch Set: Remove @media screen, Resize h2, Keep icon size Created May 31, 2017, 9:53 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 .m-a-na { 1 .m-a-na {
2 margin: 0 0 !important; } 2 margin: 0 0 !important; }
3 3
4 .m-t-na { 4 .m-t-na {
5 margin-top: 0 !important; } 5 margin-top: 0 !important; }
6 6
7 .m-b-na { 7 .m-b-na {
8 margin-bottom: 0 !important; } 8 margin-bottom: 0 !important; }
9 9
10 .m-x-na { 10 .m-x-na {
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 width: 100%; 414 width: 100%;
415 margin-bottom: 16px; 415 margin-bottom: 16px;
416 padding: 0; 416 padding: 0;
417 font-size: 18px; 417 font-size: 18px;
418 line-height: inherit; } 418 line-height: inherit; }
419 419
420 a, img { 420 a, img {
421 border: none; 421 border: none;
422 outline: none; } 422 outline: none; }
423 423
424 h2 + .row, .center blockquote + .row,
425 h1 + .row,
426 h2 + hr + .row, .center blockquote + hr + .row,
427 h1 + hr + .row {
428 margin-top: -16px; }
429
430 .section { 424 .section {
431 margin: 96px 0; } 425 margin: 96px 0; }
426 @media (max-width: 768px) {
427 .section {
428 margin: 32px 0; } }
432 429
433 .section .section { 430 .section .section {
434 margin: 64px 0; } 431 margin: 64px 0; }
435 432
436 h1, h2, .center blockquote, h3, .group.items .item::before, h4, h5, h6 .h1, .h2, .h3, .h4, .h5, .h6 { 433 h1, h2, .center blockquote, h3, .group.items .item::before, h4, h5, h6 .h1, .h2, .h3, .h4, .h5, .h6 {
437 text-transform: uppercase; 434 text-transform: uppercase;
438 font-weight: 700; 435 font-weight: 700;
439 line-height: 120%; } 436 line-height: 120%; }
440 437
441 h1, 438 h1,
442 .h1 { 439 .h1 {
443 margin: 96px 0 64px 0; 440 margin: 96px 0 64px 0;
444 text-transform: none; 441 text-transform: none;
445 font-size: 42px; 442 font-size: 42px;
446 font-weight: 300; } 443 font-weight: 300; }
444 @media (max-width: 768px) {
445 h1,
446 .h1 {
447 font-size: 30px;
448 margin-top: 32px; } }
447 449
448 h2, .center blockquote, 450 h2, .center blockquote,
449 .h2 { 451 .h2 {
450 margin: 64px 0 32px 0; 452 margin: 64px 0 32px 0;
451 font-size: 28px; 453 font-size: 28px;
452 font-weight: 700; } 454 font-weight: 700; }
455 @media (max-width: 768px) {
456 h2, .center blockquote,
457 .h2 {
458 font-size: 22px;
459 margin: 32px 0 32px 0; } }
453 460
454 h3, .card h1, .card h2, .card .center blockquote, .center .card blockquote, .car d h3, .card h4, .card h5, .card h6 .h1, h6 .card .h1, .card .h2, .card .h3, .car d .h4, .card .h5, .card .h6, .group.items .item::before, 461 h3, .card h1, .card h2, .card .center blockquote, .center .card blockquote, .car d h3, .card h4, .card h5, .card h6 .h1, h6 .card .h1, .card .h2, .card .h3, .car d .h4, .card .h5, .card .h6, .group.items .item::before,
455 .h3, 462 .h3,
456 .group.items .item h1, 463 .group.items .item h1,
457 .group.items .item h2, 464 .group.items .item h2,
458 .group.items .item .center blockquote, 465 .group.items .item .center blockquote,
459 .center .group.items .item blockquote, 466 .center .group.items .item blockquote,
460 .group.items .item h3, 467 .group.items .item h3,
461 .group.items .item .item::before, 468 .group.items .item .item::before,
462 .group.items .item h4, 469 .group.items .item h4,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 border-left: 4px solid #E1E1E1; } 627 border-left: 4px solid #E1E1E1; }
621 628
622 html[dir="rtl"] blockquote { 629 html[dir="rtl"] blockquote {
623 border-right: 4px solid #E1E1E1; } 630 border-right: 4px solid #E1E1E1; }
624 631
625 html .center blockquote { 632 html .center blockquote {
626 border: none; } 633 border: none; }
627 634
628 .center blockquote { 635 .center blockquote {
629 margin: 0; 636 margin: 0;
630 padding: 96px 0; 637 padding: 64px 0;
631 font-style: normal; } 638 font-style: normal; }
639 @media (max-width: 768px) {
640 .center blockquote {
641 font-size: 22px;
642 padding: 32px 0; } }
632 643
633 .center blockquote p:last-child { 644 .center blockquote p:last-child {
634 margin-top: -8px; } 645 margin-top: -8px; }
635 646
636 cite { 647 cite {
637 font-size: 14px; 648 font-size: 14px;
638 font-style: normal; } 649 font-style: normal; }
639 650
640 cite::before { 651 cite::before {
641 content: "-- "; } 652 content: "-- "; }
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 min-height: 1px; 861 min-height: 1px;
851 padding-right: 16px; 862 padding-right: 16px;
852 padding-left: 16px; } 863 padding-left: 16px; }
853 864
854 html[dir="ltr"] .row .col-3, html[dir="ltr"] .row .col-4, html[dir="ltr"] .row . col-5, html[dir="ltr"] .row .col-6, html[dir="ltr"] .row .col-7, html[dir="ltr"] .row .col-8, html[dir="ltr"] .row .col-9 { 865 html[dir="ltr"] .row .col-3, html[dir="ltr"] .row .col-4, html[dir="ltr"] .row . col-5, html[dir="ltr"] .row .col-6, html[dir="ltr"] .row .col-7, html[dir="ltr"] .row .col-8, html[dir="ltr"] .row .col-9 {
855 float: left; } 866 float: left; }
856 867
857 html[dir="rtl"] .row .col-3, html[dir="rtl"] .row .col-4, html[dir="rtl"] .row . col-5, html[dir="rtl"] .row .col-6, html[dir="rtl"] .row .col-7, html[dir="rtl"] .row .col-8, html[dir="rtl"] .row .col-9 { 868 html[dir="rtl"] .row .col-3, html[dir="rtl"] .row .col-4, html[dir="rtl"] .row . col-5, html[dir="rtl"] .row .col-6, html[dir="rtl"] .row .col-7, html[dir="rtl"] .row .col-8, html[dir="rtl"] .row .col-9 {
858 float: right; } 869 float: right; }
859 870
871 @media (max-width: 991px) {
872 .row .col-3, .row .col-4, .row .col-5, .row .col-6, .row .col-7, .row .col-8, .row .col-9 {
873 padding-top: 8px;
874 padding-bottom: 8px; } }
875
860 @media (min-width: 544px) { 876 @media (min-width: 544px) {
861 .col-3 { 877 .col-3 {
862 width: 50%; } 878 width: 50%; }
863 html[dir="ltr"] .push-3 { 879 html[dir="ltr"] .push-3 {
864 left: 50%; } 880 left: 50%; }
865 html[dir="ltr"] .pull-3 { 881 html[dir="ltr"] .pull-3 {
866 right: 50%; } 882 right: 50%; }
867 html[dir="rtl"] .push-3 { 883 html[dir="rtl"] .push-3 {
868 right: 50%; } 884 right: 50%; }
869 html[dir="rtl"] .pull-3 { 885 html[dir="rtl"] .pull-3 {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 left: 0; } 1045 left: 0; }
1030 1046
1031 html[dir="rtl"] .items .item::before { 1047 html[dir="rtl"] .items .item::before {
1032 right: 0; } 1048 right: 0; }
1033 1049
1034 .group-container { 1050 .group-container {
1035 width: 100%; 1051 width: 100%;
1036 max-width: 1140px; 1052 max-width: 1140px;
1037 margin: 0 auto; 1053 margin: 0 auto;
1038 padding: 96px 0; } 1054 padding: 96px 0; }
1055 @media (max-width: 992px) {
1056 .group-container {
1057 padding: 8px; } }
1039 1058
1040 .group-container > h1, .group-container > h2, .center .group-container > blockqu ote, .group-container > h3, .group.items .group-container > .item::before, .grou p-container > h4, .group-container > h5, h6 .group-container > .h1, .group-conta iner > .h2, .group-container > .h3, .group-container > .h4, .group-container > . h5, .group-container > .h6, 1059 .group-container > h1, .group-container > h2, .center .group-container > blockqu ote, .group-container > h3, .group.items .group-container > .item::before, .grou p-container > h4, .group-container > h5, h6 .group-container > .h1, .group-conta iner > .h2, .group-container > .h3, .group-container > .h4, .group-container > . h5, .group-container > .h6,
1041 .group-container > p { 1060 .group-container > p {
1042 margin: 96px auto; 1061 margin: 64px auto;
1043 padding: 0 16px; } 1062 padding: 0 16px; }
1044 1063
1064 @media (max-width: 992px) {
1065 .group-container > p {
1066 margin: 32px auto; } }
1067
1045 .group { 1068 .group {
1046 display: table; 1069 display: table;
1047 width: 100%; 1070 width: 100%;
1048 table-layout: fixed; } 1071 table-layout: fixed; }
1049 1072
1050 .group-container .group { 1073 .group-container .group {
1051 margin-bottom: 0; } 1074 margin-bottom: 0; }
1052 1075
1053 .group-container > h1, .group-container > h2, .center .group-container > blockqu ote, .group-container > h3, .group.items .group-container > .item::before, .grou p-container > h4, .group-container > h5, h6 .group-container > .h1, .group-conta iner > .h2, .group-container > .h3, .group-container > .h4, .group-container > . h5, .group-container > .h6 { 1076 .group-container > h1, .group-container > h2, .center .group-container > blockqu ote, .group-container > h3, .group.items .group-container > .item::before, .grou p-container > h4, .group-container > h5, h6 .group-container > .h1, .group-conta iner > .h2, .group-container > .h3, .group-container > .h4, .group-container > . h5, .group-container > .h6 {
1054 margin-top: 0; } 1077 margin-top: 0; }
1078 @media (max-width: 992px) {
1079 .group-container > h1, .group-container > h2, .center .group-container > blo ckquote, .group-container > h3, .group.items .group-container > .item::before, . group-container > h4, .group-container > h5, h6 .group-container > .h1, .group-c ontainer > .h2, .group-container > .h3, .group-container > .h4, .group-container > .h5, .group-container > .h6 {
1080 margin: 32px auto; } }
1055 1081
1056 .group .card, 1082 .group .card,
1057 .group .item { 1083 .group .item {
1058 display: table-cell; 1084 display: table-cell;
1059 vertical-align: top; } 1085 vertical-align: top; }
1060 1086
1061 .group.items .item::before { 1087 .group.items .item::before {
1062 margin-top: 16px; 1088 margin-top: 16px;
1063 text-align: center; 1089 text-align: center;
1064 width: 45px; } 1090 width: 45px; }
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 padding-left: 208px; } 1548 padding-left: 208px; }
1523 html[dir="rtl"] .outer { 1549 html[dir="rtl"] .outer {
1524 padding-right: 208px; } } 1550 padding-right: 208px; } }
1525 1551
1526 #footer { 1552 #footer {
1527 padding-top: 64px; 1553 padding-top: 64px;
1528 padding-bottom: 96px; 1554 padding-bottom: 96px;
1529 font-size: 70%; 1555 font-size: 70%;
1530 background-color: #292929; 1556 background-color: #292929;
1531 color: #FFFFFF; } 1557 color: #FFFFFF; }
1558 @media (max-width: 768px) {
1559 #footer {
1560 padding-top: 32px;
1561 padding-bottom: 64px; } }
1532 #footer h1, #footer h2, #footer .center blockquote, .center #footer blockquote , #footer h3, #footer .group.items .item::before, .group.items #footer .item::be fore, #footer h4, #footer h5, #footer h6 .h1, h6 #footer .h1, #footer .h2, #foot er .h3, #footer .h4, #footer .h5, #footer .h6 { 1562 #footer h1, #footer h2, #footer .center blockquote, .center #footer blockquote , #footer h3, #footer .group.items .item::before, .group.items #footer .item::be fore, #footer h4, #footer h5, #footer h6 .h1, h6 #footer .h1, #footer .h2, #foot er .h3, #footer .h4, #footer .h5, #footer .h6 {
1533 position: relative; 1563 position: relative;
1534 margin-bottom: 32px; 1564 margin-bottom: 32px;
1535 padding-top: 8px; } 1565 padding-top: 8px; }
1536 #footer h1::before, #footer h2::before, #footer .center blockquote::before, .c enter #footer blockquote::before, #footer h3::before, #footer .group.items .item ::before, .group.items #footer .item::before, #footer h4::before, #footer h5::be fore, #footer h6 .h1::before, h6 #footer .h1::before, #footer .h2::before, #foot er .h3::before, #footer .h4::before, #footer .h5::before, #footer .h6::before { 1566 #footer h1::before, #footer h2::before, #footer .center blockquote::before, .c enter #footer blockquote::before, #footer h3::before, #footer .group.items .item ::before, .group.items #footer .item::before, #footer h4::before, #footer h5::be fore, #footer h6 .h1::before, h6 #footer .h1::before, #footer .h2::before, #foot er .h3::before, #footer .h4::before, #footer .h5::before, #footer .h6::before {
1537 display: block; 1567 display: block;
1538 position: absolute; 1568 position: absolute;
1539 top: 0; 1569 top: 0;
1540 left: 0; 1570 left: 0;
1541 width: 16px; 1571 width: 16px;
1542 height: 0; 1572 height: 0;
1543 content: " "; 1573 content: " ";
1544 border-top: 2px solid #FFFFFF; } 1574 border-top: 2px solid #FFFFFF; }
1545 #footer a { 1575 #footer a {
1546 color: #FFFFFF; } 1576 color: #FFFFFF; }
1547 #footer a:hover { 1577 #footer a:hover {
1548 text-decoration: underline; 1578 text-decoration: underline;
1549 color: #8CC63E !important; } 1579 color: #8CC63E !important; }
1550 #footer p { 1580 #footer p {
1551 color: #E1E1E1; } 1581 color: #E1E1E1; }
OLDNEW

Powered by Google App Engine
This is Rietveld