diff --git a/src/definitions/modules/sidebar.js b/src/definitions/modules/sidebar.js index afef8f4bb..844b721e9 100644 --- a/src/definitions/modules/sidebar.js +++ b/src/definitions/modules/sidebar.js @@ -253,7 +253,7 @@ $.fn.sidebar = function(parameters) { if(direction === 'left' || direction === 'right') { module.debug('Adding CSS rules for animation distance', width); style += '' - + ' .ui.visible.' + direction + '.sidebar ~ .pusher:after {' + + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher:after {' + ' -webkit-transform: translate3d('+ distance[direction] + 'px, 0, 0);' + ' transform: translate3d('+ distance[direction] + 'px, 0, 0);' + ' }' @@ -261,7 +261,7 @@ $.fn.sidebar = function(parameters) { } else if(direction === 'top' || direction == 'bottom') { style += '' - + ' .ui.visible.' + direction + '.sidebar ~ .pusher:after {' + + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher:after {' + ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);' + ' transform: translate3d(0, ' + distance[direction] + 'px, 0);' + ' }' @@ -269,8 +269,8 @@ $.fn.sidebar = function(parameters) { } /* opposite sides visible forces content overlay */ style += '' - + ' .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher:after,' - + ' .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher:after {' + + ' body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher:after,' + + ' body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher:after {' + ' -webkit-transform: translate3d(0px, 0, 0);' + ' transform: translate3d(0px, 0, 0);' + ' }' diff --git a/src/definitions/modules/sidebar.less b/src/definitions/modules/sidebar.less index 11efe443d..8a892b979 100755 --- a/src/definitions/modules/sidebar.less +++ b/src/definitions/modules/sidebar.less @@ -94,16 +94,21 @@ padding: 0em !important; } -/* Inside Page */ -.pushable:not(body) { - transform: translate3d(0, 0, 0); -} - /* Whole Page */ body.pushable { background: @canvasBackground !important; } +/* Page Context */ +.pushable:not(body) { + transform: translate3d(0, 0, 0); +} +.pushable:not(body) .ui.sidebar, +.pushable:not(body) > .fixed, +.pushable:not(body) > .pusher:after { + position: absolute; +} + /*-------------- Fixed