From: Mark Otto Date: Tue, 29 Sep 2020 20:11:56 +0000 (-0700) Subject: Backport Reboot's th updates X-Git-Tag: v4.5.3~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a03b2feff21e145d453bb4a35c46f774a52d0564;p=thirdparty%2Fbootstrap.git Backport Reboot's th updates Manually backports #30781 to v4. --- diff --git a/scss/_reboot.scss b/scss/_reboot.scss index 505df6fdf2..6f73466d3b 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 `` alignment by inheriting `text-align`. +// 3. Fix alignment for Safari + th { - // Matches default `` alignment by inheriting from the ``, 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 fb9b7cd609..d7171e5a4b 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;