2020-04-25 21:25:10 +02:00
|
|
|
.toc {
|
|
|
|
.toc-title {
|
2022-05-15 17:41:35 +02:00
|
|
|
font-size: var(--toc-title-font-size);
|
2020-04-25 21:25:10 +02:00
|
|
|
font-weight: bold;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toc-content {
|
2022-05-15 17:41:35 +02:00
|
|
|
font-size: var(--toc-content-font-size);
|
2020-04-25 21:25:10 +02:00
|
|
|
|
|
|
|
ul {
|
|
|
|
text-indent: -0.85rem;
|
|
|
|
padding-left: .8rem;
|
|
|
|
list-style: none;
|
|
|
|
|
2020-04-29 10:36:23 +02:00
|
|
|
a:first-child::before {
|
2020-04-25 21:25:10 +02:00
|
|
|
content: "|";
|
|
|
|
font-weight: bolder;
|
|
|
|
margin-right: .5rem;
|
|
|
|
color: $single-link-color;
|
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-04-25 21:25:10 +02:00
|
|
|
color: $single-link-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
padding-left: 1.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ruby {
|
|
|
|
background: $code-background-color;
|
|
|
|
|
|
|
|
rt {
|
|
|
|
color: $global-font-secondary-color;
|
|
|
|
}
|
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-04-25 21:25:10 +02:00
|
|
|
background: $code-background-color-dark;
|
|
|
|
|
|
|
|
rt {
|
|
|
|
color: $global-font-secondary-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-21 04:11:56 +01:00
|
|
|
#toc-auto {
|
2020-01-31 15:53:04 +01:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2022-05-16 15:57:03 +02:00
|
|
|
width: 10000px;
|
2020-05-24 10:20:48 +02:00
|
|
|
max-width: 0;
|
2020-02-02 07:43:29 +01:00
|
|
|
padding: 0 .8rem;
|
2020-04-25 21:25:10 +02:00
|
|
|
border-left: 4px solid $global-border-color;
|
2020-04-28 20:41:07 +02:00
|
|
|
@include overflow-wrap(break-word);
|
2020-01-31 15:53:04 +01:00
|
|
|
box-sizing: border-box;
|
2020-05-12 18:45:19 +02:00
|
|
|
top: 10rem;
|
2020-05-01 17:29:24 +02:00
|
|
|
left: 0;
|
|
|
|
visibility: hidden;
|
2020-01-31 15:53:04 +01:00
|
|
|
|
2020-11-26 00:52:07 +01:00
|
|
|
[data-header-desktop=normal] & {
|
2020-05-12 18:45:19 +02:00
|
|
|
top: 5rem;
|
|
|
|
}
|
|
|
|
|
2020-04-15 09:46:50 +02:00
|
|
|
@include blur;
|
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
|
|
|
border-left-color: $global-border-color-dark;
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|
|
|
|
|
2020-02-21 04:11:56 +01:00
|
|
|
.toc-title {
|
2020-02-02 07:43:29 +01:00
|
|
|
margin: .8rem 0;
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|
|
|
|
|
2020-02-21 04:11:56 +01:00
|
|
|
.toc-content {
|
2020-01-31 15:53:04 +01:00
|
|
|
&.always-active ul {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2020-04-25 21:25:10 +02:00
|
|
|
> nav > ul {
|
2020-01-31 15:53:04 +01:00
|
|
|
margin: .625rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
ul {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.has-active > ul {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-16 15:01:47 +01:00
|
|
|
a.active {
|
2020-01-31 15:53:04 +01:00
|
|
|
font-weight: bold;
|
2020-02-16 15:01:47 +01:00
|
|
|
color: $single-link-color;
|
2020-01-31 15:53:04 +01:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-16 15:01:47 +01:00
|
|
|
color: $single-link-color-dark;
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
2020-02-13 18:30:33 +01:00
|
|
|
color: $single-link-hover-color;
|
2020-01-31 15:53:04 +01:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-13 18:30:33 +01:00
|
|
|
color: $single-link-hover-color-dark;
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-21 04:11:56 +01:00
|
|
|
#toc-static {
|
2020-01-31 15:53:04 +01:00
|
|
|
display: none;
|
2020-03-21 09:59:23 +01:00
|
|
|
margin: .8rem 0;
|
2020-01-31 15:53:04 +01:00
|
|
|
|
2020-11-27 09:12:26 +01:00
|
|
|
&[data-kept=true] {
|
2020-05-18 16:27:01 +02:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2020-04-25 21:25:10 +02:00
|
|
|
.toc-title {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
line-height: 2em;
|
|
|
|
padding: 0 .75rem;
|
2020-04-27 19:38:22 +02:00
|
|
|
background: darken($code-background-color, 6%);
|
2020-03-14 16:17:49 +01:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
|
|
|
background: darken($code-background-color-dark, 6%);
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-21 04:11:56 +01:00
|
|
|
.toc-content {
|
2020-03-14 17:39:23 +01:00
|
|
|
background-color: $code-background-color;
|
2020-01-31 15:53:04 +01:00
|
|
|
|
2020-03-14 17:39:23 +01:00
|
|
|
> nav > ul {
|
|
|
|
margin: 0;
|
2020-04-25 21:25:10 +02:00
|
|
|
padding: .4rem 1rem .4rem 1.8rem;
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-03-14 17:39:23 +01:00
|
|
|
background-color: $code-background-color-dark;
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|
|
|
|
}
|
2020-04-27 19:38:22 +02:00
|
|
|
|
|
|
|
&.open {
|
|
|
|
.toc-title {
|
|
|
|
background: darken($code-background-color, 3%);
|
|
|
|
|
|
|
|
[theme=dark] & {
|
|
|
|
background: darken($code-background-color-dark, 3%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|