1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-01 09:22:55 +02:00

Add color and border-color css variables to tables (#35055)

This commit is contained in:
Geremia Taglialatela
2021-10-11 16:41:43 +02:00
committed by GitHub
parent 8ec6c94522
commit 5b124f647f
2 changed files with 9 additions and 4 deletions

View File

@@ -3,7 +3,9 @@
//
.table {
--#{$variable-prefix}table-color: #{$table-color};
--#{$variable-prefix}table-bg: #{$table-bg};
--#{$variable-prefix}table-border-color: #{$table-border-color};
--#{$variable-prefix}table-accent-bg: #{$table-accent-bg};
--#{$variable-prefix}table-striped-color: #{$table-striped-color};
--#{$variable-prefix}table-striped-bg: #{$table-striped-bg};
@@ -14,9 +16,9 @@
width: 100%;
margin-bottom: $spacer;
color: $table-color;
color: var(--#{$variable-prefix}table-color);
vertical-align: $table-cell-vertical-align;
border-color: $table-border-color;
border-color: var(--#{$variable-prefix}table-border-color);
// Target th & td
// We need the child combinator to prevent styles leaking to nested tables which doesn't have a `.table` class.