diff options
| author | Mark Otto <[email protected]> | 2020-09-29 13:11:56 -0700 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-10-05 16:12:47 +0300 |
| commit | a03b2feff21e145d453bb4a35c46f774a52d0564 (patch) | |
| tree | ac4462b1d9c47cdddc73630bc1615c9e20b7f2bb | |
| parent | 24572b157793c0d762f56314786df18aba3d6212 (diff) | |
| download | bootstrap-a03b2feff21e145d453bb4a35c46f774a52d0564.tar.xz bootstrap-a03b2feff21e145d453bb4a35c46f774a52d0564.zip | |
Backport Reboot's th updates
Manually backports #30781 to v4.
| -rw-r--r-- | scss/_reboot.scss | 10 | ||||
| -rw-r--r-- | scss/_variables.scss | 1 |
2 files changed, 8 insertions, 3 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss index 505df6fdf..6f73466d3 100644 --- a/scss/_reboot.scss +++ b/scss/_reboot.scss @@ -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 } diff --git a/scss/_variables.scss b/scss/_variables.scss index fb9b7cd60..d7171e5a4 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -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; |
