1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 16:50:00 +02:00

Add bs- prefixes to custom properties (#30591)

This commit is contained in:
Martijn Cuppens
2020-04-15 18:52:16 +02:00
committed by GitHub
parent f0abe26b98
commit 8cdb057111
6 changed files with 20 additions and 20 deletions

View File

@@ -1,15 +1,15 @@
:root {
// Custom variable values only support SassScript inside `#{}`.
@each $color, $value in $colors {
--#{$color}: #{$value};
--bs-#{$color}: #{$value};
}
@each $color, $value in $theme-colors {
--#{$color}: #{$value};
--bs-#{$color}: #{$value};
}
// Use `inspect` for lists so that quoted items keep the quotes.
// See https://github.com/sass/sass/issues/2383#issuecomment-336349172
--font-family-sans-serif: #{inspect($font-family-sans-serif)};
--font-family-monospace: #{inspect($font-family-monospace)};
--bs-font-sans-serif: #{inspect($font-family-sans-serif)};
--bs-font-monospace: #{inspect($font-family-monospace)};
}