2019-11-04 13:09:44 +00:00
|
|
|
.toc {
|
|
|
|
width: 100%;
|
2019-11-17 11:01:09 +00:00
|
|
|
max-width: calcSideWidth();
|
2019-11-04 13:09:44 +00:00
|
|
|
position: fixed;
|
2019-11-12 11:24:17 +00:00
|
|
|
top: 7rem;
|
2019-11-04 13:09:44 +00:00
|
|
|
font-size: 0.85rem;
|
|
|
|
padding-left: 0.5rem;
|
2019-11-12 10:03:15 +00:00
|
|
|
z-index: z('toc');
|
2019-11-04 13:09:44 +00:00
|
|
|
|
2020-01-01 11:00:42 +00:00
|
|
|
#TableOfContents {
|
2019-11-04 13:09:44 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2019-12-20 03:43:51 +00:00
|
|
|
&__flexbox[data-position="fixed"] {
|
2019-11-12 10:03:15 +00:00
|
|
|
@include flexbox();
|
|
|
|
@include align-items(center);
|
2019-11-12 11:24:17 +00:00
|
|
|
position: fixed;
|
2019-11-12 10:03:15 +00:00
|
|
|
}
|
|
|
|
|
2019-12-20 03:43:51 +00:00
|
|
|
&__flexbox[data-position="absolute"] {
|
|
|
|
@include flexbox();
|
|
|
|
@include align-items(center);
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2019-11-04 13:09:44 +00:00
|
|
|
&__title {
|
|
|
|
font-size: 0.9rem;
|
2019-11-12 10:03:15 +00:00
|
|
|
margin-top: 0.5rem;
|
2019-11-04 13:09:44 +00:00
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('toc-label-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: inherit;
|
|
|
|
position: relative;
|
|
|
|
&::before {
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('toc-vertical-line');
|
|
|
|
}
|
|
|
|
content: '';
|
|
|
|
height: 100%;
|
|
|
|
left: -1rem;
|
|
|
|
margin-top: -1px;
|
|
|
|
position: absolute;
|
|
|
|
width: 2px;
|
|
|
|
&:last-child {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
@include themify($themes) {
|
|
|
|
li {
|
|
|
|
li {
|
|
|
|
margin-left: 1rem;
|
|
|
|
color: themed('sidebar-li-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2019-11-17 11:01:09 +00:00
|
|
|
color: themed('toc-title-color');
|
2019-11-15 08:37:32 +00:00
|
|
|
&.active {
|
|
|
|
color: themed('toc-vertical-line-active');
|
|
|
|
}
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.active {
|
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('link-hover');
|
|
|
|
font-weight: 700;
|
|
|
|
&::before {
|
|
|
|
background-color: themed('toc-vertical-line-active');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|