Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFĂ©lix Saparelli <felix@passcod.name>2017-10-02 07:00:24 +0300
committerMark Otto <markd.otto@gmail.com>2017-10-02 07:00:24 +0300
commit67d7e26e05f23bc240f3c411a134d60a7e78a798 (patch)
tree60a37730c92a76943e1b7ab442250eec34aa0be6 /scss/_root.scss
parent3ca4d3f88d8a2e5d43e6796c10630ad4b42ec045 (diff)
Generate CSS variables for colors, breakpoints, fonts (#23761)
* Generate CSS variables See #23349 Supersedes #23446 * Ignore _root.scss for linting
Diffstat (limited to 'scss/_root.scss')
-rw-r--r--scss/_root.scss16
1 files changed, 16 insertions, 0 deletions
diff --git a/scss/_root.scss b/scss/_root.scss
new file mode 100644
index 0000000000..78ac03915d
--- /dev/null
+++ b/scss/_root.scss
@@ -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;
+}