mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-30 08:39:56 +02:00
Add Sass variable for CSS variable prefix (#31684)
* Add Sass variable for CSS variable prefix * Update other --bs-* var instances
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
$striped-bg: mix($color, $background, percentage($table-striped-bg-factor));
|
||||
$active-bg: mix($color, $background, percentage($table-active-bg-factor));
|
||||
|
||||
--bs-table-bg: #{$background};
|
||||
--bs-table-striped-bg: #{$striped-bg};
|
||||
--bs-table-striped-color: #{color-contrast($striped-bg)};
|
||||
--bs-table-active-bg: #{$active-bg};
|
||||
--bs-table-active-color: #{color-contrast($active-bg)};
|
||||
--bs-table-hover-bg: #{$hover-bg};
|
||||
--bs-table-hover-color: #{color-contrast($hover-bg)};
|
||||
--#{$variable-prefix}table-bg: #{$background};
|
||||
--#{$variable-prefix}table-striped-bg: #{$striped-bg};
|
||||
--#{$variable-prefix}table-striped-color: #{color-contrast($striped-bg)};
|
||||
--#{$variable-prefix}table-active-bg: #{$active-bg};
|
||||
--#{$variable-prefix}table-active-color: #{color-contrast($active-bg)};
|
||||
--#{$variable-prefix}table-hover-bg: #{$hover-bg};
|
||||
--#{$variable-prefix}table-hover-color: #{color-contrast($hover-bg)};
|
||||
|
||||
color: $color;
|
||||
border-color: mix($color, $background, percentage($table-border-factor));
|
||||
|
Reference in New Issue
Block a user