mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 13:17:00 +04:00
Let the docs table of contents scroll when it is taller than the viewport (#2994)
This commit is contained in:
1 parent
99b318ce16
commit
57a29ebb01
2 files changed
+9
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@tabler/docs": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixed the docs "On this page" list running past the viewport; the sticky rail now scrolls on its own.
|
||||||
@@ -606,6 +606,10 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The table of contents sticks too, so it has to clear the header (#2421).
|
// The table of contents sticks too, so it has to clear the header (#2421).
|
||||||
|
// A long list must not run past the viewport either: the rail is capped at the
|
||||||
|
// space below the header and scrolls on its own (#2965).
|
||||||
.docs-toc-sticky {
|
.docs-toc-sticky {
|
||||||
top: var(--docs-header-height);
|
top: var(--docs-header-height);
|
||||||
|
max-height: calc(100vh - var(--docs-header-height));
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user