From b0346c480b03f9752dfa39eae59ee3efd1d2d4a1 Mon Sep 17 00:00:00 2001 From: Piotr Spieker Date: Sun, 10 Nov 2024 08:48:55 +0100 Subject: [PATCH] Improve styling of collapsible sections --- docs/assets/css/style.scss | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/assets/css/style.scss b/docs/assets/css/style.scss index be46846a..b5e8a4b7 100644 --- a/docs/assets/css/style.scss +++ b/docs/assets/css/style.scss @@ -14,6 +14,19 @@ // Add table of contents navbar @import 'toc'; +// Switch to light theme logo img.github-logo { content: url({{ "/docs/assets/img/github-mark.svg" | relative_url }}); -} \ No newline at end of file +} + +// Improve collapsible sections +details summary { + cursor: pointer; + display: list-item; + counter-increment: list-item 0; + list-style: disclosure-closed inside; +} + +details[open] summary { + list-style-type: disclosure-open; +}