mirror of https://github.com/twbs/bootstrap.git
Add `$display-font-family` and `$display-font-style` (#36711)
This commit is contained in:
parent
ac654a0f66
commit
a1224482f2
|
@ -35,6 +35,8 @@
|
||||||
@each $display, $font-size in $display-font-sizes {
|
@each $display, $font-size in $display-font-sizes {
|
||||||
.display-#{$display} {
|
.display-#{$display} {
|
||||||
@include font-size($font-size);
|
@include font-size($font-size);
|
||||||
|
font-family: $display-font-family;
|
||||||
|
font-style: $display-font-style;
|
||||||
font-weight: $display-font-weight;
|
font-weight: $display-font-weight;
|
||||||
line-height: $display-line-height;
|
line-height: $display-line-height;
|
||||||
}
|
}
|
||||||
|
|
|
@ -604,6 +604,8 @@ $display-font-sizes: (
|
||||||
6: 2.5rem
|
6: 2.5rem
|
||||||
) !default;
|
) !default;
|
||||||
|
|
||||||
|
$display-font-family: null !default;
|
||||||
|
$display-font-style: null !default;
|
||||||
$display-font-weight: 300 !default;
|
$display-font-weight: 300 !default;
|
||||||
$display-line-height: $headings-line-height !default;
|
$display-line-height: $headings-line-height !default;
|
||||||
// scss-docs-end display-headings
|
// scss-docs-end display-headings
|
||||||
|
|
|
@ -88,6 +88,8 @@ Traditional heading elements are designed to work best in the meat of your page
|
||||||
|
|
||||||
Display headings are configured via the `$display-font-sizes` Sass map and two variables, `$display-font-weight` and `$display-line-height`.
|
Display headings are configured via the `$display-font-sizes` Sass map and two variables, `$display-font-weight` and `$display-line-height`.
|
||||||
|
|
||||||
|
Display headings are customizable via two variables, `$display-font-family` and `$display-font-style`.
|
||||||
|
|
||||||
{{< scss-docs name="display-headings" file="scss/_variables.scss" >}}
|
{{< scss-docs name="display-headings" file="scss/_variables.scss" >}}
|
||||||
|
|
||||||
## Lead
|
## Lead
|
||||||
|
|
Loading…
Reference in New Issue