Skip to content

Commit

Permalink
Fix undefined custom properties in reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens committed Jun 8, 2020
1 parent 92a728e commit eb79713
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scss/_reboot.scss
Expand Up @@ -283,7 +283,7 @@ pre,
code,
kbd,
samp {
font-family: var(--bs-font-monospace);
font-family: $font-family-code;
@include font-size(1em); // Correct the odd `em` font sizing in all browsers.
}

Expand Down
3 changes: 2 additions & 1 deletion scss/_variables.scss
Expand Up @@ -385,8 +385,9 @@ $embed-responsive-aspect-ratios: (
// stylelint-disable value-keyword-case
$font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
$font-family-base: var(--bs-font-sans-serif) !default;
// stylelint-enable value-keyword-case
$font-family-base: var(--bs-font-sans-serif) !default;
$font-family-code: var(--bs-font-monospace) !default;

// $font-size-root effects the value of `rem`, which is used for as well font sizes, paddings and margins
// $font-size-base effects the font size of the body text
Expand Down
3 changes: 3 additions & 0 deletions scss/bootstrap-reboot.scss
Expand Up @@ -8,5 +8,8 @@

@import "functions";
@import "variables";
// Prevent the usage of custom properties since we don't add them to `:root` in reboot
$font-family-base: $font-family-sans-serif; // stylelint-disable-line scss/dollar-variable-default
$font-family-code: $font-family-monospace; // stylelint-disable-line scss/dollar-variable-default
@import "mixins";
@import "reboot";

0 comments on commit eb79713

Please sign in to comment.