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

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

Issue 29536654: Issue 5102 - Replaced semantically incorrect <hr> elements with :after styles (Closed) Base URL: https://hg.adblockplus.org/web.acceptableads.com
Patch Set: Created Sept. 5, 2017, 2:40 p.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-present eyeo GmbH 2 // Copyright (C) 2016-present 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 } 409 }
410 410
411 pre 411 pre
412 { 412 {
413 overflow: scroll; 413 overflow: scroll;
414 margin: 0; 414 margin: 0;
415 } 415 }
416 416
417 // Horizontal rules //////////////////////////////////////////////////////////// 417 // Horizontal rules ////////////////////////////////////////////////////////////
418 418
419 hr 419 hr,
ire 2017/09/07 09:20:17 NIT: We aren't using the hr element anywhere else.
juliandoucette 2017/09/11 16:24:14 Acknowledged. I should have checked.
420 .outer h1:after
420 { 421 {
422 display: block;
421 width: $sm + $xs; 423 width: $sm + $xs;
422 height: 3px; 424 height: 3px;
423 margin: $sm 0; 425 margin: $sm 0;
424 border: none; 426 border: none;
425 // hr background color is the line color
426 background-color: $primary-fg; 427 background-color: $primary-fg;
427 } 428 }
428 429
429 // Place hr under h1 or h2 inside hN margin 430 // Place hr under h1 or h2 inside hN margin
430 h1 + hr, 431 h2 + hr,
ire 2017/09/07 09:20:18 The h2 + hr selector isn't relevant anymore
juliandoucette 2017/09/11 16:24:14 Acknowledged. I should have checked.
431 h2 + hr 432 h1:after
ire 2017/09/07 09:20:18 This should be `.outer h1:after`. Also, all three
juliandoucette 2017/09/11 16:24:14 Acknowledged. If you are correct about hr and h2
432 { 433 {
434 content: "";
433 position: absolute; 435 position: absolute;
434 margin: -$md 0 $md 0; 436 margin: -$md 0 $md 0;
435 437
436 @media (max-width: $mobile-breakpoint) 438 @media (max-width: $mobile-breakpoint)
437 { 439 {
438 margin-top: -$sm - 5px; 440 margin-top: -$sm - 5px;
439 } 441 }
440 } 442 }
441 443
444 .outer h1:after
445 {
446 margin-top: 32px;
ire 2017/09/07 09:20:18 This style seems to be overriding the mobile style
juliandoucette 2017/09/11 16:24:14 Good catch.
447 }
448
442 // center hr in centered blocks 449 // center hr in centered blocks
443 .center hr 450 .center hr
ire 2017/09/07 09:20:18 NIT: See comment above. I don't think this is rele
juliandoucette 2017/09/11 16:24:14 Acknowledged.
444 { 451 {
445 margin: $sm auto; 452 margin: $sm auto;
446 } 453 }
447 454
448 // Tables ////////////////////////////////////////////////////////////////////// 455 // Tables //////////////////////////////////////////////////////////////////////
449 456
450 // !important here because browsers will override otherwise. 457 // !important here because browsers will override otherwise.
451 458
452 table 459 table
453 { 460 {
(...skipping 29 matching lines...) Expand all
483 { 490 {
484 vertical-align: bottom; 491 vertical-align: bottom;
485 text-transform: uppercase; 492 text-transform: uppercase;
486 border-bottom: 2px solid $info; 493 border-bottom: 2px solid $info;
487 } 494 }
488 495
489 table tbody + tbody 496 table tbody + tbody
490 { 497 {
491 border-top: 2px solid $info; 498 border-top: 2px solid $info;
492 } 499 }
OLDNEW

Powered by Google App Engine
This is Rietveld