User:InnerCitadel/Gadget-collapsibleH2.css

/* CSS part of the code for collapsible buttons*/

h2 button { all: inherit; border: 0; display: flex; justify-content: space-between; width: 100%; padding: 0.5em 0; }

h2 button:focus svg { outline: 2px solid; }

h2 button svg { height: 1em; margin-left: 0.5em; }

[aria-expanded="true"] .vert { display: none; }

[aria-expanded] rect { fill: currentColor; }