2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03: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
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;
}