1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-23 18:40:03 +00:00

Use custom properties for font-stacks (#30509)

This commit is contained in:
Gaël Poupard 2020-04-10 20:31:58 +02:00 committed by GitHub
parent 8fe162d67a
commit bcdd8fbc07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -283,7 +283,7 @@ pre,
code,
kbd,
samp {
font-family: $font-family-monospace;
font-family: var(--font-family-monospace);
@include font-size(1em); // Correct the odd `em` font sizing in all browsers.
}

View File

@ -441,7 +441,7 @@ $utilities: map-merge(
"font-family": (
property: font-family,
class: font,
values: (monospace: $font-family-monospace)
values: (monospace: var(--font-family-monospace))
),
"user-select": (
property: user-select,

View File

@ -369,7 +369,7 @@ $embed-responsive-aspect-ratios: (
// stylelint-disable value-keyword-case
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, "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: $font-family-sans-serif !default;
$font-family-base: var(--font-family-sans-serif) !default;
// stylelint-enable value-keyword-case
// $font-size-root effects the value of `rem`, which is used for as well font sizes, paddings and margins