diff options
| author | Mark Otto <[email protected]> | 2020-09-29 22:32:58 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-30 08:32:58 +0300 |
| commit | 3cf51c6ac95c4702efc632a7983019c71f77d4b3 (patch) | |
| tree | 3ab0d8655566986824d5a9c1960913b38fe3e067 /scss/_root.scss | |
| parent | 7e195a8d22564fa9a555789784a36f26ed697681 (diff) | |
| download | bootstrap-3cf51c6ac95c4702efc632a7983019c71f77d4b3.tar.xz bootstrap-3cf51c6ac95c4702efc632a7983019c71f77d4b3.zip | |
Add Sass variable for CSS variable prefix (#31684)
* Add Sass variable for CSS variable prefix
* Update other --bs-* var instances
Diffstat (limited to 'scss/_root.scss')
| -rw-r--r-- | scss/_root.scss | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scss/_root.scss b/scss/_root.scss index 44eff1700..768d6343f 100644 --- a/scss/_root.scss +++ b/scss/_root.scss @@ -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}; } |
