2024-09-23 20:40:12 +00:00
|
|
|
.toc {
|
2024-09-25 21:20:58 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-10-12 22:33:07 +00:00
|
|
|
|
2024-09-25 21:20:58 +00:00
|
|
|
&.desktop-only {
|
|
|
|
max-height: 40%;
|
|
|
|
}
|
2024-09-23 20:40:12 +00:00
|
|
|
}
|
|
|
|
|
2023-06-17 19:07:40 +00:00
|
|
|
button#toc {
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
text-align: left;
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 0;
|
|
|
|
color: var(--dark);
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-06-10 06:06:02 +00:00
|
|
|
|
2023-06-17 19:07:40 +00:00
|
|
|
& h3 {
|
|
|
|
font-size: 1rem;
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2023-06-10 06:06:02 +00:00
|
|
|
|
2023-06-17 19:07:40 +00:00
|
|
|
& .fold {
|
2023-07-23 00:27:41 +00:00
|
|
|
margin-left: 0.5rem;
|
2023-06-17 19:07:40 +00:00
|
|
|
transition: transform 0.3s ease;
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
2023-06-17 02:41:59 +00:00
|
|
|
|
2023-06-17 19:07:40 +00:00
|
|
|
&.collapsed .fold {
|
2023-07-23 00:27:41 +00:00
|
|
|
transform: rotateZ(-90deg);
|
2023-06-10 06:06:02 +00:00
|
|
|
}
|
2023-06-17 19:07:40 +00:00
|
|
|
}
|
2023-07-23 00:27:41 +00:00
|
|
|
|
2023-06-17 19:07:40 +00:00
|
|
|
#toc-content {
|
|
|
|
list-style: none;
|
|
|
|
overflow: hidden;
|
2024-09-25 21:20:58 +00:00
|
|
|
overflow-y: auto;
|
|
|
|
max-height: 100%;
|
2024-08-09 01:07:47 +00:00
|
|
|
transition:
|
2024-09-25 21:20:58 +00:00
|
|
|
max-height 0.35s ease,
|
2024-08-09 01:07:47 +00:00
|
|
|
visibility 0s linear 0s;
|
2023-11-29 18:50:26 +00:00
|
|
|
position: relative;
|
2024-08-09 01:07:47 +00:00
|
|
|
visibility: visible;
|
|
|
|
|
|
|
|
&.collapsed {
|
2024-09-25 21:20:58 +00:00
|
|
|
max-height: 0;
|
2024-08-09 01:07:47 +00:00
|
|
|
transition:
|
2024-09-25 21:20:58 +00:00
|
|
|
max-height 0.35s ease,
|
|
|
|
visibility 0s linear 0.35s;
|
2024-08-09 01:07:47 +00:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
2023-06-17 19:07:40 +00:00
|
|
|
|
2023-07-10 02:32:24 +00:00
|
|
|
&.collapsed > .overflow::after {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2023-06-10 06:06:02 +00:00
|
|
|
& ul {
|
|
|
|
list-style: none;
|
2023-06-17 02:41:59 +00:00
|
|
|
margin: 0.5rem 0;
|
2023-06-10 06:06:02 +00:00
|
|
|
padding: 0;
|
2023-06-17 02:41:59 +00:00
|
|
|
& > li > a {
|
|
|
|
color: var(--dark);
|
|
|
|
opacity: 0.35;
|
2023-08-23 22:16:04 +00:00
|
|
|
transition:
|
|
|
|
0.5s ease opacity,
|
|
|
|
0.3s ease color;
|
2023-06-17 02:41:59 +00:00
|
|
|
&.in-view {
|
|
|
|
opacity: 0.75;
|
|
|
|
}
|
|
|
|
}
|
2023-06-10 06:06:02 +00:00
|
|
|
}
|
2024-09-25 21:20:58 +00:00
|
|
|
> ul.overflow {
|
|
|
|
max-height: none;
|
2024-10-01 15:49:13 +00:00
|
|
|
width: 100%;
|
2024-09-25 21:20:58 +00:00
|
|
|
}
|
2023-06-10 06:06:02 +00:00
|
|
|
|
2023-06-17 02:41:59 +00:00
|
|
|
@for $i from 0 through 6 {
|
2023-06-10 06:06:02 +00:00
|
|
|
& .depth-#{$i} {
|
|
|
|
padding-left: calc(1rem * #{$i});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|