2020-06-10 22:02:22 +00:00
|
|
|
.toc {
|
|
|
|
position: fixed;
|
|
|
|
max-width: 450px;
|
|
|
|
height: ~'calc( 100vh - @{header-height} * 2 - @{margin-side} * 2 )';
|
2020-06-11 19:42:21 +00:00
|
|
|
top: @header-height;
|
2020-06-11 19:36:26 +00:00
|
|
|
left: 0;
|
2020-06-10 22:02:22 +00:00
|
|
|
padding: @margin-side;
|
|
|
|
color: @base-70;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 0; // Hide bar on toc
|
|
|
|
}
|
|
|
|
|
|
|
|
&title {
|
|
|
|
h2 {
|
|
|
|
margin: 0;
|
2020-06-11 01:57:35 +00:00
|
|
|
color: @base-50 !important;
|
2020-06-10 22:02:22 +00:00
|
|
|
font-size: @ui-menu-text-big;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&toggle,
|
|
|
|
&togglespan {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
&.toclevel-2,
|
|
|
|
&.toclevel-3,
|
|
|
|
&.toclevel-4,
|
|
|
|
&.toclevel-5,
|
|
|
|
&.toclevel-6 {
|
2020-06-11 19:52:05 +00:00
|
|
|
margin-left: 9px;
|
2020-06-11 19:36:26 +00:00
|
|
|
border-left: 1px dashed;
|
2020-06-10 22:02:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li.active {
|
|
|
|
color: @accent-50;
|
|
|
|
|
|
|
|
> a {
|
|
|
|
color: inherit !important;
|
|
|
|
border-color: currentColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
a,
|
|
|
|
li {
|
|
|
|
color: @base-30;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: inline-block;
|
2020-06-11 20:06:02 +00:00
|
|
|
margin: @content-margin-top / 4 0;
|
2020-06-11 19:52:05 +00:00
|
|
|
padding-left: 9px;
|
2020-06-10 22:02:22 +00:00
|
|
|
color: @base-50;
|
2020-06-11 19:36:26 +00:00
|
|
|
border-left: 3px solid transparent;
|
2020-06-10 22:02:22 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: @base-30;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&number {
|
|
|
|
.mixin-screen-reader-text;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.tochidden {
|
|
|
|
> ul {
|
|
|
|
display: block !important; // Force display
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
2020-06-11 19:36:26 +00:00
|
|
|
margin: 0 !important;
|
2020-06-10 22:02:22 +00:00
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> ul {
|
2020-06-11 19:36:26 +00:00
|
|
|
margin: @content-margin-top * 0.75 0 0 0 !important;
|
2020-06-10 22:02:22 +00:00
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
2020-06-11 19:36:26 +00:00
|
|
|
border-left: 1px dashed;
|
2020-06-11 20:33:05 +00:00
|
|
|
max-width: ~'calc( (100vw - '@page-width + @margin-side * 4~' ) / 2 )';
|
|
|
|
max-height: ~'calc( 100vh - '@header-height * 2 - @margin-side * 2~' )';
|
2020-06-10 22:02:22 +00:00
|
|
|
overflow: visible auto;
|
|
|
|
overscroll-behavior: contain;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( max-width: @screen3 ) {
|
|
|
|
.webfonts-changed .toc {
|
|
|
|
display: block !important; // Hide until everything is loaded
|
|
|
|
}
|
|
|
|
|
|
|
|
.toc {
|
|
|
|
display: none;
|
|
|
|
background: @base-100;
|
|
|
|
z-index: 10;
|
|
|
|
height: 100vh;
|
|
|
|
margin-top: -@header-height;
|
|
|
|
padding: 0;
|
|
|
|
.boxshadow(3);
|
|
|
|
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
content: unset; // Disable fade
|
|
|
|
}
|
|
|
|
|
|
|
|
&toggle,
|
|
|
|
&togglespan {
|
|
|
|
display: block;
|
2020-06-11 00:28:54 +00:00
|
|
|
font-size: 0 !important;
|
2020-06-10 22:02:22 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 7;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
margin: @margin-side;
|
|
|
|
padding: 0 @margin-side / 2;
|
|
|
|
width: 39px;
|
|
|
|
height: 56px;
|
|
|
|
display: block;
|
|
|
|
background-color: @base-90;
|
|
|
|
border-radius: 100%;
|
|
|
|
.boxshadow(4);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: @menu-item-link-hover;
|
|
|
|
.boxshadow(5);
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
opacity: @opacity-icon-active;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: @menu-item-link-active;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
.resource-loader-icon;
|
|
|
|
display: block;
|
|
|
|
opacity: @opacity-icon;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&title h2 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.tochidden {
|
|
|
|
> ul {
|
|
|
|
display: none !important; // Reset hide
|
|
|
|
transform: translateX( 300px + @margin-side );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> ul {
|
|
|
|
display: none; // Hide until interacted
|
2020-06-11 20:08:32 +00:00
|
|
|
margin: 0 @margin-side !important;
|
2020-06-11 20:06:02 +00:00
|
|
|
padding: @header-height + @margin-side @margin-side @margin-side * 2 0; // More scroll spaces
|
2020-06-11 20:33:35 +00:00
|
|
|
max-width: none;
|
2020-06-11 20:06:02 +00:00
|
|
|
max-height: ~'calc( 100vh - '@header-height + @margin-side * 3 ~')';
|
2020-06-10 22:02:22 +00:00
|
|
|
transform: none;
|
|
|
|
transition: @transition-transform;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( prefers-color-scheme: dark ) {
|
|
|
|
.toc {
|
|
|
|
color: @dark-text-60;
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: @dark-text-70;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: @dark-text-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li.active {
|
|
|
|
color: @dark-color-link;
|
|
|
|
|
|
|
|
a,
|
|
|
|
li {
|
|
|
|
color: @dark-text-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( max-width: @screen3 ) {
|
|
|
|
.toc {
|
|
|
|
background: @dark-bg-40;
|
|
|
|
|
|
|
|
&toggle a {
|
|
|
|
background-color: @dark-bg-50;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: @accent-10;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|