Skip to content

Commit a122448

Browse files
authoredJul 11, 2022
Add $display-font-family and $display-font-style (#36711)
1 parent ac654a0 commit a122448

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed
 

‎scss/_type.scss

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
@each $display, $font-size in $display-font-sizes {
3636
.display-#{$display} {
3737
@include font-size($font-size);
38+
font-family: $display-font-family;
39+
font-style: $display-font-style;
3840
font-weight: $display-font-weight;
3941
line-height: $display-line-height;
4042
}

‎scss/_variables.scss

+2
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,8 @@ $display-font-sizes: (
604604
6: 2.5rem
605605
) !default;
606606

607+
$display-font-family: null !default;
608+
$display-font-style: null !default;
607609
$display-font-weight: 300 !default;
608610
$display-line-height: $headings-line-height !default;
609611
// scss-docs-end display-headings

‎site/content/docs/5.2/content/typography.md

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Traditional heading elements are designed to work best in the meat of your page
8888

8989
Display headings are configured via the `$display-font-sizes` Sass map and two variables, `$display-font-weight` and `$display-line-height`.
9090

91+
Display headings are customizable via two variables, `$display-font-family` and `$display-font-style`.
92+
9193
{{< scss-docs name="display-headings" file="scss/_variables.scss" >}}
9294

9395
## Lead

0 commit comments

Comments
 (0)
Please sign in to comment.