Skip to content

Commit

Permalink
Backport Reboot's th updates
Browse files Browse the repository at this point in the history
Manually backports #30781 to v4.
  • Loading branch information
mdo authored and XhmikosR committed Sep 30, 2020
1 parent d9b4426 commit f6cdf5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scss/_reboot.scss
Expand Up @@ -278,10 +278,14 @@ caption {
caption-side: bottom;
}

// 1. Removes font-weight bold by inheriting
// 2. Matches default `<td>` alignment by inheriting `text-align`.
// 3. Fix alignment for Safari

th {
// Matches default `<td>` alignment by inheriting from the `<body>`, or the
// closest parent with a set `text-align`.
text-align: inherit;
font-weight: $table-th-font-weight; // 1
text-align: inherit; // 2
text-align: -webkit-match-parent; // 3
}


Expand Down
1 change: 1 addition & 0 deletions scss/_variables.scss
Expand Up @@ -363,6 +363,7 @@ $table-border-color: $border-color !default;

$table-head-bg: $gray-200 !default;
$table-head-color: $gray-700 !default;
$table-th-font-weight: null !default;

$table-dark-color: $white !default;
$table-dark-bg: $gray-800 !default;
Expand Down

0 comments on commit f6cdf5e

Please sign in to comment.