mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-28 00:32:42 -04:00
Fixed animation of expanded navigation items
This commit is contained in:
@@ -567,7 +567,7 @@
|
||||
}
|
||||
|
||||
// Show nested navigation when toggle is active or indeterminate
|
||||
&__toggle:is(:checked, :indeterminate) ~ & {
|
||||
&__toggle:is(:checked, .md-toggle--indeterminate) ~ & {
|
||||
grid-template-rows: 1fr;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
@@ -577,6 +577,11 @@
|
||||
visibility 0ms;
|
||||
}
|
||||
|
||||
// Disable transition for expanded navigation
|
||||
&__toggle.md-toggle--indeterminate ~ & {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
// Hide navigation title in nested navigation
|
||||
&__item--nested > & > &__title {
|
||||
display: none;
|
||||
@@ -661,7 +666,7 @@
|
||||
|
||||
// Navigation icon - rotate icon when toggle is active or indeterminate
|
||||
.md-nav__item--nested .md-nav__toggle:checked ~ .md-nav__link &,
|
||||
.md-nav__item--nested .md-nav__toggle:indeterminate ~ .md-nav__link & {
|
||||
.md-nav__item--nested .md-toggle--indeterminate ~ .md-nav__link & {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user