mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-19 11:52:21 +01:00
feat: adds th null var (#30781)
Inherit `font-weight: bold` that comes from user agent stylesheets.
This commit is contained in:
parent
088c727a31
commit
9f9e4d04a1
@ -369,12 +369,14 @@ caption {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1. Matches default `<td>` alignment by inheriting `text-align`.
|
// 1. Removes font-weight bold by inheriting
|
||||||
// 2. Fix alignment for Safari
|
// 2. Matches default `<td>` alignment by inheriting `text-align`.
|
||||||
|
// 3. Fix alignment for Safari
|
||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: inherit; // 1
|
font-weight: $table-th-font-weight; // 1
|
||||||
text-align: -webkit-match-parent; // 2
|
text-align: inherit; // 2
|
||||||
|
text-align: -webkit-match-parent; // 3
|
||||||
}
|
}
|
||||||
|
|
||||||
thead,
|
thead,
|
||||||
|
@ -487,6 +487,8 @@ $table-cell-vertical-align: top !default;
|
|||||||
$table-color: $body-color !default;
|
$table-color: $body-color !default;
|
||||||
$table-bg: transparent !default;
|
$table-bg: transparent !default;
|
||||||
|
|
||||||
|
$table-th-font-weight: null !default;
|
||||||
|
|
||||||
$table-striped-color: $table-color !default;
|
$table-striped-color: $table-color !default;
|
||||||
$table-striped-bg-factor: .05 !default;
|
$table-striped-bg-factor: .05 !default;
|
||||||
$table-striped-bg: rgba($black, $table-striped-bg-factor) !default;
|
$table-striped-bg: rgba($black, $table-striped-bg-factor) !default;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user