Commit 3eed90c1 authored by Mark Otto's avatar Mark Otto
Browse files

Fixes #6837: Enable text alignment utility classes on tables

* 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
parent ab1dc25f
18 merge requests!7033Fix backdrop undefined bug in modal,!8635ignore Gruntfile.js in jekyll,!8339Fix broken links to navbar component in docs examples,!7329Fix for issue #7328,!7219Fix for mini typo mistake in css.html,!7674Clear float on all when navbar is collapsed - v3,!7344Fixed .spanX selector (*= instead of ^=),!7346Fix compilation error,!7775added some tests for tooltip title setter,!8157Close Me: Docs "Customize and Download" button fix,!7509Proposed fix for allowing Collapse events ('show'/'hide') to be cancelled,!7964commit fixes #7792,!8656Added rel="stylesheet" to CDN-Examples,!8527Inner properties move 1,!8245Interactive color picker - Closed: request against wrong branch,!7865Patch 2,!7651Drop the sizzle dependency to allow smaller builds targeting mobile devices,!6853typeahead: do not store item data in an attribute
Showing with 7 additions and 10 deletions
+7 -10
...@@ -848,6 +848,10 @@ table { ...@@ -848,6 +848,10 @@ table {
border-spacing: 0; border-spacing: 0;
} }
th {
text-align: left;
}
.table { .table {
width: 100%; width: 100%;
margin-bottom: 20px; margin-bottom: 20px;
...@@ -857,15 +861,10 @@ table { ...@@ -857,15 +861,10 @@ table {
.table td { .table td {
padding: 8px; padding: 8px;
line-height: 20px; line-height: 20px;
text-align: left;
vertical-align: top; vertical-align: top;
border-top: 1px solid #dddddd; border-top: 1px solid #dddddd;
} }
.table th {
font-weight: bold;
}
.table thead th { .table thead th {
vertical-align: bottom; vertical-align: bottom;
} }
......
...@@ -9,7 +9,9 @@ table { ...@@ -9,7 +9,9 @@ table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
} }
th {
text-align: left;
}
// BASELINE STYLES // BASELINE STYLES
...@@ -23,13 +25,9 @@ table { ...@@ -23,13 +25,9 @@ table {
td { td {
padding: 8px; padding: 8px;
line-height: @line-height-base; line-height: @line-height-base;
text-align: left;
vertical-align: top; vertical-align: top;
border-top: 1px solid @table-border; border-top: 1px solid @table-border;
} }
th {
font-weight: bold;
}
// Bottom align for column headings // Bottom align for column headings
thead th { thead th {
vertical-align: bottom; vertical-align: bottom;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment