1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-27 07:14:36 +02: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

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";