diff options
author | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2015-02-10 17:23:07 -0200 |
---|---|---|
committer | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2015-02-19 16:41:24 -0200 |
commit | 518856ed261ba3bdd1270dff45151db967c72434 (patch) | |
tree | 80a05a28ed92dfe2b8a79e506f46a068d8fe2f57 /web-ui/app/scss | |
parent | a22c4a5cb9248d550e2feb430b8f047a7e555a9a (diff) |
#239 make sidenav always partially visible
Diffstat (limited to 'web-ui/app/scss')
-rw-r--r-- | web-ui/app/scss/styles.scss | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/web-ui/app/scss/styles.scss b/web-ui/app/scss/styles.scss index e5556f2f..c3da4604 100644 --- a/web-ui/app/scss/styles.scss +++ b/web-ui/app/scss/styles.scss @@ -572,15 +572,6 @@ button { bottom: 0; position: absolute; overflow-y: auto; - z-index: 1001; - transition: transform 500ms ease 0s; - -webkit-overflow-scrolling: touch; - -ms-transform: translate(-100%, 0); - -webkit-transform: translate3d(-100%, 0, 0); - -moz-transform: translate3d(-100%, 0, 0); - -ms-transform: translate3d(-100%, 0, 0); - -o-transform: translate3d(-100%, 0, 0); - transform: translate3d(-100%, 0, 0); } .left-off-canvas-menu * { -webkit-backface-visibility: hidden; } @@ -610,13 +601,15 @@ display: table; } .inner-wrap:after { clear: both; } -.move-right > .inner-wrap { +.off-canvas-wrap.move-right > .inner-wrap.content { -ms-transform: translate(13.88889rem, 0); -webkit-transform: translate3d(13.88889rem, 0, 0); -moz-transform: translate3d(13.88889rem, 0, 0); -ms-transform: translate3d(13.88889rem, 0, 0); -o-transform: translate3d(13.88889rem, 0, 0); -transform: translate3d(13.88889rem, 0, 0); } + transform: translate3d(13.88889rem, 0, 0); +} + .move-right .exit-off-canvas { -webkit-backface-visibility: hidden; transition: background 300ms ease; @@ -634,6 +627,23 @@ transform: translate3d(13.88889rem, 0, 0); } .move-right .exit-off-canvas:hover { background: rgba(255, 255, 255, 0.05); } } +.off-canvas-wrap.move-right.menu { + position: absolute; +} + +.off-canvas-wrap.move-right.menu > .inner-wrap.content { + transform: translate3d(0, 0, 0); +} + +.off-canvas-wrap .inner-wrap.content { + -ms-transform: translate(75px, 0); + -webkit-transform: translate3d(75px, 0, 0); + -moz-transform: translate3d(75px, 0, 0); + -ms-transform: translate3d(75px, 0, 0); + -o-transform: translate3d(75px, 0, 0); + transform: translate3d(75px, 0, 0); +} + .offcanvas-overlap .left-off-canvas-menu, .offcanvas-overlap .right-off-canvas-menu { -ms-transform: none; -webkit-transform: none; |