Add floating table of contents

This commit is contained in:
object-Object 2023-09-05 17:51:31 -04:00 committed by GitHub
parent 6c43f01d86
commit ac3692ae43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,6 +105,24 @@ canvas.spell-viz {
margin: 4px 0;
}
@media (min-width: 40rem) {
.book-body {
width: 70%;
left: 5%;
position: relative;
float: left;
}
#table-of-contents {
position: sticky;
top: 0;
width: 25%;
float: left;
max-height: 80%;
overflow-y: scroll;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: #201a20;