 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
    
  
    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: | ||
| Right: | 
| OLD | NEW | 
|---|---|
| 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 Loading... | |
| 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 } | |
| 39 @media (max-width: $mobile-breakpoint) | |
| 40 { | |
| 41 font-size: $font-size-h1 - 16px; | |
| 42 margin-bottom: $lg - 20px; | |
| 43 } | |
| 33 } | 44 } | 
| 34 | 45 | 
| 35 h2, | 46 h2, | 
| 36 .h2 | 47 .h2 | 
| 37 { | 48 { | 
| 38 margin: $lg 0 $md 0; | 49 margin: $lg 0 $md 0; | 
| 39 font-size: $font-size-h2; | 50 font-size: $font-size-h2; | 
| 40 font-weight: 700; | 51 font-weight: 700; | 
| 52 | |
| 53 @media (max-width: $tablet-breakpoint) | |
| 54 { | |
| 55 font-size: $font-size-h2 - 4px; | |
| 56 margin-top: $md; | |
| 57 } | |
| 58 @media (max-width: $mobile-breakpoint) | |
| 59 { | |
| 60 font-size: $font-size-h2 - 6px; | |
| 61 margin-bottom: $sm; | |
| 62 } | |
| 41 } | 63 } | 
| 42 | 64 | 
| 43 h3, | 65 h3, | 
| 44 .h3 | 66 .h3 | 
| 45 { | 67 { | 
| 46 margin: $lg 0 $md 0; | 68 margin: $lg 0 $md 0; | 
| 47 font-size: $font-size-h3; | 69 font-size: $font-size-h3; | 
| 48 font-weight: 700; | 70 font-weight: 700; | 
| 71 | |
| 72 @media (max-width: $tablet-breakpoint) | |
| 73 { | |
| 74 font-size: $font-size-h3 - 2px; | |
| 75 margin-top: $md; | |
| 76 } | |
| 77 @media (max-width: $mobile-breakpoint) | |
| 78 { | |
| 79 margin-bottom: $sm; | |
| 80 } | |
| 49 } | 81 } | 
| 50 | 82 | 
| 51 h4, | 83 h4, | 
| 52 .h4 | 84 .h4 | 
| 53 { | 85 { | 
| 54 margin: $md 0 $sm 0; | 86 margin: $md 0 $sm 0; | 
| 55 font-size: $font-size-h4; | 87 font-size: $font-size-h4; | 
| 56 font-weight: 700; | 88 font-weight: 700; | 
| 89 | |
| 90 @media (max-width: $mobile-breakpoint) | |
| 91 { | |
| 92 font-size: $font-size-h4 - 2px; | |
| 93 } | |
| 57 } | 94 } | 
| 58 | 95 | 
| 59 h5, | 96 h5, | 
| 60 .h5 | 97 .h5 | 
| 61 { | 98 { | 
| 62 margin: $sm 0; | 99 margin: $sm 0; | 
| 63 font-size: $font-size-h5; | 100 font-size: $font-size-h5; | 
| 101 | |
| 102 @media (max-width: $mobile-breakpoint) | |
| 103 { | |
| 104 font-size: $font-size-h5 - 2px; | |
| 105 } | |
| 64 } | 106 } | 
| 65 | 107 | 
| 66 h6, | 108 h6, | 
| 67 .h6 | 109 .h6 | 
| 68 { | 110 { | 
| 69 margin: $sm 0; | 111 margin: $sm 0; | 
| 70 font-size: $font-size-h6; | 112 font-size: $font-size-h6; | 
| 71 font-weight: 400; | 113 font-weight: 400; | 
| 114 | |
| 115 @media (max-width: $mobile-breakpoint) | |
| 116 { | |
| 117 font-size: $font-size-h6 - 2px; | |
| 118 } | |
| 72 } | 119 } | 
| 73 | 120 | 
| 74 // Main text /////////////////////////////////////////////////////////////////// | 121 // Main text /////////////////////////////////////////////////////////////////// | 
| 75 | 122 | 
| 76 html, | 123 html, | 
| 77 body | 124 body | 
| 78 { | 125 { | 
| 79 color: $primary-fg; | 126 color: $primary-fg; | 
| 80 // @see https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practic al-guide/ | 127 // @see https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practic al-guide/ | 
| 81 font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, | 128 font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, | 
| 82 "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", | 129 "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", | 
| 83 "Fira Sans", "Droid Sans", "Helvetica Neue", | 130 "Fira Sans", "Droid Sans", "Helvetica Neue", | 
| 84 sans-serif; | 131 sans-serif; | 
| 85 font-size: $font-size-lg; | 132 font-size: $font-size-lg; | 
| 86 font-weight: 300; | 133 font-weight: 300; | 
| 87 line-height: 120%; | 134 line-height: 120%; | 
| 135 | |
| 136 @media (max-width: $mobile-breakpoint) | |
| 137 { | |
| 138 font-size: $font-size-lg - 2px; | |
| 139 } | |
| 88 } | 140 } | 
| 89 | 141 | 
| 90 small, | 142 small, | 
| 91 .small | 143 .small | 
| 92 { | 144 { | 
| 93 margin-bottom: $xs; | 145 margin-bottom: $xs; | 
| 94 font-size: 70%; | 146 font-size: 70%; | 
| 95 line-height: 80%; | 147 line-height: 80%; | 
| 96 } | 148 } | 
| 97 | 149 | 
| 98 blockquote, | 150 blockquote, | 
| 99 p, | 151 p, | 
| 100 ul, | 152 ul, | 
| 101 ol, | 153 ol, | 
| 102 dl, | 154 dl, | 
| 103 .block | 155 .block | 
| 104 { | 156 { | 
| 105 margin: $sm 0; | 157 margin: $sm 0; | 
| 106 } | 158 } | 
| 107 | 159 | 
| 160 .p-container | |
| 
ire
2017/06/27 08:36:31
Note: I couldn't really figure out where else to p
 
