mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Generate CSS variables for colors, breakpoints, fonts (#23761)
* Generate CSS variables See #23349 Supersedes #23446 * Ignore _root.scss for linting
This commit is contained in:
parent
3ca4d3f88d
commit
67d7e26e05
3 changed files with 20 additions and 0 deletions
|
@ -3,6 +3,9 @@ scss_files:
|
|||
- "scss/**/*.scss"
|
||||
- "docs/assets/scss/**/*.scss"
|
||||
|
||||
exclude:
|
||||
- "scss/_root.scss"
|
||||
|
||||
plugin_directories: ['.scss-linters']
|
||||
|
||||
# List of gem names to load custom linters from (make sure they are already
|
||||
|
|
16
scss/_root.scss
Normal file
16
scss/_root.scss
Normal file
|
@ -0,0 +1,16 @@
|
|||
:root {
|
||||
@each $color, $value in $colors {
|
||||
--#{$color}: $value;
|
||||
}
|
||||
|
||||
@each $color, $value in $theme-colors {
|
||||
--#{$color}: $value;
|
||||
}
|
||||
|
||||
@each $bp, $value in $grid-breakpoints {
|
||||
--breakpoint-#{$bp}: $value;
|
||||
}
|
||||
|
||||
--font-family-sans-serif: $font-family-sans-serif;
|
||||
--font-family-monospace: $font-family-monospace;
|
||||
}
|
1
scss/bootstrap.scss
vendored
1
scss/bootstrap.scss
vendored
|
@ -8,6 +8,7 @@
|
|||
@import "functions";
|
||||
@import "variables";
|
||||
@import "mixins";
|
||||
@import "root";
|
||||
@import "print";
|
||||
@import "reboot";
|
||||
@import "type";
|
||||
|
|
Loading…
Reference in a new issue