77 lines
1.3 KiB
CSS
77 lines
1.3 KiB
CSS
/* Style from Tocbot */
|
|
.toc {
|
|
overflow-y: auto;
|
|
}
|
|
|
|
a.toc-link {
|
|
color: currentColor;
|
|
height: 100%;
|
|
}
|
|
|
|
.is-collapsible {
|
|
max-height: 1000px;
|
|
overflow: hidden;
|
|
transition: all 300ms ease-in-out;
|
|
}
|
|
|
|
.is-collapsed {
|
|
max-height: 0;
|
|
}
|
|
|
|
.is-position-fixed {
|
|
position: fixed !important;
|
|
top: 0;
|
|
}
|
|
|
|
.is-active-li {
|
|
list-style: disc;
|
|
}
|
|
|
|
/* Style from Ghost Foundation */
|
|
.gh-content {
|
|
position: relative;
|
|
}
|
|
|
|
.gh-toc > .toc-list {
|
|
position: relative;
|
|
padding-left: 15.3667px;
|
|
}
|
|
|
|
.toc-list {
|
|
overflow: hidden;
|
|
list-style: none;
|
|
font-size: 16px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
@media (min-width: 1300px) {
|
|
.gh-sidebar {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
margin-top: 4vmin;
|
|
grid-column: wide-start / main-start; /* Place the TOC to the left of the content */
|
|
width: 250px;
|
|
}
|
|
|
|
.gh-toc {
|
|
position: sticky; /* On larger screens, TOC will stay in the same spot on the page */
|
|
top: 4vmin;
|
|
}
|
|
}
|
|
|
|
a.toc-link {
|
|
text-decoration: none;
|
|
color: var(--color-secondary-text);
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
margin: 0;
|
|
font-weight: 700;
|
|
}
|
|
|
|
a.is-active-link {
|
|
color: var(--color-primary-text);
|
|
}
|
|
|
|
/* Additional style information from Jean interspersed */
|