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

Delta Between Two Patch Sets: 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
Left Patch Set: Handle responsive styling Created June 22, 2017, 3:27 p.m.
Right Patch Set: Fix alignment of hr under headings Created July 6, 2017, 10:25 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
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
424 .section { 430 .section {
425 margin: 96px 0; } 431 margin-bottom: 96px; }
426 @media (max-width: 768px) { 432 @media (max-width: 768px) {
427 .section { 433 .section {
428 margin: 32px 0; } } 434 margin-bottom: 32px; } }
429 435
430 .section .section { 436 .section .section {
431 margin: 64px 0; } 437 margin-bottom: 64px; }
432 @media (max-width: 768px) { 438 @media (max-width: 768px) {
433 .section .section { 439 .section .section {
434 margin: 32px 0; } } 440 margin-bottom: 32px; } }
435 441
436 h1, h2, .center blockquote, h3, .group.items .item::before, h4, h5, h6 .h1, .h2, .h3, .h4, .h5, .h6 { 442 h1, h2, .center blockquote, h3, .group.items .item::before, h4, h5, h6 .h1, .h2, .h3, .h4, .h5, .h6 {
437 text-transform: uppercase; 443 text-transform: uppercase;
438 font-weight: 700; 444 font-weight: 700;
439 line-height: 120%; } 445 line-height: 120%; }
440 446
441 h1, 447 h1,
442 .h1 { 448 .h1 {
443 margin: 96px 0 64px 0; 449 margin: 96px 0 64px 0;
444 text-transform: none; 450 text-transform: none;
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 width: 24px; 757 width: 24px;
752 height: 3px; 758 height: 3px;
753 margin: 16px 0; 759 margin: 16px 0;
754 border: none; 760 border: none;
755 background-color: #161616; } 761 background-color: #161616; }
756 762
757 h1 + hr, 763 h1 + hr,
758 h2 + hr, .center blockquote + hr { 764 h2 + hr, .center blockquote + hr {
759 position: absolute; 765 position: absolute;
760 margin: -32px 0 32px 0; } 766 margin: -32px 0 32px 0; }
767 @media (max-width: 544px) {
768 h1 + hr,
769 h2 + hr, .center blockquote + hr {
770 margin-top: -21px; } }
761 771
762 .center hr { 772 .center hr {
763 margin: 16px auto; } 773 margin: 16px auto; }
764 774
765 table { 775 table {
766 border-collapse: collapse !important; } 776 border-collapse: collapse !important; }
767 777
768 table td, 778 table td,
769 table th { 779 table th {
770 background-color: #FFFFFF; } 780 background-color: #FFFFFF; }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 864
855 .inline-buttons { 865 .inline-buttons {
856 margin-top: 64px; 866 margin-top: 64px;
857 margin-bottom: 64px; 867 margin-bottom: 64px;
858 text-align: right; } 868 text-align: right; }
859 869
860 @media (min-width: 544px) { 870 @media (min-width: 544px) {
861 .inline-buttons a, 871 .inline-buttons a,
862 .inline-buttons input { 872 .inline-buttons input {
863 margin-left: 16px; } } 873 margin-left: 16px; } }
874
875 .btn-container {
876 margin-top: 16px;
877 margin-bottom: 16px; }
878 @media (min-width: 544px) {
879 .btn-container {
880 margin-top: 32px;
881 margin-bottom: 32px; } }
882 @media (min-width: 768px) {
883 .btn-container {
884 margin-top: 64px;
885 margin-bottom: 64px; } }
864 886
865 input[type="email"], 887 input[type="email"],
866 input[type="number"], 888 input[type="number"],
867 input[type="search"], 889 input[type="search"],
868 input[type="text"], 890 input[type="text"],
869 input[type="tel"], 891 input[type="tel"],
870 input[type="url"], 892 input[type="url"],
871 input[type="password"], 893 input[type="password"],
872 textarea, 894 textarea,
873 select { 895 select {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 padding-left: 16px; } 938 padding-left: 16px; }
917 939
918 .row { 940 .row {
919 margin-right: -16px; 941 margin-right: -16px;
920 margin-left: -16px; } 942 margin-left: -16px; }
921 943
922 .row::after { 944 .row::after {
923 display: table; 945 display: table;
924 clear: both; 946 clear: both;
925 content: ""; } 947 content: ""; }
926
927 .row p:first-child {
928 margin-top: 0; }
929 948
930 .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { 949 .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 {
931 width: 100%; } 950 width: 100%; }
932 951
933 .row .col-3, .row .col-4, .row .col-5, .row .col-6, .row .col-7, .row .col-8, .r ow .col-9 { 952 .row .col-3, .row .col-4, .row .col-5, .row .col-6, .row .col-7, .row .col-8, .r ow .col-9 {
934 position: relative; 953 position: relative;
935 min-height: 1px; 954 min-height: 1px;
936 padding-right: 16px; 955 padding-right: 16px;
937 padding-left: 16px; } 956 padding-left: 16px; }
938 957
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 vertical-align: top; } 1191 vertical-align: top; }
1173 1192
1174 .group.items .item::before { 1193 .group.items .item::before {
1175 margin-top: 16px; 1194 margin-top: 16px;
1176 text-align: center; 1195 text-align: center;
1177 width: 45px; } 1196 width: 45px; }
1178 1197
1179 html[dir="ltr"] .group .card + .card { 1198 html[dir="ltr"] .group .card + .card {
1180 border-left: 0; } 1199 border-left: 0; }
1181 1200
1201 @media (max-width: 768px) {
1202 html[dir="ltr"] .group .card:first-child {
1203 border-left: 0; } }
1204
1182 html[dir="rtl"] .group .card + .card { 1205 html[dir="rtl"] .group .card + .card {
1183 border-right: 0; } 1206 border-right: 0; }
1207
1208 @media (max-width: 768px) {
1209 html[dir="rtl"] .group .card:last-child {
1210 border-right: 0; } }
1184 1211
1185 .group.items .item { 1212 .group.items .item {
1186 position: relative; 1213 position: relative;
1187 margin-bottom: 32px; 1214 margin-bottom: 32px;
1188 padding: 0 16px; } 1215 padding: 0 16px; }
1189 1216
1190 .group.item-summary { 1217 .group.item-summary {
1191 height: 64px; 1218 height: 64px;
1192 margin-bottom: 32px; } 1219 margin-bottom: 32px; }
1193 1220
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 #navbar img { 1357 #navbar img {
1331 height: 16px; 1358 height: 16px;
1332 margin: 0; } 1359 margin: 0; }
1333 1360
1334 .js #navbar { 1361 .js #navbar {
1335 position: fixed; 1362 position: fixed;
1336 z-index: 1; 1363 z-index: 1;
1337 top: 0; 1364 top: 0;
1338 left: 0; } 1365 left: 0; }
1339 1366
1367 .site-title {
1368 margin: 0;
1369 font-size: 17px;
1370 line-height: 64px;
1371 word-spacing: -2px; }
1372
1373 .site-title a {
1374 color: #161616;
1375 text-decoration: none;
1376 font-weight: 300; }
1377
1378 .site-title a strong {
1379 font-weight: 400; }
1380
1340 @media (min-width: 1200px) { 1381 @media (min-width: 1200px) {
1341 html[dir="rtl"] #navbar-logo { 1382 html[dir="rtl"] .site-title {
1342 margin-right: 208px; } 1383 margin-right: 208px; }
1343 html[dir="ltr"] #navbar-logo { 1384 html[dir="ltr"] .site-title {
1344 margin-left: 208px; } } 1385 margin-left: 208px; } }
1345 1386
1346 @media (max-width: 1199px) { 1387 @media (max-width: 1199px) {
1347 .js #navbar { 1388 .js #navbar {
1348 display: none; } } 1389 display: none; } }
1349 1390
1350 #sidebar { 1391 #sidebar {
1351 text-transform: uppercase; 1392 text-transform: uppercase;
1352 color: #FFFFFF; 1393 color: #FFFFFF;
1353 background-color: #161616; 1394 background-color: #161616;
1354 font-size: 16px; 1395 font-size: 16px;
1355 font-weight: 400; 1396 font-weight: 400;
1356 line-height: 100%; } 1397 line-height: 100%; }
1357 #sidebar ul, 1398 #sidebar ul,
1358 #sidebar li { 1399 #sidebar li {
1359 margin: 0; 1400 margin: 0;
1360 padding: 0; 1401 padding: 0;
1361 text-align: inherit; } 1402 text-align: inherit; }
1362 #sidebar a,
1363 #sidebar a:hover,
1364 #sidebar a:active {
1365 display: block;
1366 text-decoration: none;
1367 color: inherit; }
1368 #sidebar #sidebar-brand { 1403 #sidebar #sidebar-brand {
1369 height: 64px; 1404 height: 64px;
1370 line-height: 64px; } 1405 line-height: 64px; }
1371 #sidebar #sidebar-logo { 1406 #sidebar #sidebar-logo {
1372 display: block; 1407 display: block;
1373 padding: 0 32px; 1408 padding: 0 32px;
1374 text-align: inherit; 1409 text-align: inherit;
1375 background-color: #8CC63E; } 1410 background-color: #8CC63E; }
1376 #sidebar #sidebar-logo img { 1411 #sidebar #sidebar-logo img {
1377 width: 32px; 1412 width: 32px;
1378 height: 32px; 1413 height: 32px;
1379 vertical-align: middle; } 1414 vertical-align: middle; }
1380 #sidebar #sidebar-open, 1415 #sidebar #sidebar-open,
1381 #sidebar #sidebar-close, 1416 #sidebar #sidebar-close,
1382 #sidebar #sidebar-title { 1417 #sidebar .site-title {
1383 display: none; } 1418 display: none; }
1384 #sidebar #sidebar-close img { 1419 #sidebar #sidebar-close img {
1385 width: 20px; 1420 width: 20px;
1386 height: 20px; } 1421 height: 20px; }
1387 #sidebar #sidebar-open img { 1422 #sidebar #sidebar-open img {
1388 width: 36px; 1423 width: 36px;
1389 height: 18px; } 1424 height: 18px; }
1425
1426 #sidebar-menus a,
1427 #sidebar-menus a:hover,
1428 #sidebar-menus a:active {
1429 display: block;
1430 text-decoration: none;
1431 color: inherit; }
1390 1432
1391 @media (min-width: 1200px) { 1433 @media (min-width: 1200px) {
1392 #sidebar { 1434 #sidebar {
1393 position: absolute; 1435 position: absolute;
1394 top: 0; 1436 top: 0;
1395 width: 208px; } 1437 width: 208px; }
1396 .js #sidebar { 1438 .js #sidebar {
1397 position: fixed; 1439 position: fixed;
1398 z-index: 2; 1440 z-index: 2;
1399 height: 100%; } 1441 height: 100%; }
(...skipping 12 matching lines...) Expand all
1412 left: 0; 1454 left: 0;
1413 overflow: hidden; 1455 overflow: hidden;
1414 width: 100%; 1456 width: 100%;
1415 height: 64px; } 1457 height: 64px; }
1416 .js #sidebar.open { 1458 .js #sidebar.open {
1417 height: 100%; } 1459 height: 100%; }
1418 html[dir="ltr"].js #sidebar { 1460 html[dir="ltr"].js #sidebar {
1419 text-align: left; } 1461 text-align: left; }
1420 html[dir="rtl"].js #sidebar { 1462 html[dir="rtl"].js #sidebar {
1421 text-align: right; } 1463 text-align: right; }
1422 #sidebar #sidebar-title, 1464 #sidebar .site-title,
1423 #sidebar #sidebar-open { 1465 #sidebar #sidebar-open {
1424 display: block; } 1466 display: block; }
1425 #sidebar.open #sidebar-open { 1467 #sidebar.open #sidebar-open {
1426 display: none; } 1468 display: none; }
1427 #sidebar.open #sidebar-close { 1469 #sidebar.open #sidebar-close {
1428 display: block; } 1470 display: block; }
1429 #sidebar #sidebar-brand { 1471 #sidebar #sidebar-brand {
1430 background-color: #FFFFFF; } 1472 background-color: #FFFFFF; }
1431 #sidebar #sidebar-open, 1473 #sidebar #sidebar-open,
1432 #sidebar #sidebar-close, 1474 #sidebar #sidebar-close,
1433 #sidebar #sidebar-logo, 1475 #sidebar #sidebar-logo,
1434 #sidebar #sidebar-title { 1476 #sidebar .site-title {
1435 padding: 0 16px; } 1477 padding: 0 16px; }
1436 #sidebar #sidebar-open, 1478 #sidebar #sidebar-open,
1437 #sidebar #sidebar-close, 1479 #sidebar #sidebar-close,
1438 #sidebar #sidebar-title { 1480 #sidebar .site-title {
1439 height: 64px; 1481 height: 64px;
1440 line-height: 64px; } 1482 line-height: 64px; }
1441 #sidebar #sidebar-open, 1483 #sidebar #sidebar-open,
1442 #sidebar #sidebar-close { 1484 #sidebar #sidebar-close {
1443 width: 64px; 1485 width: 64px;
1444 min-width: 64px; 1486 min-width: 64px;
1445 margin: 0; 1487 margin: 0;
1446 color: #FFFFFF; 1488 color: #FFFFFF;
1447 border: none; 1489 border: none;
1448 background-color: #161616; 1490 background-color: #161616;
1449 font-size: 32px; } 1491 font-size: 32px; }
1450 #sidebar #sidebar-title img {
1451 display: inline-block;
1452 height: 16px;
1453 vertical-align: middle; }
1454 html[dir="ltr"] #sidebar-open, 1492 html[dir="ltr"] #sidebar-open,
1455 html[dir="ltr"] #sidebar-close, 1493 html[dir="ltr"] #sidebar-close,
1456 html[dir="ltr"] #sidebar-logo, 1494 html[dir="ltr"] #sidebar-logo,
1457 html[dir="ltr"] #sidebar-title { 1495 html[dir="ltr"] #sidebar .site-title {
1458 float: left; } 1496 float: left; }
1459 html[dir="rtl"] #sidebar-open, 1497 html[dir="rtl"] #sidebar-open,
1460 html[dir="rtl"] #sidebar-close, 1498 html[dir="rtl"] #sidebar-close,
1461 html[dir="rtl"] #sidebar-logo, 1499 html[dir="rtl"] #sidebar-logo,
1462 html[dir="rtl"] #sidebar-title { 1500 html[dir="rtl"] #sidebar .site-title {
1463 float: right; } } 1501 float: right; } }
1464 1502
1465 #primary-navigation li { 1503 #primary-navigation li {
1466 position: relative; } 1504 position: relative; }
1467 1505
1468 #primary-navigation ul ul li { 1506 #primary-navigation ul ul li {
1469 color: #8CC63E; 1507 color: #8CC63E;
1470 font-size: 14px; } 1508 font-size: 14px; }
1471 1509
1472 #primary-navigation .active > a { 1510 #primary-navigation .active > a {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 height: 0; 1707 height: 0;
1670 content: " "; 1708 content: " ";
1671 border-top: 2px solid #FFFFFF; } 1709 border-top: 2px solid #FFFFFF; }
1672 #footer a { 1710 #footer a {
1673 color: #FFFFFF; } 1711 color: #FFFFFF; }
1674 #footer a:hover { 1712 #footer a:hover {
1675 text-decoration: underline; 1713 text-decoration: underline;
1676 color: #8CC63E !important; } 1714 color: #8CC63E !important; }
1677 #footer p { 1715 #footer p {
1678 color: #E1E1E1; } 1716 color: #E1E1E1; }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld