/* simple tree */ .simple-tree { user-select: none; -moz-user-select: none; } .simple-tree>details>summary { display: none; } .simple-tree a, .simple-tree summary { display: block; width: fit-content; width: -moz-fit-content; border: solid 1px transparent; padding: 0 2px; outline: none; cursor: pointer; } .simple-tree a { text-decoration: none; // color: inherit; font-weight: 600; font-size: .9rem; } .simple-tree ::-webkit-details-marker { display: none; } .simple-tree summary { list-style-type: none; // background-color: #eee; outline: none; } .simple-tree.dark summary { background-color: #444; } .simple-tree details>:not(details), .simple-tree details { position: relative; } .simple-tree details :not(summary) { margin-left: 20px; } .simple-tree.nodots details :not(summary) { margin-left: 12px; } .simple-tree details::before, .simple-tree details>:not(details)::before { content: ''; width: 10px; display: block; position: absolute; } .simple-tree details::before, .simple-tree details>:not(details)::before { // background: url('data:image/svg+xml;utf8,') left top / 2px 2px; } .simple-tree.dark details::before, .simple-tree.dark details>:not(summary)::before { background-image: url('data:image/svg+xml;utf8,'); } .simple-tree.nodots details::before, .simple-tree.nodots details>:not(summary)::before { background-image: none; } .simple-tree details::before { top: 0; height: 100%; background-repeat: repeat-y; left: 5px; z-index: -1; } .simple-tree details>:not(details)::before { top: 8px; height: calc(100% - 8px); background-repeat: repeat-x; left: -15px; } .simple-tree details>summary::before { // background: url('data:image/svg+xml;utf8,') center center / 12px 12px no-repeat; background: url('data:image/svg+xml;utf8, ')center center / 12px 12px no-repeat; left: -22px; top: 2px; width: 16px; height: 16px; } .simple-tree details[open]>summary::before { background: url('data:image/svg+xml;utf8,') center center / 12px 12px no-repeat; // background-image: url('data:image/svg+xml;utf8,'); } /* async tree */ .async-tree details[open][data-loaded=false] { pointer-events: none; } .async-tree details[open][data-loaded=false]>summary::before { background-image: url('data:image/svg+xml;utf8,'); } .async-tree.black details[open][data-loaded=false]>summary::before { background-image: url('data:image/svg+xml;utf8,'); } /* select tree */ .select-tree .selected { // background-color: #beebff; border: var(--outlinegray)1px solid; border-radius: 5px; // z-index: 1; } .select-tree.dark .selected { // background-color: #3a484e; border-color: #99defd; border-radius: 5px; } .selectedOnPage { // background-color: #3a484e; border-color: #99defd; }