Elian Doran eea3163f51 Add 'packages/share-theme/' from commit '2cdd2a0a543f0bced8284ca55bc94efadbc7c91f'
git-subtree-dir: packages/share-theme
git-subtree-mainline: d8f0709bce891a8ebc0676bb3b6b5314bf78a129
git-subtree-split: 2cdd2a0a543f0bced8284ca55bc94efadbc7c91f
2025-06-08 22:06:45 +03:00

94 lines
1.5 KiB
CSS

#toc-pane {
display: flex;
flex-direction: column;
height: fit-content;
position: sticky;
top: 0;
order: 3;
/* padding: 16px 16px 16px 32px; */
}
#toc-pane h3 {
text-transform: uppercase;
}
#toc {
position: relative;
height: fit-content;
margin: 0;
border-radius: 6px;
padding: 0 0 0 16px;
max-width: 250px;
}
#toc, #toc ul {
list-style: none;
}
#toc ul {
padding-left: 16px;
}
#toc span {
text-overflow: ellipsis;
overflow: hidden;
display: inline-block;
}
#toc li a {
/* position: relative; */
display: flex;
align-items: center;
color: var(--text-heading);
transition: color 200ms ease;
white-space: nowrap;
}
#toc li a:hover,
#toc li a.active {
color: var(--text-link);
text-decoration: none;
}
#toc li a::before {
content: "";
display: flex;
position: absolute;
width: 2px;
height: 16px;
background: transparent;
left: 0;
transition: background-color 200ms ease;
}
#toc li a.active::before {
background: var(--text-link);
}
#toc::before {
content: "";
display: block;
position: absolute;
left: 0px;
top: 4px;
width: 2px;
height: calc(100% - 8px);
background: var(--background-highlight);
}
#content h1 a.toc-anchor,
#content h2 a.toc-anchor,
#content h3 a.toc-anchor,
#content h4 a.toc-anchor,
#content h5 a.toc-anchor,
#content h6 a.toc-anchor {
margin-left: 10px;
}
@media (max-width: 1200px) {
#toc-pane {
display: none;
}
}