Prevent the details/summary styling to leak outside of buttons lists

This commit is contained in:
Antoine Le Gonidec 2024-07-26 12:55:05 +02:00
parent f4d58a1ef7
commit 981638c4f6
Signed by: vv221
GPG key ID: 636B78F91CEB80D8

View file

@ -225,14 +225,14 @@ summary {
} }
/* Handle buttons with sub-buttons in CSS instead of JS. */ /* Handle buttons with sub-buttons in CSS instead of JS. */
details > summary { .buttonlist details > summary {
list-style: none; list-style: none;
margin: 0; margin: 0;
} }
details > summary::before { .buttonlist details > summary::before {
content: "▼"; content: "▼";
} }
details[open] > summary::before { .buttonlist details[open] > summary::before {
content: "▲"; content: "▲";
} }