Skip to content

Commit

Permalink
feat: adds th null var
Browse files Browse the repository at this point in the history
  • Loading branch information
zalog committed May 12, 2020
1 parent e6829fb commit 8fcd876
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scss/_reboot.scss
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions scss/_variables.scss
Expand Up @@ -478,6 +478,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;
Expand Down

0 comments on commit 8fcd876

Please sign in to comment.