2023-03-18 14:55:36 +08:00
|
|
|
/* src: https://github.com/JorelAli/mdBook-pagetoc */
|
|
|
|
|
2023-03-11 15:20:06 +08:00
|
|
|
@media only screen and (max-width:1439px) {
|
|
|
|
.sidetoc {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (min-width:1440px) {
|
|
|
|
main {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.sidetoc {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2023-03-18 14:55:36 +08:00
|
|
|
/* left: calc(90% + (var(--content-min-width))/4 - 110px); */
|
|
|
|
left: 101%;
|
2023-03-11 15:20:06 +08:00
|
|
|
position: absolute;
|
2023-03-18 14:55:36 +08:00
|
|
|
font-size: var(--pagetoc-fontsize);
|
2023-03-11 15:20:06 +08:00
|
|
|
}
|
|
|
|
.pagetoc {
|
|
|
|
position: fixed;
|
2023-03-18 14:55:36 +08:00
|
|
|
width: var(--pagetoc-width);
|
2023-03-11 15:20:06 +08:00
|
|
|
}
|
|
|
|
.pagetoc a {
|
|
|
|
border-left: 1px solid var(--sidebar-bg);
|
2023-03-18 14:55:36 +08:00
|
|
|
/* color: var(--fg); */
|
|
|
|
/* color: var(--sidebar-fg); */
|
|
|
|
color: var(--links);
|
2023-03-11 15:20:06 +08:00
|
|
|
display: block;
|
|
|
|
padding-bottom: 5px;
|
|
|
|
padding-top: 5px;
|
|
|
|
padding-left: 10px;
|
|
|
|
text-align: left;
|
|
|
|
text-decoration: none;
|
2023-03-18 14:55:36 +08:00
|
|
|
font-weight: normal;
|
|
|
|
background: var(--sidebar-bg);
|
2023-03-11 15:20:06 +08:00
|
|
|
}
|
|
|
|
.pagetoc a:hover,
|
|
|
|
.pagetoc a.active {
|
|
|
|
background: var(--sidebar-bg);
|
2023-03-18 14:55:36 +08:00
|
|
|
/* color: var(--sidebar-fg); */
|
|
|
|
color: var(--sidebar-active);
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: var(--pagetoc-fontsize);
|
2023-03-11 15:20:06 +08:00
|
|
|
}
|
|
|
|
}
|