mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 09:41:11 +00:00
Use custom properties for font-stacks (#30509)
This commit is contained in:
parent
8fe162d67a
commit
bcdd8fbc07
@ -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.
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user