@keyframes spin { from {transform: rotate(0)} to {transform: rotate(1turn)} } .a11y-outline-target { outline: 5px solid #26c !important; } #a11y-outline, #a11y-outline * { all: revert; } #a11y-outline [hidden] { display: none !important; } #a11y-outline { --color-border: rgba(0,0,0,0.2); --color-focus: #26c; --color-tint: rgba(0,0,0,0.1); font-size: initial; line-height: 1.4; text-align: start; max-width: 40em; border: 1px solid var(--color-border); border-radius: 0.3em; box-shadow: 0 0 0.5em rgba(0,0,0,0.3); accent-color: var(--color-focus); } #a11y-outline header { display: flex; gap: 0.5em; margin: 0 0 1em; } #a11y-outline .close, #a11y-outline select, #a11y-outline .treeview button { font-size: inherit; line-height: 1.2; color: inherit; padding: 0.5em; background-color: var(--color-tint); border: 1px solid var(--color-border); border-radius: 0; } #a11y-outline .close { box-sizing: content-box; min-width: 1.2em; text-align: center; } #a11y-outline select { flex-grow: 1; } #a11y-outline ul { margin: 0; padding-left: 1.5em; list-style: initial; } #a11y-outline .treeview { outline: 0; } #a11y-outline .treeview:empty { box-sizing: border-box; width: 2em; height: 2em; margin: 0 auto; border: 3px solid; border-top-color: transparent; border-radius: 50%; animation: spin 2s infinite linear; } #a11y-outline .treeview [aria-expanded=false] ul { display: none; } #a11y-outline .treeview [aria-expanded] { list-style: none; } /* link */ #a11y-outline .treeview a { color: inherit; text-decoration: none; } #a11y-outline .treeview [aria-selected=true] > a { outline: 1px dotted; } #a11y-outline .treeview:focus [aria-selected=true] > a { color: var(--color-focus); } /* toggle */ #a11y-outline .treeview [role=treeitem] { position: relative; } #a11y-outline .treeview button { box-sizing: content-box; height: auto; /* reset */ min-height: 0; position: absolute; /* layout */ left: -1.3em; top: 0.3em; padding: 0; min-width: 0.8em; line-height: 0.8; text-align: center; } #a11y-outline .treeview button::after { content: "+"; } #a11y-outline .treeview [aria-expanded=true] > button::after { content: "−"; } @media (prefers-color-scheme: dark) { #a11y-outline { --color-border: rgba(255,255,255,0.2); --color-focus: #3ae; --color-tint: rgba(255,255,255,0.1); color-scheme: dark; } .a11y-outline-target { outline-color: #3ae !important; } }