1
0
Fork 0
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:
Félix Saparelli 2017-10-02 17:00:24 +13:00 committed by Mark Otto
parent 3ca4d3f88d
commit 67d7e26e05
3 changed files with 20 additions and 0 deletions

View file

@ -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
View 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
View file

@ -8,6 +8,7 @@
@import "functions";
@import "variables";
@import "mixins";
@import "root";
@import "print";
@import "reboot";
@import "type";