mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
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>
This commit is contained in:
parent
3c8fbb6581
commit
45eb70e03c
@ -49,7 +49,7 @@
|
|||||||
body {
|
body {
|
||||||
margin: 0; // 1
|
margin: 0; // 1
|
||||||
font-family: var(--#{$variable-prefix}body-font-family);
|
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);
|
font-weight: var(--#{$variable-prefix}body-font-weight);
|
||||||
line-height: var(--#{$variable-prefix}body-line-height);
|
line-height: var(--#{$variable-prefix}body-line-height);
|
||||||
color: var(--#{$variable-prefix}body-color);
|
color: var(--#{$variable-prefix}body-color);
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
--#{$variable-prefix}root-font-size: #{$font-size-root};
|
--#{$variable-prefix}root-font-size: #{$font-size-root};
|
||||||
}
|
}
|
||||||
--#{$variable-prefix}body-font-family: #{$font-family-base};
|
--#{$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-font-weight: #{$font-weight-base};
|
||||||
--#{$variable-prefix}body-line-height: #{$line-height-base};
|
--#{$variable-prefix}body-line-height: #{$line-height-base};
|
||||||
--#{$variable-prefix}body-color: #{$body-color};
|
--#{$variable-prefix}body-color: #{$body-color};
|
||||||
|
Loading…
Reference in New Issue
Block a user