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: 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 // 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 screen and (max-width: $tablet-breakpoint)
35 {
36 font-size: $font-size-h1 - 10px;
37 margin: $md 0 $lg 0;
juliandoucette 2017/05/30 14:22:57 NIT: It would be more straightforward if you just
ire 2017/05/30 17:44:59 Acknowledged.
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 screen and (max-width: $tablet-breakpoint)
49 {
50 margin: $md 0 $md 0;
51 }
41 } 52 }
42 53
43 h3, 54 h3,
44 .h3 55 .h3
45 { 56 {
46 margin: $lg 0 $md 0; 57 margin: $lg 0 $md 0;
47 font-size: $font-size-h3; 58 font-size: $font-size-h3;
48 font-weight: 700; 59 font-weight: 700;
49 } 60 }
50 61
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 296
286 html .center blockquote 297 html .center blockquote
287 { 298 {
288 border: none; 299 border: none;
289 } 300 }
290 301
291 .center blockquote 302 .center blockquote
292 { 303 {
293 @extend h2; 304 @extend h2;
294 margin: 0; 305 margin: 0;
295 padding: $xl 0; 306 padding: $lg 0;
296 font-style: normal; 307 font-style: normal;
308
309 @media screen and (max-width: $tablet-breakpoint)
310 {
311 font-size: $font-size-h3;
312 padding: $md 0;
313 }
297 } 314 }
298 315
299 .center blockquote p:last-child 316 .center blockquote p:last-child
300 { 317 {
301 margin-top: -$xs; 318 margin-top: -$xs;
302 } 319 }
303 320
304 cite 321 cite
305 { 322 {
306 font-size: $font-size-sm; 323 font-size: $font-size-sm;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 { 432 {
416 vertical-align: bottom; 433 vertical-align: bottom;
417 text-transform: uppercase; 434 text-transform: uppercase;
418 border-bottom: 2px solid $info; 435 border-bottom: 2px solid $info;
419 } 436 }
420 437
421 table tbody + tbody 438 table tbody + tbody
422 { 439 {
423 border-top: 2px solid $info; 440 border-top: 2px solid $info;
424 } 441 }
OLDNEW

Powered by Google App Engine
This is Rietveld