Skip to content
Snippets Groups Projects
Commit 4764aad9 authored by Ivica Puljic's avatar Ivica Puljic Committed by Ivica Puljic
Browse files

Issue #3390944 by pivica: Improve heading SASS mixin

parent 532466b2
No related branches found
No related tags found
No related merge requests found
@mixin heading($font-size) {
margin-top: $headings-margin-top-factor * $font-size;
margin-bottom: $headings-margin-bottom-factor * $font-size;
line-height: $headings-line-height * $font-size;
line-height: $headings-line-height;
font-size: $font-size;
@if $headings-letter-spacing {
letter-spacing: $headings-letter-spacing;
}
}
......@@ -102,6 +102,7 @@ $font-size-sm: .9rem !default; // ~ 14.4px.
$headings-line-height: 1.2 !default;
$headings-margin-top-factor: 1.5 !default;
$headings-margin-bottom-factor: 0.6 !default;
$headings-letter-spacing: false !default;
// Layout
......
......@@ -815,42 +815,42 @@ th.priority-medium {
h1, .h1 {
margin-top: 3.16667rem;
margin-bottom: 1.26667rem;
line-height: 2.53333rem;
line-height: 1.2;
font-size: 2.11111rem;
}
h2, .h2 {
margin-top: 2.33333rem;
margin-bottom: 0.93333rem;
line-height: 1.86667rem;
line-height: 1.2;
font-size: 1.55556rem;
}
h3, .h3 {
margin-top: 1.75rem;
margin-bottom: 0.7rem;
line-height: 1.4rem;
line-height: 1.2;
font-size: 1.16667rem;
}
h4, .h4 {
margin-top: 1.58333rem;
margin-bottom: 0.63333rem;
line-height: 1.26667rem;
line-height: 1.2;
font-size: 1.05556rem;
}
h5, .h5 {
margin-top: 1.5rem;
margin-bottom: 0.6rem;
line-height: 1.2rem;
line-height: 1.2;
font-size: 1rem;
}
h6, .h6 {
margin-top: 1.5rem;
margin-bottom: 0.6rem;
line-height: 1.2rem;
line-height: 1.2;
font-size: 1rem;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment