mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
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
This commit is contained in:
parent
ab1dc25ffc
commit
3eed90c187
9
docs/assets/css/bootstrap.css
vendored
9
docs/assets/css/bootstrap.css
vendored
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user