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

Unified Diff: static/css/main.css

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.
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
@@ -748,33 +748,41 @@
pre > code {
padding: 0; }
pre {
overflow: scroll;
margin: 0; }
-hr {
+hr,
+.hr,
+.outer h1:after {
+ display: block;
width: 24px;
height: 3px;
margin: 16px 0;
border: none;
background-color: #161616; }
-h1 + hr,
-h2 + hr, .center blockquote + hr {
+h2 + hr, .center blockquote + hr,
+h1:after {
+ content: "";
position: absolute;
margin: -32px 0 32px 0; }
@media (max-width: 544px) {
- h1 + hr,
- h2 + hr, .center blockquote + hr {
+ h2 + hr, .center blockquote + hr,
+ h1:after {
margin-top: -21px; } }
-.center hr {
+.outer h1:after {
+ margin-top: 32px; }
+
+.center hr,
+.center .hr {
margin: 16px auto; }
table {
border-collapse: collapse !important; }
table td,
table th {
background-color: #FFFFFF; }

Powered by Google App Engine
This is Rietveld