mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-28 07:39:57 +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:
@@ -1,16 +1,16 @@
|
||||
:root {
|
||||
// Custom variable values only support SassScript inside `#{}`.
|
||||
@each $color, $value in $colors {
|
||||
--bs-#{$color}: #{$value};
|
||||
--#{$variable-prefix}#{$color}: #{$value};
|
||||
}
|
||||
|
||||
@each $color, $value in $theme-colors {
|
||||
--bs-#{$color}: #{$value};
|
||||
--#{$variable-prefix}#{$color}: #{$value};
|
||||
}
|
||||
|
||||
// Use `inspect` for lists so that quoted items keep the quotes.
|
||||
// See https://github.com/sass/sass/issues/2383#issuecomment-336349172
|
||||
--bs-font-sans-serif: #{inspect($font-family-sans-serif)};
|
||||
--bs-font-monospace: #{inspect($font-family-monospace)};
|
||||
--bs-gradient: #{$gradient};
|
||||
--#{$variable-prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
|
||||
--#{$variable-prefix}font-monospace: #{inspect($font-family-monospace)};
|
||||
--#{$variable-prefix}gradient: #{$gradient};
|
||||
}
|
||||
|
Reference in New Issue
Block a user