mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05: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
2 changed files with 8 additions and 4 deletions
|
@ -369,12 +369,14 @@ caption {
|
|||
text-align: left;
|
||||
}
|
||||
|
||||
// 1. Matches default `<td>` alignment by inheriting `text-align`.
|
||||
// 2. Fix alignment for Safari
|
||||
// 1. Removes font-weight bold by inheriting
|
||||
// 2. Matches default `<td>` alignment by inheriting `text-align`.
|
||||
// 3. Fix alignment for Safari
|
||||
|
||||
th {
|
||||
text-align: inherit; // 1
|
||||
text-align: -webkit-match-parent; // 2
|
||||
font-weight: $table-th-font-weight; // 1
|
||||
text-align: inherit; // 2
|
||||
text-align: -webkit-match-parent; // 3
|
||||
}
|
||||
|
||||
thead,
|
||||
|
|
|
@ -487,6 +487,8 @@ $table-cell-vertical-align: top !default;
|
|||
$table-color: $body-color !default;
|
||||
$table-bg: transparent !default;
|
||||
|
||||
$table-th-font-weight: null !default;
|
||||
|
||||
$table-striped-color: $table-color !default;
|
||||
$table-striped-bg-factor: .05 !default;
|
||||
$table-striped-bg: rgba($black, $table-striped-bg-factor) !default;
|
||||
|
|
Loading…
Reference in a new issue