Skip to content

Commit

Permalink
Add New Offcanvas Functionality
Browse files Browse the repository at this point in the history
Allow Offcanvas to overlap content instead of pushing content.
  • Loading branch information
winghouchan committed Apr 21, 2014
1 parent a458607 commit b08ca44
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scss/foundation/components/_offcanvas.scss
Expand Up @@ -103,6 +103,7 @@ $menu-slide: "transform 500ms ease" !default;
background: $off-canvas-bg;
z-index: 1001;
box-sizing: content-box;
transition: transform 500ms ease 0s;
-webkit-overflow-scrolling: touch;
@if $position == left {
@include translate3d(-100%,0,0);
Expand Down Expand Up @@ -366,6 +367,16 @@ $menu-slide: "transform 500ms ease" !default;
}
.exit-off-canvas { @include back-link; }
}
.offcanvas-overlap {
.left-off-canvas-menu, .right-off-canvas-menu {
transform: none;
z-index: 1003;
}
.exit-offcanvas-menu {
@include back-link;
z-index: 1002;
}
}

// Older browsers
.no-csstransforms {
Expand Down

0 comments on commit b08ca44

Please sign in to comment.