Fixes #286 - fix navigation flash during resize.
parent
43823c998e
commit
fc6149cdcf
|
@ -37,6 +37,7 @@
|
||||||
body.classList.toggle('open');
|
body.classList.toggle('open');
|
||||||
appbarElement.classList.toggle('open');
|
appbarElement.classList.toggle('open');
|
||||||
navdrawerContainer.classList.toggle('open');
|
navdrawerContainer.classList.toggle('open');
|
||||||
|
navdrawerContainer.classList.add('opened');
|
||||||
}
|
}
|
||||||
|
|
||||||
main.addEventListener('click', closeMenu);
|
main.addEventListener('click', closeMenu);
|
||||||
|
|
|
@ -159,7 +159,7 @@ button.menu img {
|
||||||
transform: translate(0, 0);
|
transform: translate(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-bar, .navdrawer-container, main {
|
.app-bar, .navdrawer-container.opened, main {
|
||||||
-webkit-transition: -webkit-transform 0.3s ease-out;
|
-webkit-transition: -webkit-transform 0.3s ease-out;
|
||||||
transition: transform 0.3s ease-out;
|
transition: transform 0.3s ease-out;
|
||||||
}
|
}
|
||||||
|
@ -365,4 +365,4 @@ main {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
src: url(/fonts/RobotoCondensed-BoldItalic.eot);
|
src: url(/fonts/RobotoCondensed-BoldItalic.eot);
|
||||||
src: local('Roboto Condensed Bold Italic'), local('RobotoCondensed-BoldItalic'), url(/fonts/RobotoCondensed-BoldItalic.eot) format('embedded-opentype'), url(/fonts/RobotoCondensed-BoldItalic.woff) format('woff');
|
src: local('Roboto Condensed Bold Italic'), local('RobotoCondensed-BoldItalic'), url(/fonts/RobotoCondensed-BoldItalic.eot) format('embedded-opentype'), url(/fonts/RobotoCondensed-BoldItalic.woff) format('woff');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue