Fixes #286 - fix navigation flash during resize.

master
Addy Osmani 2014-08-03 00:10:18 +01:00
parent 43823c998e
commit fc6149cdcf
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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');
} }