aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Zalog <[email protected]>2020-06-17 16:55:28 +0300
committerGitHub <[email protected]>2020-06-17 16:55:28 +0300
commit9f9e4d04a127b3505f01bb6c341d3d40430f39ff (patch)
tree1f9fdfa9b98d3d149be9e83f1b9963fc65bce98e
parent088c727a31fd5a700f1d0024fef834a1720c9692 (diff)
downloadbootstrap-9f9e4d04a127b3505f01bb6c341d3d40430f39ff.tar.xz
bootstrap-9f9e4d04a127b3505f01bb6c341d3d40430f39ff.zip
feat: adds th null var (#30781)
Inherit `font-weight: bold` that comes from user agent stylesheets.
-rw-r--r--scss/_reboot.scss10
-rw-r--r--scss/_variables.scss2
2 files changed, 8 insertions, 4 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss
index b3763d05a..b6e8a79a5 100644
--- a/scss/_reboot.scss
+++ b/scss/_reboot.scss
@@ -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,
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 2e0d0cef6..9e8fd622e 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -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;