]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Backport Reboot's th updates
authorMark Otto <markdotto@gmail.com>
Tue, 29 Sep 2020 20:11:56 +0000 (13:11 -0700)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 5 Oct 2020 13:12:47 +0000 (16:12 +0300)
Manually backports #30781 to v4.

scss/_reboot.scss
scss/_variables.scss

index 505df6fdf2b87b604675c640aaacbc2f4eb6bc9a..6f73466d3b75671b13e2e933c15c624853aa2762 100644 (file)
@@ -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
 }
 
 
index fb9b7cd609c1a009a31833c3fe58a418d9887106..d7171e5a4bcfa4591f4d9d035b14efcb76b1360c 100644 (file)
@@ -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;