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

Side by Side Diff: static/scss/content/_typography.scss

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 // This file is part of acceptableads.org. 1 // This file is part of acceptableads.org.
2 // Copyright (C) 2016 Eyeo GmbH 2 // Copyright (C) 2016 Eyeo GmbH
3 // 3 //
4 // acceptableads.org is free software: you can redistribute it and/or modify 4 // acceptableads.org is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by 5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or 6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version. 7 // (at your option) any later version.
8 // 8 //
9 // acceptableads.org is distributed in the hope that it will be useful, 9 // acceptableads.org is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 12 matching lines...) Expand all
23 line-height: 120%; 23 line-height: 120%;
24 } 24 }
25 25
26 h1, 26 h1,
27 .h1 27 .h1
28 { 28 {
29 margin: $xl 0 $lg 0; 29 margin: $xl 0 $lg 0;
30 text-transform: none; 30 text-transform: none;
31 font-size: $font-size-h1; 31 font-size: $font-size-h1;
32 font-weight: 300; 32 font-weight: 300;
33
34 @media (max-width: $tablet-breakpoint)
35 {
36 font-size: $font-size-h1 - 12px;
37 margin-top: $md;
38 }
33 } 39 }
34 40
35 h2, 41 h2,
36 .h2 42 .h2
37 { 43 {
38 margin: $lg 0 $md 0; 44 margin: $lg 0 $md 0;
39 font-size: $font-size-h2; 45 font-size: $font-size-h2;
40 font-weight: 700; 46 font-weight: 700;
47
48 @media (max-width: $tablet-breakpoint)
49 {
50 font-size: $font-size-h2 - 6px;
51 margin-top: $md;
52 }
41 } 53 }
42 54
43 h3, 55 h3,
44 .h3 56 .h3
45 { 57 {
46 margin: $lg 0 $md 0; 58 margin: $lg 0 $md 0;
47 font-size: $font-size-h3; 59 font-size: $font-size-h3;
48 font-weight: 700; 60 font-weight: 700;
49 } 61 }
50 62
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 297
286 html .center blockquote 298 html .center blockquote
287 { 299 {
288 border: none; 300 border: none;
289 } 301 }
290 302
291 .center blockquote 303 .center blockquote
292 { 304 {
293 @extend h2; 305 @extend h2;
294 margin: 0; 306 margin: 0;
295 padding: $xl 0; 307 padding: $lg 0;
296 font-style: normal; 308 font-style: normal;
309
310 @media (max-width: $tablet-breakpoint)
311 {
312 font-size: $font-size-h3;
313 padding: $md 0;
314 }
297 } 315 }
298 316
299 .center blockquote p:last-child 317 .center blockquote p:last-child
300 { 318 {
301 margin-top: -$xs; 319 margin-top: -$xs;
302 } 320 }
303 321
304 cite 322 cite
305 { 323 {
306 font-size: $font-size-sm; 324 font-size: $font-size-sm;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 { 433 {
416 vertical-align: bottom; 434 vertical-align: bottom;
417 text-transform: uppercase; 435 text-transform: uppercase;
418 border-bottom: 2px solid $info; 436 border-bottom: 2px solid $info;
419 } 437 }
420 438
421 table tbody + tbody 439 table tbody + tbody
422 { 440 {
423 border-top: 2px solid $info; 441 border-top: 2px solid $info;
424 } 442 }
OLDNEW

Powered by Google App Engine
This is Rietveld