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

Unified 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: Fix alignment of hr under headings Created July 6, 2017, 10:25 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: static/css/main.css
===================================================================
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -423,38 +423,64 @@
h2 + .row, .center blockquote + .row,
h1 + .row,
h2 + hr + .row, .center blockquote + hr + .row,
h1 + hr + .row {
margin-top: -16px; }
.section {
- margin: 96px 0; }
+ margin-bottom: 96px; }
+ @media (max-width: 768px) {
+ .section {
+ margin-bottom: 32px; } }
.section .section {
- margin: 64px 0; }
+ margin-bottom: 64px; }
+ @media (max-width: 768px) {
+ .section .section {
+ margin-bottom: 32px; } }
h1, h2, .center blockquote, h3, .group.items .item::before, h4, h5, h6 .h1, .h2, .h3, .h4, .h5, .h6 {
text-transform: uppercase;
font-weight: 700;
line-height: 120%; }
h1,
.h1 {
margin: 96px 0 64px 0;
text-transform: none;
font-size: 42px;
font-weight: 300; }
+ @media (max-width: 768px) {
+ h1,
+ .h1 {
+ font-size: 30px;
+ margin-top: 32px; } }
+ @media (max-width: 544px) {
+ h1,
+ .h1 {
+ font-size: 26px;
+ margin-bottom: 44px; } }
h2, .center blockquote,
.h2 {
margin: 64px 0 32px 0;
font-size: 28px;
font-weight: 700; }
+ @media (max-width: 768px) {
+ h2, .center blockquote,
+ .h2 {
+ font-size: 24px;
+ margin-top: 32px; } }
+ @media (max-width: 544px) {
+ h2, .center blockquote,
+ .h2 {
+ font-size: 22px;
+ margin-bottom: 16px; } }
h3, .card h1, .card h2, .card .center blockquote, .center .card blockquote, .card h3, .card h4, .card h5, .card h6 .h1, h6 .card .h1, .card .h2, .card .h3, .card .h4, .card .h5, .card .h6, .group.items .item::before,
.h3,
.group.items .item h1,
.group.items .item h2,
.group.items .item .center blockquote,
.center .group.items .item blockquote,
.group.items .item h3,
@@ -466,41 +492,96 @@
.group.items .item .h2,
.group.items .item .h3,
.group.items .item .h4,
.group.items .item .h5,
.group.items .item .h6 {
margin: 64px 0 32px 0;
font-size: 22px;
font-weight: 700; }
+ @media (max-width: 768px) {
+ h3, .card h1, .card h2, .card .center blockquote, .center .card blockquote, .card h3, .card h4, .card h5, .card h6 .h1, h6 .card .h1, .card .h2, .card .h3, .card .h4, .card .h5, .card .h6, .group.items .item::before,
+ .h3,
+ .group.items .item h1,
+ .group.items .item h2,
+ .group.items .item .center blockquote,
+ .center .group.items .item blockquote,
+ .group.items .item h3,
+ .group.items .item .item::before,
+ .group.items .item h4,
+ .group.items .item h5,
+ .group.items .item h6 .h1,
+ h6 .group.items .item .h1,
+ .group.items .item .h2,
+ .group.items .item .h3,
+ .group.items .item .h4,
+ .group.items .item .h5,
+ .group.items .item .h6 {
+ font-size: 20px;
+ margin-top: 32px; } }
+ @media (max-width: 544px) {
+ h3, .card h1, .card h2, .card .center blockquote, .center .card blockquote, .card h3, .card h4, .card h5, .card h6 .h1, h6 .card .h1, .card .h2, .card .h3, .card .h4, .card .h5, .card .h6, .group.items .item::before,
+ .h3,
+ .group.items .item h1,
+ .group.items .item h2,
+ .group.items .item .center blockquote,
+ .center .group.items .item blockquote,
+ .group.items .item h3,
+ .group.items .item .item::before,
+ .group.items .item h4,
+ .group.items .item h5,
+ .group.items .item h6 .h1,
+ h6 .group.items .item .h1,
+ .group.items .item .h2,
+ .group.items .item .h3,
+ .group.items .item .h4,
+ .group.items .item .h5,
+ .group.items .item .h6 {
+ margin-bottom: 16px; } }
h4,
.h4 {
margin: 32px 0 16px 0;
font-size: 20px;
font-weight: 700; }
+ @media (max-width: 544px) {
+ h4,
+ .h4 {
+ font-size: 18px; } }
h5, .card.list h1, .card.list h2, .card.list .center blockquote, .center .card.list blockquote, .card.list h3, .card.list .group.items .item::before, .group.items .card.list .item::before, .card.list h4, .card.list h5, .card.list h6 .h1, h6 .card.list .h1, .card.list .h2, .card.list .h3, .card.list .h4, .card.list .h5, .card.list .h6, #footer h1, #footer h2, #footer .center blockquote, .center #footer blockquote, #footer h3, #footer .group.items .item::before, .group.items #footer .item::before, #footer h4, #footer h5, #footer h6 .h1, h6 #footer .h1, #footer .h2, #footer .h3, #footer .h4, #footer .h5, #footer .h6,
.h5 {
margin: 16px 0;
font-size: 18px; }
+ @media (max-width: 544px) {
+ h5, .card.list h1, .card.list h2, .card.list .center blockquote, .center .card.list blockquote, .card.list h3, .card.list .group.items .item::before, .group.items .card.list .item::before, .card.list h4, .card.list h5, .card.list h6 .h1, h6 .card.list .h1, .card.list .h2, .card.list .h3, .card.list .h4, .card.list .h5, .card.list .h6, #footer h1, #footer h2, #footer .center blockquote, .center #footer blockquote, #footer h3, #footer .group.items .item::before, .group.items #footer .item::before, #footer h4, #footer h5, #footer h6 .h1, h6 #footer .h1, #footer .h2, #footer .h3, #footer .h4, #footer .h5, #footer .h6,
+ .h5 {
+ font-size: 16px; } }
h6,
.h6 {
margin: 16px 0;
font-size: 18px;
font-weight: 400; }
+ @media (max-width: 544px) {
+ h6,
+ .h6 {
+ font-size: 16px; } }
html,
body {
color: #161616;
font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-size: 18px;
font-weight: 300;
line-height: 120%; }
+ @media (max-width: 544px) {
+ html,
+ body {
+ font-size: 16px; } }
small,
.small {
margin-bottom: 8px;
font-size: 70%;
line-height: 80%; }
blockquote,
@@ -602,16 +683,19 @@
dd {
margin: 16px 0 32px 0; }
dt {
font-size: 20px;
text-transform: uppercase;
font-weight: 700; }
+ @media (max-width: 768px) {
+ dt {
+ font-size: 18px; } }
blockquote {
margin: 0;
padding: 0 32px;
text-transform: uppercase;
font-size: 18px;
font-weight: 400;
font-style: italic; }
@@ -622,18 +706,22 @@
html[dir="rtl"] blockquote {
border-right: 4px solid #E1E1E1; }
html .center blockquote {
border: none; }
.center blockquote {
margin: 0;
- padding: 96px 0;
+ padding: 64px 0;
font-style: normal; }
+ @media (max-width: 768px) {
+ .center blockquote {
+ font-size: 22px;
+ padding: 32px 0; } }
.center blockquote p:last-child {
margin-top: -8px; }
cite {
font-size: 14px;
font-style: normal; }
@@ -671,16 +759,20 @@
margin: 16px 0;
border: none;
background-color: #161616; }
h1 + hr,
h2 + hr, .center blockquote + hr {
position: absolute;
margin: -32px 0 32px 0; }
+ @media (max-width: 544px) {
+ h1 + hr,
+ h2 + hr, .center blockquote + hr {
+ margin-top: -21px; } }
.center hr {
margin: 16px auto; }
table {
border-collapse: collapse !important; }
table td,
@@ -775,16 +867,28 @@
margin-bottom: 64px;
text-align: right; }
@media (min-width: 544px) {
.inline-buttons a,
.inline-buttons input {
margin-left: 16px; } }
+.btn-container {
+ margin-top: 16px;
+ margin-bottom: 16px; }
+ @media (min-width: 544px) {
+ .btn-container {
+ margin-top: 32px;
+ margin-bottom: 32px; } }
+ @media (min-width: 768px) {
+ .btn-container {
+ margin-top: 64px;
+ margin-bottom: 64px; } }
+
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
@@ -852,16 +956,21 @@
padding-left: 16px; }
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 {
float: left; }
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 {
float: right; }
+@media (max-width: 991px) {
+ .row .col-3, .row .col-4, .row .col-5, .row .col-6, .row .col-7, .row .col-8, .row .col-9 {
+ padding-top: 8px;
+ padding-bottom: 8px; } }
+
@media (min-width: 544px) {
.col-3 {
width: 50%; }
html[dir="ltr"] .push-3 {
left: 50%; }
html[dir="ltr"] .pull-3 {
right: 50%; }
html[dir="rtl"] .push-3 {
@@ -939,33 +1048,46 @@
padding: 32px;
color: #161616;
border: 1px solid #161616;
background-color: #FFFFFF; }
.card h1, .card h2, .card .center blockquote, .center .card blockquote, .card h3, .card .group.items .item::before, .group.items .card .item::before, .card h4, .card h5, .card h6 .h1, h6 .card .h1, .card .h2, .card .h3, .card .h4, .card .h5, .card .h6 {
height: 48px;
margin: 16px 0 16px 0; }
+ @media (max-width: 544px) {
+ .card h1, .card h2, .card .center blockquote, .center .card blockquote, .card h3, .card .group.items .item::before, .group.items .card .item::before, .card h4, .card h5, .card h6 .h1, h6 .card .h1, .card .h2, .card .h3, .card .h4, .card .h5, .card .h6 {
+ height: auto; } }
.card-icon {
margin: 16px 0; }
.center .card-icon {
margin: 48px 0 32px 0; }
+ @media (max-width: 768px) {
+ .center .card-icon {
+ margin-top: 32px; } }
+ @media (max-width: 544px) {
+ .center .card-icon {
+ margin-top: 16px; } }
img.card-icon,
.card-icon img {
height: 48px; }
.card img.block {
margin: 0; }
.card-summary {
margin: 32px 0;
height: 64px; }
+ @media (max-width: 544px) {
+ .card-summary {
+ margin: 16px;
+ height: auto; } }
.card button, .card input[type="button"], .card input[type="reset"], .card input[type="submit"], .card .btn-outline-primary, .card .btn-outline-accent, .card .btn-primary, .card .btn-accent {
display: block;
width: 100%;
margin-bottom: -8px; }
.card li::before {
width: 32px;
@@ -1030,33 +1152,43 @@
html[dir="rtl"] .items .item::before {
right: 0; }
.group-container {
width: 100%;
max-width: 1140px;
margin: 0 auto;
- padding: 32px 0; }
+ padding: 96px 0; }
+ @media (max-width: 992px) {
+ .group-container {
+ padding: 8px; } }
.group-container > h1, .group-container > h2, .center .group-container > blockquote, .group-container > h3, .group.items .group-container > .item::before, .group-container > h4, .group-container > h5, h6 .group-container > .h1, .group-container > .h2, .group-container > .h3, .group-container > .h4, .group-container > .h5, .group-container > .h6,
.group-container > p {
- margin: 32px auto;
+ margin: 64px auto;
padding: 0 16px; }
+@media (max-width: 992px) {
+ .group-container > p {
+ margin: 32px auto; } }
+
.group {
display: table;
width: 100%;
table-layout: fixed; }
.group-container .group {
margin-bottom: 0; }
.group-container > h1, .group-container > h2, .center .group-container > blockquote, .group-container > h3, .group.items .group-container > .item::before, .group-container > h4, .group-container > h5, h6 .group-container > .h1, .group-container > .h2, .group-container > .h3, .group-container > .h4, .group-container > .h5, .group-container > .h6 {
margin-top: 0; }
+ @media (max-width: 992px) {
+ .group-container > h1, .group-container > h2, .center .group-container > blockquote, .group-container > h3, .group.items .group-container > .item::before, .group-container > h4, .group-container > h5, h6 .group-container > .h1, .group-container > .h2, .group-container > .h3, .group-container > .h4, .group-container > .h5, .group-container > .h6 {
+ margin: 32px auto; } }
.group .card,
.group .item {
display: table-cell;
vertical-align: top; }
.group.items .item::before {
margin-top: 16px;
@@ -1199,16 +1331,19 @@
.col-6.masthead-body {
padding: 16px 32px; }
.masthead-img img {
padding: 32px 16px 0 16px;
margin: 0; } }
.footnote {
margin-top: 64px; }
+ @media (max-width: 768px) {
+ .footnote {
+ margin-top: 32px; } }
.footnote-ref {
font-weight: 700;
font-size: 12px; }
.footnote li > p {
margin: 0;
display: inline-block; }
@@ -1543,20 +1678,31 @@
padding-right: 208px; } }
#footer {
padding-top: 64px;
padding-bottom: 96px;
font-size: 70%;
background-color: #292929;
color: #FFFFFF; }
+ @media (max-width: 768px) {
+ #footer {
+ padding-top: 32px;
+ padding-bottom: 64px; } }
+ @media (max-width: 544px) {
+ #footer {
+ padding-top: 16px;
+ padding-bottom: 16px; } }
#footer h1, #footer h2, #footer .center blockquote, .center #footer blockquote, #footer h3, #footer .group.items .item::before, .group.items #footer .item::before, #footer h4, #footer h5, #footer h6 .h1, h6 #footer .h1, #footer .h2, #footer .h3, #footer .h4, #footer .h5, #footer .h6 {
position: relative;
margin-bottom: 32px;
padding-top: 8px; }
+ @media (max-width: 544px) {
+ #footer h1, #footer h2, #footer .center blockquote, .center #footer blockquote, #footer h3, #footer .group.items .item::before, .group.items #footer .item::before, #footer h4, #footer h5, #footer h6 .h1, h6 #footer .h1, #footer .h2, #footer .h3, #footer .h4, #footer .h5, #footer .h6 {
+ margin-bottom: 16px; } }
#footer h1::before, #footer h2::before, #footer .center blockquote::before, .center #footer blockquote::before, #footer h3::before, #footer .group.items .item::before, .group.items #footer .item::before, #footer h4::before, #footer h5::before, #footer h6 .h1::before, h6 #footer .h1::before, #footer .h2::before, #footer .h3::before, #footer .h4::before, #footer .h5::before, #footer .h6::before {
display: block;
position: absolute;
top: 0;
left: 0;
width: 16px;
height: 0;
content: " ";

Powered by Google App Engine
This is Rietveld