Skip to content

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
mmistakes committed Nov 21, 2016
1 parent 7070b1d commit 22b9a55
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
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
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 22b9a55

Please sign in to comment.