Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Fix overlapping sidebar navigation list due to max-height: 100vh
Browse files Browse the repository at this point in the history
- Use `max-height: 9999px` for smoother animation than `max-height: 100%`
- Issue mmistakes#668
  • Loading branch information
makaroniame committed Nov 21, 2016
1 parent f8ca432 commit 88e9af0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _sass/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
@include breakpoint(max-width ($large - 1px)) {
position: relative;
max-height: 0;
opacity: 0;
opacity: 0%;
overflow: hidden;
z-index: 10;
-webkit-transition: 0.3s ease-in-out;
Expand All @@ -446,7 +446,7 @@
.nav__list input:checked ~ .nav__items {
-webkit-transition: 0.5s ease-in-out;
transition: 0.5s ease-in-out;
max-height: 100vh;
max-height: 9999px; // exaggerate max-height to accommodate tall lists
overflow: visible;
opacity: 1;
margin-top: 1em;
Expand Down
4 changes: 2 additions & 2 deletions docs/_sass/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
@include breakpoint(max-width ($large - 1px)) {
position: relative;
max-height: 0;
opacity: 0;
opacity: 0%;
overflow: hidden;
z-index: 10;
-webkit-transition: 0.3s ease-in-out;
Expand All @@ -446,7 +446,7 @@
.nav__list input:checked ~ .nav__items {
-webkit-transition: 0.5s ease-in-out;
transition: 0.5s ease-in-out;
max-height: 100vh;
max-height: 9999px; // exaggerate max-height to accommodate tall lists
overflow: visible;
opacity: 1;
margin-top: 1em;
Expand Down

0 comments on commit 88e9af0

Please sign in to comment.