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: Created May 16, 2017, 4:26 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 screen and (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 screen and (max-width: 768px) {
445 h1,
446 .h1 {
447 font-size: 32px;
448 margin: 32px 0 64px 0; } }
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 screen and (max-width: 768px) {
456 h2, .center blockquote,
457 .h2 {
458 margin: 32px 0 32px 0; } }
453 459
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, 460 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, 461 .h3,
456 .group.items .item h1, 462 .group.items .item h1,
457 .group.items .item h2, 463 .group.items .item h2,
458 .group.items .item .center blockquote, 464 .group.items .item .center blockquote,
459 .center .group.items .item blockquote, 465 .center .group.items .item blockquote,
460 .group.items .item h3, 466 .group.items .item h3,
461 .group.items .item .item::before, 467 .group.items .item .item::before,
462 .group.items .item h4, 468 .group.items .item h4,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 border-left: 4px solid #E1E1E1; } 626 border-left: 4px solid #E1E1E1; }
621 627
622 html[dir="rtl"] blockquote { 628 html[dir="rtl"] blockquote {
623 border-right: 4px solid #E1E1E1; } 629 border-right: 4px solid #E1E1E1; }
624 630
625 html .center blockquote { 631 html .center blockquote {
626 border: none; } 632 border: none; }
627 633
628 .center blockquote { 634 .center blockquote {
629 margin: 0; 635 margin: 0;
630 padding: 96px 0; 636 padding: 64px 0;
631 font-style: normal; } 637 font-style: normal; }
638 @media screen and (max-width: 768px) {
639 .center blockquote {
640 font-size: 22px;
641 padding: 32px 0; } }
632 642
633 .center blockquote p:last-child { 643 .center blockquote p:last-child {
634 margin-top: -8px; } 644 margin-top: -8px; }
635 645
636 cite { 646 cite {
637 font-size: 14px; 647 font-size: 14px;
638 font-style: normal; } 648 font-style: normal; }
639 649
640 cite::before { 650 cite::before {
641 content: "-- "; } 651 content: "-- "; }
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 min-height: 1px; 860 min-height: 1px;
851 padding-right: 16px; 861 padding-right: 16px;
852 padding-left: 16px; } 862 padding-left: 16px; }
853 863
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 { 864 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; } 865 float: left; }
856 866
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 { 867 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; } 868 float: right; }
859 869
870 @media (max-width: 991px) {
871 .row .col-3, .row .col-4, .row .col-5, .row .col-6, .row .col-7, .row .col-8, .row .col-9 {
872 padding-top: 8px;
873 padding-bottom: 8px; } }
874
860 @media (min-width: 544px) { 875 @media (min-width: 544px) {
861 .col-3 { 876 .col-3 {
862 width: 50%; } 877 width: 50%; }
863 html[dir="ltr"] .push-3 { 878 html[dir="ltr"] .push-3 {
864 left: 50%; } 879 left: 50%; }
865 html[dir="ltr"] .pull-3 { 880 html[dir="ltr"] .pull-3 {
866 right: 50%; } 881 right: 50%; }
867 html[dir="rtl"] .push-3 { 882 html[dir="rtl"] .push-3 {
868 right: 50%; } 883 right: 50%; }
869 html[dir="rtl"] .pull-3 { 884 html[dir="rtl"] .pull-3 {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 962
948 .card-icon { 963 .card-icon {
949 margin: 16px 0; } 964 margin: 16px 0; }
950 965
951 .center .card-icon { 966 .center .card-icon {
952 margin: 48px 0 32px 0; } 967 margin: 48px 0 32px 0; }
953 968
954 img.card-icon, 969 img.card-icon,
955 .card-icon img { 970 .card-icon img {
956 height: 48px; } 971 height: 48px; }
972 @media screen and (max-width: 768px) {
973 img.card-icon,
974 .card-icon img {
975 height: 30px;
976 margin: 8px 0; } }
957 977
958 .card img.block { 978 .card img.block {
959 margin: 0; } 979 margin: 0; }
960 980
961 .card-summary { 981 .card-summary {
962 margin: 32px 0; 982 margin: 32px 0;
963 height: 64px; } 983 height: 64px; }
964 984
965 .card button, .card input[type="button"], .card input[type="reset"], .card input [type="submit"], .card .btn-outline-primary, .card .btn-outline-accent, .card .b tn-primary, .card .btn-accent { 985 .card button, .card input[type="button"], .card input[type="reset"], .card input [type="submit"], .card .btn-outline-primary, .card .btn-outline-accent, .card .b tn-primary, .card .btn-accent {
966 display: block; 986 display: block;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 left: 0; } 1049 left: 0; }
1030 1050
1031 html[dir="rtl"] .items .item::before { 1051 html[dir="rtl"] .items .item::before {
1032 right: 0; } 1052 right: 0; }
1033 1053
1034 .group-container { 1054 .group-container {
1035 width: 100%; 1055 width: 100%;
1036 max-width: 1140px; 1056 max-width: 1140px;
1037 margin: 0 auto; 1057 margin: 0 auto;
1038 padding: 96px 0; } 1058 padding: 96px 0; }
1059 @media screen and (max-width: 992px) {
1060 .group-container {
1061 padding: 8px; } }
1039 1062
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, 1063 .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 { 1064 .group-container > p {
1042 margin: 96px auto; 1065 margin: 96px auto;
1043 padding: 0 16px; } 1066 padding: 0 16px; }
1044 1067
1068 @media screen and (max-width: 992px) {
1069 .group-container > p {
1070 margin: 32px auto; } }
1071
1045 .group { 1072 .group {
1046 display: table; 1073 display: table;
1047 width: 100%; 1074 width: 100%;
1048 table-layout: fixed; } 1075 table-layout: fixed; }
1049 1076
1050 .group-container .group { 1077 .group-container .group {
1051 margin-bottom: 0; } 1078 margin-bottom: 0; }
1052 1079
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 { 1080 .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; } 1081 margin-top: 0; }
1082 @media screen and (max-width: 992px) {
1083 .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 {
1084 margin: 32px auto; } }
1055 1085
1056 .group .card, 1086 .group .card,
1057 .group .item { 1087 .group .item {
1058 display: table-cell; 1088 display: table-cell;
1059 vertical-align: top; } 1089 vertical-align: top; }
1060 1090
1061 .group.items .item::before { 1091 .group.items .item::before {
1062 margin-top: 16px; 1092 margin-top: 16px;
1063 text-align: center; 1093 text-align: center;
1064 width: 45px; } 1094 width: 45px; }
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 padding-left: 208px; } 1552 padding-left: 208px; }
1523 html[dir="rtl"] .outer { 1553 html[dir="rtl"] .outer {
1524 padding-right: 208px; } } 1554 padding-right: 208px; } }
1525 1555
1526 #footer { 1556 #footer {
1527 padding-top: 64px; 1557 padding-top: 64px;
1528 padding-bottom: 96px; 1558 padding-bottom: 96px;
1529 font-size: 70%; 1559 font-size: 70%;
1530 background-color: #292929; 1560 background-color: #292929;
1531 color: #FFFFFF; } 1561 color: #FFFFFF; }
1562 @media screen and (max-width: 768px) {
1563 #footer {
1564 padding-top: 32px;
1565 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 { 1566 #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; 1567 position: relative;
1534 margin-bottom: 32px; 1568 margin-bottom: 32px;
1535 padding-top: 8px; } 1569 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 { 1570 #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; 1571 display: block;
1538 position: absolute; 1572 position: absolute;
1539 top: 0; 1573 top: 0;
1540 left: 0; 1574 left: 0;
1541 width: 16px; 1575 width: 16px;
1542 height: 0; 1576 height: 0;
1543 content: " "; 1577 content: " ";
1544 border-top: 2px solid #FFFFFF; } 1578 border-top: 2px solid #FFFFFF; }
1545 #footer a { 1579 #footer a {
1546 color: #FFFFFF; } 1580 color: #FFFFFF; }
1547 #footer a:hover { 1581 #footer a:hover {
1548 text-decoration: underline; 1582 text-decoration: underline;
1549 color: #8CC63E !important; } 1583 color: #8CC63E !important; }
1550 #footer p { 1584 #footer p {
1551 color: #E1E1E1; } 1585 color: #E1E1E1; }
OLDNEW

Powered by Google App Engine
This is Rietveld