]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes #6837: Enable text alignment utility classes on tables
authorMark Otto <otto@github.com>
Fri, 8 Feb 2013 16:24:10 +0000 (08:24 -0800)
committerMark Otto <otto@github.com>
Fri, 8 Feb 2013 16:24:10 +0000 (08:24 -0800)
* Removes text-align from td elements (no need to set that one)
* Specifically sets th to text-align: left; at a global level (no longer within .table) to override browser defaults
* Removes font-weight: bold; from th while we're at it since that's browser default already

docs/assets/css/bootstrap.css
less/tables.less

index 66c192c03e76352cdb17c4bd9795afa1568e1b07..01d6d23f744f635b0be95b118e521ccacb57eb55 100644 (file)
@@ -848,6 +848,10 @@ table {
   border-spacing: 0;
 }
 
+th {
+  text-align: left;
+}
+
 .table {
   width: 100%;
   margin-bottom: 20px;
@@ -857,15 +861,10 @@ table {
 .table td {
   padding: 8px;
   line-height: 20px;
-  text-align: left;
   vertical-align: top;
   border-top: 1px solid #dddddd;
 }
 
-.table th {
-  font-weight: bold;
-}
-
 .table thead th {
   vertical-align: bottom;
 }
index 59cb007cba53b82b652a590765e085c32bb4ad35..67f7cd7658031d9c25c3c7affb0356db1058e9d6 100644 (file)
@@ -9,7 +9,9 @@ table {
   border-collapse: collapse;
   border-spacing: 0;
 }
-
+th {
+  text-align: left;
+}
 
 
 // BASELINE STYLES
@@ -23,13 +25,9 @@ table {
   td {
     padding: 8px;
     line-height: @line-height-base;
-    text-align: left;
     vertical-align: top;
     border-top: 1px solid @table-border;
   }
-  th {
-    font-weight: bold;
-  }
   // Bottom align for column headings
   thead th {
     vertical-align: bottom;