2023-08-18 19:25:38 +02:00
|
|
|
.tree ul {
|
2023-08-20 15:54:06 +02:00
|
|
|
padding-left: clamp(12px, 2vw, 24px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tree>ul {
|
|
|
|
padding-left: 0;
|
2023-08-18 19:25:38 +02:00
|
|
|
}
|
|
|
|
|
2023-08-18 20:58:07 +02:00
|
|
|
.tree {
|
|
|
|
--tree-icon-position: 8px 50%;
|
|
|
|
--tree-icon-space: 28px;
|
|
|
|
|
|
|
|
/* I have no clue why this works, deal with it */
|
2023-08-27 19:40:47 +02:00
|
|
|
--tree-hover-expansion: 6px;
|
2023-08-20 13:46:54 +02:00
|
|
|
|
|
|
|
position: relative;
|
2023-08-18 20:58:07 +02:00
|
|
|
}
|
|
|
|
|
2023-08-18 19:25:38 +02:00
|
|
|
.tree details>summary {
|
|
|
|
list-style: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2023-08-27 19:40:47 +02:00
|
|
|
/* Can webkit not be a dick for once? */
|
|
|
|
.tree details>summary::-webkit-details-marker {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-08-18 19:25:38 +02:00
|
|
|
.tree li {
|
|
|
|
list-style: none;
|
2023-08-20 13:46:54 +02:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tree li>*:first-child {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tree li>div:first-child {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tree li>div:first-child,
|
|
|
|
.tree li>details>summary:first-child {
|
|
|
|
padding-right: 32px;
|
|
|
|
}
|
|
|
|
|
2023-08-20 15:54:06 +02:00
|
|
|
.tree li[is="th-linked-branch"]>details>summary:first-child {
|
|
|
|
padding-right: 56px;
|
|
|
|
}
|
|
|
|
|
2023-08-20 13:46:54 +02:00
|
|
|
.tree li>div:first-child:hover {
|
2023-08-27 17:01:27 +02:00
|
|
|
border-bottom: 1px solid var(--border-1);
|
2023-08-20 13:46:54 +02:00
|
|
|
margin-bottom: -1px;
|
2023-08-18 19:25:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.tree details>summary {
|
2023-08-27 17:01:27 +02:00
|
|
|
background-image:
|
|
|
|
/* expand */
|
|
|
|
url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEyIiB3aWR0aD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtNyA1di0zaC0ydjNoLTN2MmgzdjNoMnYtM2gzdi0yeiIgZmlsbD0iIzU1NDIzZSIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+');
|
2023-08-18 19:25:38 +02:00
|
|
|
background-repeat: no-repeat;
|
2023-08-18 20:58:07 +02:00
|
|
|
background-position: var(--tree-icon-position);
|
|
|
|
padding-left: var(--tree-icon-space);
|
|
|
|
margin-left: calc(- var(--tree-icon-space));
|
|
|
|
|
|
|
|
padding-top: var(--tree-hover-expansion);
|
|
|
|
padding-bottom: var(--tree-hover-expansion);
|
|
|
|
border-radius: 8px;
|
|
|
|
|
2023-08-27 17:01:27 +02:00
|
|
|
background-color: transparent;
|
2023-08-18 20:58:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.tree details>summary:hover {
|
2023-08-27 17:01:27 +02:00
|
|
|
background-color: var(--shaded-background);
|
2023-08-18 19:25:38 +02:00
|
|
|
}
|
|
|
|
|
2023-08-21 21:12:06 +02:00
|
|
|
.tree li>div {
|
2023-08-27 17:01:27 +02:00
|
|
|
background-image:
|
|
|
|
/* leaf */
|
|
|
|
url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEyIiB3aWR0aD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iNiIgY3k9IjYiIGZpbGw9IiM1NTQyM2UiIGZpbGwtb3BhY2l0eT0iLjUiIHI9IjIiLz48L3N2Zz4=');
|
2023-08-18 19:25:38 +02:00
|
|
|
background-repeat: no-repeat;
|
2023-08-18 20:58:07 +02:00
|
|
|
background-position: var(--tree-icon-position);
|
|
|
|
padding-left: var(--tree-icon-space);
|
|
|
|
margin-left: calc(- var(--tree-icon-space));
|
2023-08-27 19:40:47 +02:00
|
|
|
padding-top: var(--tree-hover-expansion);
|
|
|
|
padding-bottom: var(--tree-hover-expansion);
|
2023-08-18 19:25:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.tree details[open]>summary {
|
2023-08-27 17:01:27 +02:00
|
|
|
background-image:
|
|
|
|
/* collapse */
|
|
|
|
url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEyIiB3aWR0aD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTMgNmg2IiBzdHJva2U9IiM1NTQyM2UiIHN0cm9rZS1vcGFjaXR5PSIuNSIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+');
|
2023-08-18 19:25:38 +02:00
|
|
|
}
|
2023-08-20 13:46:54 +02:00
|
|
|
|
2023-08-28 19:18:02 +02:00
|
|
|
.tree details:not([open])>summary>.branch-summary>:last-child::after {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
background-image:
|
|
|
|
/* more */
|
|
|
|
url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTQgNiA0IDQgNC00IiBmaWxsPSJub25lIiBzdHJva2U9IiM1NTQyM2UiIHN0cm9rZS1vcGFjaXR5PSIuNSIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 50% 50%;
|
|
|
|
|
|
|
|
width: 16px;
|
|
|
|
height: 1.2em;
|
|
|
|
|
|
|
|
vertical-align: text-bottom;
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
|
2023-08-20 15:54:06 +02:00
|
|
|
@media (hover: none) {
|
|
|
|
|
|
|
|
.tree li>div:first-child,
|
|
|
|
.tree li>details>summary:first-child {
|
2023-08-27 17:01:27 +02:00
|
|
|
border-bottom: 1px solid var(--border-1);
|
2023-08-20 15:54:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.tree details>summary {
|
|
|
|
border-radius: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-08-20 13:46:54 +02:00
|
|
|
.tree th-bb {
|
|
|
|
height: 24px;
|
|
|
|
margin: 4px;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
opacity: 0%;
|
|
|
|
}
|
|
|
|
|
2023-08-20 15:54:06 +02:00
|
|
|
|
2023-08-20 13:46:54 +02:00
|
|
|
.tree li>details>summary:hover>th-bb,
|
|
|
|
.tree li>div:hover>th-bb {
|
|
|
|
opacity: 100%;
|
|
|
|
}
|
|
|
|
|
2023-08-20 15:54:06 +02:00
|
|
|
@media (hover: none) {
|
|
|
|
.tree th-bb {
|
|
|
|
opacity: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-20 15:05:59 +02:00
|
|
|
.tree .icon {
|
2023-08-20 13:46:54 +02:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 50% 50%;
|
|
|
|
opacity: 35%;
|
|
|
|
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
}
|
2023-08-20 15:05:59 +02:00
|
|
|
|
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ate {
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 0 50%;
|
|
|
|
opacity: 50%;
|
|
|
|
color: #000;
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tree .link-loading {
|
|
|
|
padding-left: 24px;
|
|
|
|
opacity: 50%;
|
|
|
|
}
|
2023-08-21 21:12:06 +02:00
|
|
|
|
|
|
|
.tree :target>details>summary,
|
|
|
|
.tree :target>div {
|
2023-08-27 17:01:27 +02:00
|
|
|
border-bottom: 1px dashed var(--border-2);
|
2023-08-21 21:12:06 +02:00
|
|
|
margin-bottom: -1px;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
2023-08-27 17:01:27 +02:00
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
.tree details>summary {
|
|
|
|
background-image:
|
|
|
|
/* expand */
|
|
|
|
url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEyIiB3aWR0aD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtNyA1di0zaC0ydjNoLTN2MmgzdjNoMnYtM2gzdi0yeiIgZmlsbD0iI2Q3Y2RiZiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+');
|
|
|
|
}
|
|
|
|
|
|
|
|
.tree li>div {
|
|
|
|
background-image:
|
|
|
|
/* leaf */
|
|
|
|
url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEyIiB3aWR0aD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iNiIgY3k9IjYiIGZpbGw9IiNkN2NkYmYiIGZpbGwtb3BhY2l0eT0iLjUiIHI9IjIiLz48L3N2Zz4=');
|
|
|
|
}
|
|
|
|
|
|
|
|
.tree details[open]>summary {
|
|
|
|
background-image:
|
|
|
|
/* collapse */
|
|
|
|
url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEyIiB3aWR0aD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTMgNmg2IiBzdHJva2U9IiNkN2NkYmYiIHN0cm9rZS1vcGFjaXR5PSIuNSIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+');
|
|
|
|
}
|
|
|
|
|
|
|
|
.tree .icon-permalink {
|
|
|
|
background-image:
|
|
|
|
/* permalink */
|
|
|
|
url("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcuNjU2ODYgMiAxLjQxNDIxIDEuNDE0MjJjLjY4MDUxLjY4MDUxIDEuMDY0NTMgMS41NDUyMSAxLjE1MjEzIDIuNDMzNjIuODg4NC4wODc2IDEuNzUzMS40NzE2NSAyLjQzMzcgMS4xNTIxNmwxLjQxNDIgMS40MTQyMmMxLjU2MjEgMS41NjIwOSAxLjU2MjEgNC4wOTQ3OCAwIDUuNjU2ODhzLTQuMDk0NzkgMS41NjIxLTUuNjU2ODggMGwtMS40MTQyMi0xLjQxNDJjLS42ODA1MS0uNjgwNi0xLjA2NDU2LTEuNTQ1My0xLjE1MjE2LTIuNDMzNy0uODg4NDEtLjA4NzYtMS43NTMxMS0uNDcxNjItMi40MzM2Mi0xLjE1MjEzbC0xLjQxNDIyLTEuNDE0MjFjLTEuNTYyMDk0LTEuNTYyMS0xLjU2MjA5NC00LjA5NDc2IDAtNS42NTY4NiAxLjU2MjEtMS41NjIwOTQgNC4wOTQ3Ni0xLjU2MjA5NCA1LjY1Njg2IDB6bS42MTggNy42ODkwN2MtLjE0NDMuMDg1MjItLjI5MjgxLjE2MDYxLS40NDQ1NS4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IyIDQuNzA3MDggNC43MDcxMS00LjcwNzA4IDQuNzA3MS0xLjQxNDIxLTEuNDE0MiAyLjI5Mjg5LTIuMjkyOWgtNy41ODU4di0yeiIgZmlsbD0iI2Q3Y2RiZiIvPjwvc3ZnPg==");
|
|
|
|
}
|
2023-08-28 19:18:02 +02:00
|
|
|
|
|
|
|
.tree details:not([open])>summary>.branch-summary>:last-child::after {
|
|
|
|
background-image:
|
|
|
|
/* more */
|
|
|
|
url('data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTQgNiA0IDQgNC00IiBmaWxsPSJub25lIiBzdHJva2U9IiNkN2NkYmYiIHN0cm9rZS1vcGFjaXR5PSIuNSIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+');
|
|
|
|
}
|
2023-08-27 17:01:27 +02:00
|
|
|
}
|