|
|
|
@ -545,13 +545,21 @@ table { |
|
|
|
|
position: relative; |
|
|
|
|
text-decoration: none; |
|
|
|
|
|
|
|
|
|
--link-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>'); |
|
|
|
|
--check-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="green" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><polyline points="20 6 9 17 4 12"></polyline></svg>'); |
|
|
|
|
@mixin link-image($color) { |
|
|
|
|
$color: "rgb(" + red($color) + "," + green($color) + "," + |
|
|
|
|
blue($color) + ")"; |
|
|
|
|
|
|
|
|
|
--background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#{$color}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@include link-image($light-color); |
|
|
|
|
|
|
|
|
|
--background-image: var(--link-image); |
|
|
|
|
.dark-theme & { |
|
|
|
|
@include link-image($dark-color); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&.current-heading { |
|
|
|
|
--background-image: var(--check-image); |
|
|
|
|
--background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="rgb(0, 128, 0)" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><polyline points="20 6 9 17 4 12"></polyline></svg>'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
@ -707,3 +715,130 @@ table { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#toc { |
|
|
|
|
&.desktop-only { |
|
|
|
|
display: none; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.toc-title { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
font-weight: bold; |
|
|
|
|
font-size: 1.625rem; |
|
|
|
|
line-height: 1.3; |
|
|
|
|
margin: 0.83em 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ul, |
|
|
|
|
ol { |
|
|
|
|
li::marker { |
|
|
|
|
content: "- "; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@media (min-width: 1840px) { |
|
|
|
|
display: block !important; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 100vh; |
|
|
|
|
height: calc(100% - 100vh - 380px); |
|
|
|
|
|
|
|
|
|
.toc-content { |
|
|
|
|
position: sticky; |
|
|
|
|
top: 10vh; |
|
|
|
|
max-height: 70vh; |
|
|
|
|
margin-left: calc(-300px - 100px); |
|
|
|
|
display: flex !important; |
|
|
|
|
flex-direction: column; |
|
|
|
|
width: 300px; |
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar { |
|
|
|
|
width: 6px; |
|
|
|
|
height: 6px; |
|
|
|
|
background: darken($light-background, 10%); |
|
|
|
|
border-radius: 8px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb { |
|
|
|
|
background: darken($light-background, 25%); |
|
|
|
|
border-radius: 8px; |
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
|
background: darken($light-background, 40%); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.dark-theme & { |
|
|
|
|
::-webkit-scrollbar { |
|
|
|
|
background: lighten($dark-background, 10%); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb { |
|
|
|
|
background: lighten($dark-background, 25%); |
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
|
background: lighten($dark-background, 40%); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.toc-title { |
|
|
|
|
font-size: 1.375rem; |
|
|
|
|
min-height: calc(1.625rem * 1.3); |
|
|
|
|
margin: 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
nav { |
|
|
|
|
overflow-y: auto; |
|
|
|
|
margin-top: 1em; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
a { |
|
|
|
|
display: block; |
|
|
|
|
text-decoration: none; |
|
|
|
|
padding: 5px; |
|
|
|
|
border-radius: 8px; |
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
|
background: darken($light-background, 10%); |
|
|
|
|
|
|
|
|
|
.dark-theme & { |
|
|
|
|
background: lighten($dark-background, 10%); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&.current-toc { |
|
|
|
|
background: darken($light-background, 10%); |
|
|
|
|
|
|
|
|
|
.dark-theme & { |
|
|
|
|
background: lighten($dark-background, 10%); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&::before { |
|
|
|
|
content: "- "; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ul, |
|
|
|
|
ol { |
|
|
|
|
margin: 0; |
|
|
|
|
padding: 0; |
|
|
|
|
|
|
|
|
|
li::marker { |
|
|
|
|
content: ""; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
li a { |
|
|
|
|
padding-left: 20px; |
|
|
|
|
} |
|
|
|
|
li li a { |
|
|
|
|
padding-left: 40px; |
|
|
|
|
} |
|
|
|
|
li li li a { |
|
|
|
|
padding-left: 60px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|