]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
don't use negative margin - use first child to set to 0
authorJacob Thornton <jacobthornton@gmail.com>
Mon, 23 Jan 2012 04:12:26 +0000 (20:12 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Mon, 23 Jan 2012 04:12:26 +0000 (20:12 -0800)
bootstrap.css
bootstrap.min.css
lib/scaffolding.less

index fcfcf02f7fbccc80338b2bdeeec8666338d43ffb..d96c2277b7afb8407e77751da57641a002b21040 100644 (file)
@@ -6,7 +6,7 @@
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
- * Date: Sun Jan 22 20:06:46 PST 2012
+ * Date: Sun Jan 22 20:11:39 PST 2012
  */
 html, body {
   margin: 0;
@@ -238,7 +238,6 @@ a:hover {
   text-decoration: underline;
 }
 .row {
-  margin-left: -20px;
   *zoom: 1;
 }
 .row:before, .row:after {
@@ -248,6 +247,9 @@ a:hover {
 .row:after {
   clear: both;
 }
+[class*="span"]:first-child {
+  margin-left: 0;
+}
 [class*="span"] {
   float: left;
   margin-left: 20px;
index bb574566943e9ac6f4ca53bc1f7582826426185f..ccc0f1e421c64f244e6cc78e88aafb7647d46ae5 100644 (file)
@@ -32,8 +32,9 @@ body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:
 .sidebar-right .fluid-sidebar{float:right;margin-right:-240px;}
 .fluid-content{float:left;width:100%;}
 a{font-weight:inherit;line-height:inherit;color:#0088cc;text-decoration:none;}a:hover{color:#005580;text-decoration:underline;}
-.row{margin-left:-20px;*zoom:1;}.row:before,.row:after{display:table;content:"";}
+.row{*zoom:1;}.row:before,.row:after{display:table;content:"";}
 .row:after{clear:both;}
+[class*="span"]:first-child{margin-left:0;}
 [class*="span"]{float:left;margin-left:20px;}
 .span1{width:60px;}
 .span2{width:140px;}
index 7ad8a7b1648365551ce370cabad352cb29fe63f7..66e5cc32f35048bdc5a2ef46891385310b0503fa 100644 (file)
@@ -75,11 +75,15 @@ a {
 // -----------
 // To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there
 .row {
-  margin-left: -@gridGutterWidth;
   .clearfix();
 }
 
-// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
+[class*="span"]:first-child{
+  margin-left: 0;
+}
+
+// Find all .span# classes within .row and give them the necessary properties for grid columns 
+// (supported by all browsers back to IE7)
 // Credit to @dhg for the idea
 [class*="span"] {
   .gridColumn();