1
0
Fork 0
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:
Catalin Zalog 2020-06-17 16:55:28 +03:00 committed by GitHub
parent 088c727a31
commit 9f9e4d04a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -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,

View file

@ -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;