thematic break styling

This commit is contained in:
Alexander 2025-06-28 11:38:01 -04:00
parent b17a6254a2
commit bd425894a6
2 changed files with 24 additions and 6 deletions

View file

@ -185,12 +185,6 @@ table tr:last-child td:last-child {
border-bottom-right-radius: 3px;
}
hr {
height: 2px;
border: none;
background-color: var(--narrow-gray);
}
math[display="block"] {
position: relative;
left: 0;
@ -201,3 +195,26 @@ math[display="block"] {
footer {
margin-top: 2rem;
}
/* This is the style for the traditional horizontal rule. */
hr:not(.thematic) {
height: 2px;
border: none;
background-color: var(--narrow-gray);
}
hr.thematic {
border: none; /* remove default line */
text-align: center;
margin-top: -0.5em;
margin-bottom: -0.5em;
}
hr.thematic::before {
text-align: center;
content: '⬦⯁⬦';
letter-spacing: 0.4em;
color: var(--darker-color);
display: block;
transform: translateX(0.2em);
}