2020-02-21 04:11:56 +01:00
|
|
|
#toc-auto {
|
2020-01-31 15:53:04 +01:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2020-02-21 04:11:56 +01:00
|
|
|
width: 100%;
|
2020-03-14 07:42:12 +01:00
|
|
|
max-width: 1000px;
|
2020-01-31 18:52:27 +01:00
|
|
|
margin-left: 1000px;
|
2020-02-02 07:43:29 +01:00
|
|
|
padding: 0 .8rem;
|
2020-01-31 15:53:04 +01:00
|
|
|
border-left: 1px solid $global-border-color;
|
2020-02-13 06:30:58 +01:00
|
|
|
overflow-wrap: break-word;
|
2020-01-31 15:53:04 +01:00
|
|
|
box-sizing: border-box;
|
2020-03-14 07:42:12 +01:00
|
|
|
top: if($header-normal-mode-desktop, 5rem, 10rem);
|
2020-01-31 15:53:04 +01:00
|
|
|
|
|
|
|
.dark-theme & {
|
|
|
|
border-left: 1px solid $global-border-color-dark;
|
|
|
|
}
|
|
|
|
|
2020-02-21 04:11:56 +01:00
|
|
|
.toc-title {
|
2020-01-31 15:53:04 +01:00
|
|
|
font-weight: 400;
|
2020-02-02 07:43:29 +01:00
|
|
|
margin: .8rem 0;
|
2020-01-31 15:53:04 +01:00
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
2020-02-21 04:11:56 +01:00
|
|
|
.toc-content {
|
2020-01-31 15:53:04 +01:00
|
|
|
&.always-active ul {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
>nav>ul {
|
|
|
|
margin: .625rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
text-indent: -0.85rem;
|
|
|
|
padding-left: .625rem;
|
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
a::before {
|
|
|
|
content: "|";
|
|
|
|
font-weight: bolder;
|
|
|
|
margin-right: .5rem;
|
2020-02-13 18:30:33 +01:00
|
|
|
color: $single-link-color;
|
2020-01-31 15:53:04 +01:00
|
|
|
|
|
|
|
.dark-theme & {
|
2020-02-13 18:30:33 +01:00
|
|
|
color: $single-link-color-dark;
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
padding-left: 1.25rem;
|
|
|
|
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
|
|
|
|
|
|
|
.dark-theme & {
|
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
|
|
|
|
|
|
|
.dark-theme & {
|
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;
|
|
|
|
padding-top: .8rem;
|
|
|
|
|
|
|
|
details {
|
|
|
|
summary {
|
2020-03-14 16:17:49 +01:00
|
|
|
list-style: none;
|
2020-03-14 17:39:23 +01:00
|
|
|
background: darken($code-background-color, 3%);
|
|
|
|
|
|
|
|
.dark-theme & {
|
|
|
|
background: darken($code-background-color-dark, 3%);
|
|
|
|
}
|
2020-03-14 16:17:49 +01:00
|
|
|
|
2020-02-21 04:11:56 +01:00
|
|
|
.toc-title {
|
2020-01-31 15:53:04 +01:00
|
|
|
display: block;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 2em;
|
|
|
|
padding: 0 .625rem;
|
|
|
|
|
|
|
|
i.details {
|
|
|
|
line-height: 2em;
|
|
|
|
}
|
|
|
|
|
2020-03-14 17:39:23 +01:00
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-details-marker {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
details[open] {
|
|
|
|
i.details {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
padding: .4rem .8rem;
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
2020-03-14 17:39:23 +01:00
|
|
|
list-style: none;
|
2020-01-31 15:53:04 +01:00
|
|
|
|
|
|
|
ul {
|
|
|
|
padding-left: 1.25rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dark-theme & {
|
2020-03-14 17:39:23 +01:00
|
|
|
background-color: $code-background-color-dark;
|
2020-01-31 15:53:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-02-21 17:34:44 +01:00
|
|
|
|
|
|
|
.toc {
|
2020-03-09 14:56:17 +01:00
|
|
|
.toc-title {
|
|
|
|
font-size: $toc-title-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toc-content {
|
|
|
|
font-size: $toc-content-font-size;
|
|
|
|
}
|
|
|
|
|
2020-02-21 17:34:44 +01:00
|
|
|
ruby {
|
|
|
|
background: $code-background-color;
|
|
|
|
|
|
|
|
rt {
|
|
|
|
color: $global-font-secondary-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dark-theme & {
|
|
|
|
background: $code-background-color-dark;
|
|
|
|
|
|
|
|
rt {
|
|
|
|
color: $global-font-secondary-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|