Skip to content

Commit

Permalink
HTML styles: fix style of hr so it works when printed (#10535)
Browse files Browse the repository at this point in the history
Previously `background-color` was used to style the hr, but this gets ignored
when printing.  This commit uses `border-top` instead.
  • Loading branch information
nathanlesage authored Jan 14, 2025
1 parent 244156c commit 0a2e8dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/templates/styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@
overflow: visible;
}
hr {
background-color: #1a1a1a;
border: none;
border-top: 1px solid #1a1a1a;
height: 1px;
margin: 1em 0;
}
Expand Down
2 changes: 1 addition & 1 deletion test/writer.html4
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
overflow: visible;
}
hr {
background-color: #1a1a1a;
border: none;
border-top: 1px solid #1a1a1a;
height: 1px;
margin: 1em 0;
}
Expand Down
2 changes: 1 addition & 1 deletion test/writer.html5
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
overflow: visible;
}
hr {
background-color: #1a1a1a;
border: none;
border-top: 1px solid #1a1a1a;
height: 1px;
margin: 1em 0;
}
Expand Down

0 comments on commit 0a2e8dd

Please sign in to comment.