Skip to content
Closed
27 changes: 8 additions & 19 deletions scss/_type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,14 @@
}

// Type display classes
.display-1 {
@include font-size($display1-size);
font-weight: $display1-weight;
line-height: $display-line-height;
}
.display-2 {
@include font-size($display2-size);
font-weight: $display2-weight;
line-height: $display-line-height;
}
.display-3 {
@include font-size($display3-size);
font-weight: $display3-weight;
line-height: $display-line-height;
}
.display-4 {
@include font-size($display4-size);
font-weight: $display4-weight;
line-height: $display-line-height;
@each $index, $display-type in $display-types {
.display-#{$index} {
@include font-size(map-get($display-type, font-size));
//stylelint-disable-next-line font-weight-notation
font-weight: map-get($display-type, font-weight);
//stylelint-disable-next-line font-weight-notation
line-height: map-get($display-type, line-height);
}
}

//
Expand Down
29 changes: 19 additions & 10 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ $body-color: $gray-900 !default;
// Links
//
// Style anchor elements.

$link-color: theme-color("primary") !default;
$link-decoration: none !default;
$link-hover-color: darken($link-color, 15%) !default;
Expand Down Expand Up @@ -317,15 +316,25 @@ $headings-font-weight: 500 !default;
$headings-line-height: 1.2 !default;
$headings-color: null !default;

$display1-size: 6rem !default;
$display2-size: 5.5rem !default;
$display3-size: 4.5rem !default;
$display4-size: 3.5rem !default;

$display1-weight: 300 !default;
$display2-weight: 300 !default;
$display3-weight: 300 !default;
$display4-weight: 300 !default;
//display types as font-size and font-weight
$display-types: (
1: (
font-size: 6rem,
font-weight: 300
),
2: (
font-size: 5.5rem,
font-weight: 300
),
3: (
font-size: 4.5rem,
font-weight: 300
),
4: (
font-size: 3.5rem,
font-weight: 300
)
) !default;
$display-line-height: $headings-line-height !default;

$lead-font-size: $font-size-base * 1.25 !default;
Expand Down