Add <hr> theming; support disabling line numbers in code blocks

This commit is contained in:
Agatha Lovelace 2023-01-12 12:26:58 +01:00
parent 0d5de30146
commit accd3f51c7
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
1 changed files with 27 additions and 0 deletions

View File

@ -120,6 +120,33 @@ pre {
background-color: var(--bg-code);
}
.nolinenum .lineno,
.nolinenum .rouge-gutter {
visibility: hidden;
width: 0;
padding: 0;
}
/* breaks */
hr {
color: var(--accent);
margin: 20px 2% 0 2%;
text-align: center;
border: none;
border-top: 1px solid;
overflow: visible;
counter-increment: item-counter;
}
hr:after {
content: counter(item-counter, upper-roman);
padding: 0 4px;
position: relative;
top: -13px;
font-size: 10px;
background: var(--bg);
}
/* header anchors */
a[class="anchor"]::before {