diff --git a/stylesheets/less/grid.less b/stylesheets/less/grid.less index d017266..8a6c5b4 100644 --- a/stylesheets/less/grid.less +++ b/stylesheets/less/grid.less @@ -56,10 +56,21 @@ body { margin: 0 @total-width*((@gutter-width*.5)/@gridsystem-width); // *width: @total-width*((((@gutter-width+@column-width)*@x)-@gutter-width) / @gridsystem-width)-@correction; // *margin: 0 @total-width*((@gutter-width*.5)/@gridsystem-width)-@correction; + [dir="rtl"] & { + float: right; + } } .push(@offset:1) { margin-left: @total-width*(((@gutter-width+@column-width)*@offset) / @gridsystem-width) + @total-width*((@gutter-width*.5)/@gridsystem-width); + [dir="rtl"] & { + margin-left: @total-width*(((@gutter-width*.5)/@gridsystem-width)*-1); + margin-right: @total-width*(((@gutter-width+@column-width)*@offset) / @gridsystem-width) + @total-width*((@gutter-width*.5)/@gridsystem-width); + } } .pull(@offset:1) { margin-right: @total-width*(((@gutter-width+@column-width)*@offset) / @gridsystem-width) + @total-width*((@gutter-width*.5)/@gridsystem-width); -} \ No newline at end of file + [dir="rtl"] & { + margin-left: @total-width*(((@gutter-width*.5)/@gridsystem-width)*-1); + margin-right: @total-width*(((@gutter-width+@column-width)*@offset) / @gridsystem-width) + @total-width*((@gutter-width*.5)/@gridsystem-width); + } +}