From 981638c4f6b77506d64efc8987df63a0175a5806 Mon Sep 17 00:00:00 2001 From: Antoine Le Gonidec Date: Fri, 26 Jul 2024 12:55:05 +0200 Subject: [PATCH] Prevent the details/summary styling to leak outside of buttons lists --- css/index.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/css/index.css b/css/index.css index 12009e1..6b3deb7 100644 --- a/css/index.css +++ b/css/index.css @@ -225,14 +225,14 @@ summary { } /* Handle buttons with sub-buttons in CSS instead of JS. */ -details > summary { +.buttonlist details > summary { list-style: none; margin: 0; } -details > summary::before { +.buttonlist details > summary::before { content: "▼"; } -details[open] > summary::before { +.buttonlist details[open] > summary::before { content: "▲"; }