Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton committed Jun 26, 2023
1 parent 787dfea commit 63daac2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions scss/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
--#{$prefix}table-bg-type: initial;
--#{$prefix}table-color-state: initial;
--#{$prefix}table-bg-state: initial;
--#{$prefix}table-color: initial;
--#{$prefix}table-bg: initial;
// End of reset
--#{$prefix}table-color: #{$table-color};
--#{$prefix}table-bg: #{$table-bg};
--#{$prefix}table-border-color: #{$table-border-color};
--#{$prefix}table-accent-bg: #{$table-accent-bg};
--#{$prefix}table-striped-color: #{$table-striped-color};
Expand All @@ -22,7 +22,9 @@

width: 100%;
margin-bottom: $spacer;
color: $table-color;
vertical-align: $table-cell-vertical-align;
background-color: $table-bg;
border-color: var(--#{$prefix}table-border-color);

// Target th & td
Expand All @@ -33,8 +35,8 @@
> :not(caption) > * > * {
padding: $table-cell-padding-y $table-cell-padding-x;
// Following the precept of cascades: https://codepen.io/miriamsuzanne/full/vYNgodb
color: var(--#{$prefix}table-color-state, var(--#{$prefix}table-color-type, var(--#{$prefix}table-color)));
background-color: var(--#{$prefix}table-bg);
color: var(--#{$prefix}table-color-state, var(--#{$prefix}table-color-type, var(--#{$prefix}table-color, inherit)));
background-color: var(--#{$prefix}table-bg, inherit);
border-bottom-width: $table-border-width;
box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-bg-state, var(--#{$prefix}table-bg-type, var(--#{$prefix}table-accent-bg)));
}
Expand Down
1 change: 0 additions & 1 deletion scss/mixins/_table-variants.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
--#{$prefix}table-hover-bg: #{$hover-bg};
--#{$prefix}table-hover-color: #{color-contrast($hover-bg)};

color: var(--#{$prefix}table-color);
border-color: var(--#{$prefix}table-border-color);
}
}
Expand Down

0 comments on commit 63daac2

Please sign in to comment.