Skip to content

Commit

Permalink
feat(variables): use Boosted v4 values and make it compile + pass linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Apr 8, 2020
1 parent ea16528 commit 56f9077
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 125 deletions.
33 changes: 23 additions & 10 deletions scss/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,31 @@
vertical-align: $table-cell-vertical-align;
background-color: $table-bg; // Reset for nesting within parents with `background-color`.

// Boosted mod
// = Only rows have border
// = Set line-height everywhere
tr {
border-bottom: $table-border-width solid $table-border-color;
}

th,
td {
padding: $table-cell-padding;
border-bottom: $table-border-width solid $table-border-color;
line-height: $table-cell-line-height;
vertical-align: top;
}

tbody {
vertical-align: inherit;
thead tr {
border-bottom-width: $table-border-width * 2;
}

thead th {
vertical-align: bottom;
border-bottom-color: $table-head-border-color;
tbody th {
font-weight: $font-weight-normal;
}
// End mod

tbody {
vertical-align: inherit;
}

tbody + tbody {
Expand All @@ -44,7 +56,7 @@
.table-sm {
th,
td {
padding: $table-cell-padding-sm;
line-height: $table-cell-line-height-sm; // Boosted mod
}
}

Expand Down Expand Up @@ -76,11 +88,12 @@
color: $table-dark-color;
background-color: $table-dark-bg;

th,
td,
thead th {
// Boosted mod: only table rows have borders
tr,
th {
border-color: $table-dark-border-color;
}
// End mod

// Boosted mod: no .table-bordered

Expand Down
Loading

0 comments on commit 56f9077

Please sign in to comment.