juliandoucette
2017/07/03 23:12:38
I don't like the name of this class because it's t
 
ire
2017/07/04 11:03:11
Yeah you'e right it could have a better name. 
I
 
juliandoucette
2017/07/04 15:33:08
This is what I had in mind.
But it's not clear:
-
 
ire
2017/07/05 10:33:09
Ah I see what you mean! The .section class *should
 
ire
2017/07/05 10:53:50
Done.
 | |
| 161 { | |
| 162 margin-bottom: $md; | |
| 163 | |
| 164 @media (min-width: $mobile-breakpoint) | |
| 165 { | |
| 166 margin-bottom: $lg; | |
| 167 } | |
| 168 | |
| 169 @media (min-width: $tablet-breakpoint) | |
| 170 { | |
| 171 margin-bottom: $xl; | |
| 172 } | |
| 173 } | |
| 174 | |
| 175 .p-container p:first-child | |
| 
ire
2017/06/27 08:36:32
This is a change from the `.row p:first-child` sel
 | |
| 176 { | |
| 177 margin-top: 0; | |
| 178 } | |
| 179 | |
| 108 // Links /////////////////////////////////////////////////////////////////////// | 180 // Links /////////////////////////////////////////////////////////////////////// | 
| 109 | 181 | 
| 110 a | 182 a | 
| 111 { | 183 { | 
| 112 cursor: pointer; | 184 cursor: pointer; | 
| 113 text-decoration: underline; | 185 text-decoration: underline; | 
| 114 color: $accent; | 186 color: $accent; | 
| 115 font-weight: 400; | 187 font-weight: 400; | 
| 116 } | 188 } | 
| 117 | 189 | 
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 252 dd | 324 dd | 
| 253 { | 325 { | 
| 254 margin: $sm 0 $md 0; | 326 margin: $sm 0 $md 0; | 
| 255 } | 327 } | 
| 256 | 328 | 
| 257 dt | 329 dt | 
| 258 { | 330 { | 
| 259 font-size: $font-size-xl; | 331 font-size: $font-size-xl; | 
| 260 text-transform: uppercase; | 332 text-transform: uppercase; | 
| 261 font-weight: 700; | 333 font-weight: 700; | 
| 334 | |
| 335 @media (max-width: $tablet-breakpoint) | |
| 336 { | |
| 337 font-size: $font-size-xl - 2px; | |
| 338 } | |
| 262 } | 339 } | 
| 263 | 340 | 
| 264 // Blockquotes ///////////////////////////////////////////////////////////////// | 341 // Blockquotes ///////////////////////////////////////////////////////////////// | 
| 265 | 342 | 
| 266 blockquote | 343 blockquote | 
| 267 { | 344 { | 
| 268 margin: 0; | 345 margin: 0; | 
| 269 padding: 0 $md; | 346 padding: 0 $md; | 
| 270 text-transform: uppercase; | 347 text-transform: uppercase; | 
| 271 font-size: $font-size-lg; | 348 font-size: $font-size-lg; | 
| (...skipping 13 matching lines...) Expand all Loading... | |
| 285 | 362 | 
| 286 html .center blockquote | 363 html .center blockquote | 
| 287 { | 364 { | 
| 288 border: none; | 365 border: none; | 
| 289 } | 366 } | 
| 290 | 367 | 
| 291 .center blockquote | 368 .center blockquote | 
| 292 { | 369 { | 
| 293 @extend h2; | 370 @extend h2; | 
| 294 margin: 0; | 371 margin: 0; | 
| 295 padding: $xl 0; | 372 padding: $lg 0; | 
| 296 font-style: normal; | 373 font-style: normal; | 
| 374 | |
| 375 @media (max-width: $tablet-breakpoint) | |
| 376 { | |
| 377 font-size: $font-size-h3; | |
| 378 padding: $md 0; | |
| 379 } | |
| 297 } | 380 } | 
| 298 | 381 | 
| 299 .center blockquote p:last-child | 382 .center blockquote p:last-child | 
| 300 { | 383 { | 
| 301 margin-top: -$xs; | 384 margin-top: -$xs; | 
| 302 } | 385 } | 
| 303 | 386 | 
| 304 cite | 387 cite | 
| 305 { | 388 { | 
| 306 font-size: $font-size-sm; | 389 font-size: $font-size-sm; | 
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 415 { | 498 { | 
| 416 vertical-align: bottom; | 499 vertical-align: bottom; | 
| 417 text-transform: uppercase; | 500 text-transform: uppercase; | 
| 418 border-bottom: 2px solid $info; | 501 border-bottom: 2px solid $info; | 
| 419 } | 502 } | 
| 420 | 503 | 
| 421 table tbody + tbody | 504 table tbody + tbody | 
| 422 { | 505 { | 
| 423 border-top: 2px solid $info; | 506 border-top: 2px solid $info; | 
| 424 } | 507 } | 
| OLD | NEW |