From ef9b91d7e4cd86a592adfa2f2f7902b8990e820a 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; +}