|
@ -253,7 +253,7 @@ $.fn.sidebar = function(parameters) { |
|
|
if(direction === 'left' || direction === 'right') { |
|
|
if(direction === 'left' || direction === 'right') { |
|
|
module.debug('Adding CSS rules for animation distance', width); |
|
|
module.debug('Adding CSS rules for animation distance', width); |
|
|
style += '' |
|
|
style += '' |
|
|
+ ' .ui.visible.' + direction + '.sidebar ~ .pusher:after {' |
|
|
|
|
|
|
|
|
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher:after {' |
|
|
+ ' -webkit-transform: translate3d('+ distance[direction] + 'px, 0, 0);' |
|
|
+ ' -webkit-transform: translate3d('+ distance[direction] + 'px, 0, 0);' |
|
|
+ ' 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') { |
|
|
else if(direction === 'top' || direction == 'bottom') { |
|
|
style += '' |
|
|
style += '' |
|
|
+ ' .ui.visible.' + direction + '.sidebar ~ .pusher:after {' |
|
|
|
|
|
|
|
|
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher:after {' |
|
|
+ ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);' |
|
|
+ ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);' |
|
|
+ ' 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 */ |
|
|
/* opposite sides visible forces content overlay */ |
|
|
style += '' |
|
|
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);' |
|
|
+ ' -webkit-transform: translate3d(0px, 0, 0);' |
|
|
+ ' transform: translate3d(0px, 0, 0);' |
|
|
+ ' transform: translate3d(0px, 0, 0);' |
|
|
+ ' }' |
|
|
+ ' }' |
|
|