2021-08-27 08:19:17 -06:00
|
|
|
:root {
|
|
|
|
--pagetoc-width: 250px;
|
|
|
|
}
|
|
|
|
|
2021-06-03 10:20:40 -06:00
|
|
|
@media only screen and (max-width:1439px) {
|
|
|
|
.sidetoc {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (min-width:1440px) {
|
|
|
|
main {
|
|
|
|
position: relative;
|
|
|
|
margin-left: 100px !important;
|
2021-08-27 08:19:17 -06:00
|
|
|
margin-right: var(--pagetoc-width) !important;
|
2021-06-03 10:20:40 -06:00
|
|
|
}
|
|
|
|
.sidetoc {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
left: calc(100% + (var(--content-max-width))/4 - 140px);
|
|
|
|
position: absolute;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
.pagetoc {
|
|
|
|
position: fixed;
|
2021-08-27 08:19:17 -06:00
|
|
|
width: var(--pagetoc-width);
|
2021-06-03 10:20:40 -06:00
|
|
|
overflow: auto;
|
|
|
|
right: 20px;
|
|
|
|
height: calc(100% - var(--menu-bar-height));
|
|
|
|
}
|
|
|
|
.pagetoc a {
|
|
|
|
color: var(--fg) !important;
|
|
|
|
display: block;
|
|
|
|
padding: 5px 15px 5px 10px;
|
|
|
|
text-align: left;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
.pagetoc a:hover,
|
|
|
|
.pagetoc a.active {
|
|
|
|
background: var(--sidebar-bg) !important;
|
|
|
|
color: var(--sidebar-fg) !important;
|
|
|
|
}
|
|
|
|
.pagetoc .active {
|
|
|
|
background: var(--sidebar-bg);
|
|
|
|
color: var(--sidebar-fg);
|
|
|
|
}
|
|
|
|
}
|