@@ -392,8 +392,10 @@ def _add_sass_ensure_variables(self):
392
392
"added variables" ,
393
393
** {
394
394
"code-font-weight" : None ,
395
+ "font-family-monospace-inline" : None ,
395
396
"code-inline-font-weight" : None ,
396
397
"code-inline-font-size" : None ,
398
+ "font-family-monospace-block" : None ,
397
399
"code-block-font-weight" : None ,
398
400
"code-block-font-size" : None ,
399
401
"code-block-line-height" : None ,
@@ -481,23 +483,25 @@ def _add_sass_brand_rules(self):
481
483
// *---- brand: brand rules to augment Bootstrap rules ----* //
482
484
// https://github.com/twbs/bootstrap/blob/5c2f2e7e/scss/_root.scss#L82
483
485
:root {
484
- --#{$prefix}link-bg: #{$link-bg};
485
- --#{$prefix}link-weight: #{$link-weight};
486
+ --#{$prefix}link-bg: #{$link-bg};
487
+ --#{$prefix}link-weight: #{$link-weight};
486
488
}
487
489
// https://github.com/twbs/bootstrap/blob/5c2f2e7e/scss/_reboot.scss#L244
488
490
a {
489
- background-color: var(--#{$prefix}link-bg);
490
- font-weight: var(--#{$prefix}link-weight);
491
+ background-color: var(--#{$prefix}link-bg);
492
+ font-weight: var(--#{$prefix}link-weight);
491
493
}
492
494
code {
493
- font-weight: $code-font-weight;
495
+ font-weight: $code-font-weight;
494
496
}
495
- code {
497
+ code:not(pre > code) {
498
+ font-family: $font-family-monospace-inline;
496
499
font-weight: $code-inline-font-weight;
497
500
font-size: $code-inline-font-size;
498
501
}
499
502
// https://github.com/twbs/bootstrap/blob/30e01525/scss/_reboot.scss#L287
500
503
pre {
504
+ font-family: $font-family-monospace-block;
501
505
font-weight: $code-block-font-weight;
502
506
font-size: $code-block-font-size;
503
507
line-height: $code-block-line-height;
0 commit comments