fix(sideMenu): Disable content interaction when menu open

Closes #1339
This commit is contained in:
Adam Bradley
2014-05-13 21:00:31 -05:00
parent cb597d76be
commit 76d4c083cb
2 changed files with 10 additions and 0 deletions

View File

@@ -142,6 +142,12 @@
var maxRight = this.right.width;
this.openAmount(this.right.width * p);
}
if(percentage !== 0) {
document.body.classList.add('menu-open');
} else {
document.body.classList.remove('menu-open');
}
},
/**

View File

@@ -24,6 +24,10 @@
box-shadow: $menu-side-shadow;
}
.menu-open .scroll-content {
pointer-events: none;
}
.grade-b .menu-content,
.grade-c .menu-content {
@include box-sizing(content-box);