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:
authorTravis Risner <travis@bluewall.com>2021-11-26 03:01:19 +0300
committerGitHub <noreply@github.com>2021-11-26 03:01:19 +0300
commit45eb70e03c1905d247c6e012fff9e263d1326066 (patch)
treee98dd14e6fb340a7de90e19bd971c68f46e4fadd
parent3c8fbb6581aabd02603cf3876770e526a7b870fd (diff)
Correctly implement RFS in `:root` CSS variable for `$body-font-size` (#35326)
* rfs fix * Update scss/_root.scss * Update _reboot.scss Co-authored-by: Mark Otto <otto@github.com> Co-authored-by: Mark Otto <markd.otto@gmail.com>
-rw-r--r--scss/_reboot.scss2
-rw-r--r--scss/_root.scss2
2 files changed, 2 insertions, 2 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss
index acd1138bb6..bf0eb9e250 100644
--- a/scss/_reboot.scss
+++ b/scss/_reboot.scss
@@ -49,7 +49,7 @@
body {
margin: 0; // 1
font-family: var(--#{$variable-prefix}body-font-family);
- @include font-size(var(--#{$variable-prefix}body-font-size));
+ font-size: var(--#{$variable-prefix}body-font-size);
font-weight: var(--#{$variable-prefix}body-font-weight);
line-height: var(--#{$variable-prefix}body-line-height);
color: var(--#{$variable-prefix}body-color);
diff --git a/scss/_root.scss b/scss/_root.scss
index 5e138e97b4..2927c343ff 100644
--- a/scss/_root.scss
+++ b/scss/_root.scss
@@ -41,7 +41,7 @@
--#{$variable-prefix}root-font-size: #{$font-size-root};
}
--#{$variable-prefix}body-font-family: #{$font-family-base};
- --#{$variable-prefix}body-font-size: #{$font-size-base};
+ @include rfs($font-size-base, --#{$variable-prefix}body-font-size);
--#{$variable-prefix}body-font-weight: #{$font-weight-base};
--#{$variable-prefix}body-line-height: #{$line-height-base};
--#{$variable-prefix}body-color: #{$body-color};