From d374fe92e57cc75fa3bc1e664b96ed7f2191c7e0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 15 Apr 2012 16:48:17 -0700 Subject: [PATCH] simplify the left margin for offset grid columns --- less/mixins.less | 2 +- less/tests/css-tests.html | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/less/mixins.less b/less/mixins.less index 73e6ade56d..22666b21c3 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -546,7 +546,7 @@ .offsetX (0) {} .offset (@columns) { - margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2); + margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns + 1)); } .span (@columns) { diff --git a/less/tests/css-tests.html b/less/tests/css-tests.html index 8dad598c97..58e25be612 100644 --- a/less/tests/css-tests.html +++ b/less/tests/css-tests.html @@ -374,6 +374,19 @@ + +

Dropdown on a button

+
+ + +
+
@@ -445,6 +458,7 @@ + @@ -491,6 +505,8 @@ + +