Fix Safari mobile bug

Opacity: 0 on nav sidebar when closed
This commit is contained in:
John O'Nolan 2015-02-28 16:07:43 +02:00
parent e4861a0d78
commit 8e220b089b
1 changed files with 10 additions and 2 deletions

View File

@ -531,12 +531,15 @@ body.nav-opened .nav-cover {
bottom: 0;
z-index: 5;
width: 240px;
opacity: 0;
background: #111;
margin-bottom: 0;
text-align: left;
overflow-y: auto;
-webkit-transition: -webkit-transform 0.5s ease;
transition: transform 0.5s ease;
-webkit-transition: -webkit-transform 0.5s ease,
opacity 0.3s ease 0.7s;
transition: transform 0.5s ease,
opacity 0.3s ease 0.7s;
}
body.nav-closed .nav {
@ -546,6 +549,11 @@ body.nav-closed .nav {
}
body.nav-opened .nav {
opacity: 1;
-webkit-transition: -webkit-transform 0.5s ease,
opacity 0s ease 0s;
transition: -webkit-transform 0.5s ease,
opacity 0s ease 0s;
-webkit-transform: translate3D(0, 0, 0);
-ms-transform: translate3D(0, 0, 0);
transform: translate3D(0, 0, 0);