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: Implement container classes in scss Created June 27, 2017, 8:32 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
@@ -416,45 +416,65 @@
padding: 0;
font-size: 18px;
line-height: inherit; }
a, img {
border: none;
outline: none; }
-h2 + .row, .center blockquote + .row,
-h1 + .row,
-h2 + hr + .row, .center blockquote + hr + .row,
-h1 + hr + .row {
- margin-top: -16px; }
-
.section {
margin: 96px 0; }
+ @media (max-width: 768px) {
+ .section {
+ margin: 32px 0; } }
.section .section {
margin: 64px 0; }
+ @media (max-width: 768px) {
+ .section .section {
+ margin: 32px 0; } }
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,56 +486,123 @@
.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,
p,
ul,
ol,
dl,
.block {
margin: 16px 0; }
+.p-container {
+ margin-bottom: 32px; }
+ @media (min-width: 544px) {
+ .p-container {
+ margin-bottom: 64px; } }
+ @media (min-width: 768px) {
+ .p-container {
+ margin-bottom: 96px; } }
+
+.p-container p:first-child {
+ margin-top: 0; }
+
a {
cursor: pointer;
text-decoration: underline;
color: #8CC63E;
font-weight: 400; }
a:hover, a:active {
color: #292929; }
@@ -602,16 +689,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 +712,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; }
@@ -775,16 +869,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 +958,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 +1050,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 +1154,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 +1333,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 +1680,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