]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes #6954: properly reset grid classes within tables
authorMark Otto <otto@github.com>
Fri, 1 Mar 2013 06:47:32 +0000 (22:47 -0800)
committerMark Otto <otto@github.com>
Fri, 1 Mar 2013 06:47:32 +0000 (22:47 -0800)
docs/assets/css/bootstrap.css
less/tables.less

index 299933d4bb8c1d7cdb6a5c07e207671c00a10628..c078ea4af186423f2a4bff3447655ff85e3358c0 100644 (file)
@@ -975,11 +975,15 @@ th {
   background-color: #f5f5f5;
 }
 
-table td[class*="span"],
-table th[class*="span"] {
+table col[class^="span"] {
+  display: table-column;
+  float: none;
+}
+
+table td[class^="span"],
+table th[class^="span"] {
   display: table-cell;
   float: none;
-  margin-left: 0;
 }
 
 .table tbody tr.success > td {
index 67f7cd7658031d9c25c3c7affb0356db1058e9d6..6a4e5e4fda1b10d5444587d26b3ad6b6779b637c 100644 (file)
@@ -177,12 +177,15 @@ th {
 // TABLE CELL SIZING
 // -----------------
 
-// Reset default grid behavior
-table td[class*="span"],
-table th[class*="span"] {
+// Reset default table behavior
+table col[class^="span"] {
+  float: none;
+  display: table-column;
+}
+table td[class^="span"],
+table th[class^="span"] {
+  float: none;
   display: table-cell;
-  float: none; // undo default grid column styles
-  margin-left: 0; // undo default grid column styles
 }
 
 // TABLE BACKGROUNDS