From accd3f51c74c3c753adbffe388812e1eddbbc9cd Mon Sep 17 00:00:00 2001 From: Agatha Lovelace Date: Thu, 12 Jan 2023 12:26:58 +0100 Subject: [PATCH] Add
theming; support disabling line numbers in code blocks --- source/css/page.css | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/source/css/page.css b/source/css/page.css index 3e6cbb3..53456bc 100644 --- a/source/css/page.css +++ b/source/css/page.css @@ -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 {