mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-13 17:49:25 +00:00
feat(toc): ✨ move ToC together when user scrolls down
This commit is contained in:
parent
6b13da3318
commit
c65f0151da
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue