From 1a227e3bd8d1f9a45403d089639b96f52695f773 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 11 Jul 2023 20:31:43 +0100 Subject: [PATCH] =?UTF-8?q?docs:=20h5=E2=86=92h4,=20h4=E2=86=92h3;=20style?= =?UTF-8?q?=20subheadings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .docs/css/theme.css | 13 +++++++++++++ .docs/lib/parse_sections.js | 2 ++ 2 files changed, 15 insertions(+) diff --git a/.docs/css/theme.css b/.docs/css/theme.css index 1beaecc..3a7944d 100644 --- a/.docs/css/theme.css +++ b/.docs/css/theme.css @@ -88,6 +88,7 @@ h1, h2, h3, h4, h5, h6 { text-align: center; word-wrap: break-word; } + .linked-section-heading { display: flex; } @@ -111,6 +112,18 @@ h1, h2, h3, h4, h5, h6 { line-height: 1.5; align-self: flex-start; } +h3 { + margin-top: 2em; + padding-bottom: 0.2em; + border-bottom: 0.1em solid var(--cat-colour); +} +h3, h3 > code { + font-size: 1.1em; + text-align: left; +} +h3 > code { + background: transparent; +} nav { background: var(--bg-bright); diff --git a/.docs/lib/parse_sections.js b/.docs/lib/parse_sections.js index a4040f8..73df3b2 100644 --- a/.docs/lib/parse_sections.js +++ b/.docs/lib/parse_sections.js @@ -39,6 +39,8 @@ function make_section(acc, cat_current, cats) { .replace(/\s+/g, "-") .replace(/-.*$/, ""), content: markdown.render(acc.slice(1).join("\n")) + .replace(//g, "") + .replace(//g, "") }; }