1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-01 02:27:17 +01:00

Fixed unreachable toc title on screen after scrolling

This commit is contained in:
squidfunk 2020-02-15 22:04:08 +01:00
parent 694eaca889
commit 29021a55dc

View File

@ -471,8 +471,9 @@
// property must be calculated before transitioning // property must be calculated before transitioning
transition: max-height 0.25s cubic-bezier(0.86, 0, 0.07, 1); transition: max-height 0.25s cubic-bezier(0.86, 0, 0.07, 1);
// Snap to title // Snap to site and table of contents title
.md-nav__title--site { .md-nav__title[for="__drawer"],
.md-nav__title[for="__toc"] {
scroll-snap-align: start; scroll-snap-align: start;
} }