feat(toc): move ToC together when user scrolls down

This commit is contained in:
alistair3149 2022-11-10 16:11:37 -05:00
parent 6b13da3318
commit c65f0151da
No known key found for this signature in database

View file

@ -124,6 +124,17 @@
}
}
// Move down when site header is hidden
@media ( max-width: ( @width-breakpoint-tablet ) ) {
.citizen-toc {
transition: @transition-transform;
}
.citizen-scroll--down .citizen-toc {
transform: translateY( var( --header-size ) );
}
}
@media ( max-width: ( @width-breakpoint-desktop - 1px ) ) {
.citizen-toc {
position: fixed;