2019-11-04 13:09:44 +00:00
|
|
|
.toc {
|
|
|
|
width: 100%;
|
2020-01-20 16:20:43 +00:00
|
|
|
max-width: $sidebar-width;
|
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');
|
2020-01-19 05:11:58 +00:00
|
|
|
|
2020-01-06 16:41:38 +00:00
|
|
|
@include no-select;
|
2020-01-22 08:31:10 +00:00
|
|
|
@include animation('slide-in-down-little .2s .3s 1 ease-in backwards');
|
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;
|
2020-01-28 04:37:42 +00:00
|
|
|
|
|
|
|
.toc__title {
|
|
|
|
margin-top: 0.75rem;
|
|
|
|
margin-left: 0.5rem;
|
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
|
2020-01-22 08:31:10 +00:00
|
|
|
&__flexbox--outer[data-position="fixed"] {
|
|
|
|
@include flexbox();
|
|
|
|
@include align-items(center);
|
|
|
|
top: 4.2rem;
|
|
|
|
left: 1rem;
|
|
|
|
position: absolute;
|
2020-01-22 11:49:53 +00:00
|
|
|
|
|
|
|
@include animation('slide-in-down-little .2s .3s 1 ease-in backwards');
|
|
|
|
@media only screen and (max-width: 1300px) {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-01-22 08:31:10 +00:00
|
|
|
}
|
|
|
|
|
2020-01-28 04:37:42 +00:00
|
|
|
&__flexbox--outer[data-dir="ltr"] {
|
|
|
|
top: 4.2rem;
|
|
|
|
left: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__flexbox--outer[data-dir="rtl"] {
|
|
|
|
top: 4.2rem;
|
|
|
|
right: 1rem;
|
|
|
|
|
|
|
|
.toc__title {
|
|
|
|
margin-top: 0.75rem;
|
|
|
|
margin-left: 0.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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;
|
2020-01-28 04:37:42 +00:00
|
|
|
|
2020-01-22 09:40:24 +00:00
|
|
|
@include animation('slide-in-down-little .2s .3s 1 ease-in backwards');
|
2019-11-04 13:09:44 +00:00
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('toc-label-color');
|
|
|
|
}
|
2020-01-22 09:40:24 +00:00
|
|
|
|
2020-01-22 12:14:40 +00:00
|
|
|
&--outer {
|
|
|
|
@media only screen and (max-width: 1300px) {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-01-22 09:40:24 +00:00
|
|
|
}
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
|
|
|
|
2020-01-28 04:37:42 +00:00
|
|
|
&[data-dir="ltr"] {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.active {
|
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('link-hover');
|
|
|
|
font-weight: 700;
|
|
|
|
&::before {
|
|
|
|
background-color: themed('toc-vertical-line-active');
|
|
|
|
}
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
2020-01-28 04:37:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-dir="rtl"] {
|
|
|
|
a {
|
|
|
|
color: inherit;
|
|
|
|
position: relative;
|
|
|
|
&::before {
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('toc-vertical-line');
|
|
|
|
}
|
|
|
|
content: '';
|
|
|
|
height: 100%;
|
|
|
|
right: -1rem;
|
|
|
|
margin-top: -1px;
|
|
|
|
position: absolute;
|
|
|
|
width: 2px;
|
|
|
|
&:last-child {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.active {
|
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('link-hover');
|
|
|
|
font-weight: 700;
|
|
|
|
&::before {
|
|
|
|
background-color: themed('toc-vertical-line-active');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-21 08:53:58 +00:00
|
|
|
&__outer {
|
|
|
|
padding-right: 1rem;
|
|
|
|
padding-left: 2.5rem;
|
|
|
|
max-width: calc((100vw - 980px) / 2);
|
|
|
|
|
|
|
|
@media only screen and (max-width: 1300px) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
2020-01-08 17:58:15 +00:00
|
|
|
|
|
|
|
.expand__content {
|
|
|
|
#TableOfContents {
|
|
|
|
ul {
|
|
|
|
list-style-type: circle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|