Browse Source

Reverts #423, sidebar changes

pull/524/head
jlukic 11 years ago
parent
commit
c85111db98
1 changed files with 1 additions and 3 deletions
  1. 4
      src/modules/sidebar.js

4
src/modules/sidebar.js

@ -202,15 +202,13 @@ $.fn.sidebar = function(parameters) {
add: { add: {
bodyCSS: function(direction, distance) { bodyCSS: function(direction, distance) {
var var
invertDirection,
style style
; ;
if(direction !== className.bottom) { if(direction !== className.bottom) {
invertDirection = direction === 'right' ? -1 : 1;
style = '' style = ''
+ '<style title="' + namespace + '">' + '<style title="' + namespace + '">'
+ 'body.pushed {' + 'body.pushed {'
+ ' margin-left: ' + invertDirection * distance + 'px !important;'
+ ' margin-' + direction + ': ' + distance + 'px !important;'
+ '}' + '}'
+ '</style>' + '</style>'
; ;

Loading…
Cancel
Save