scss: use a mixin for titles

This commit is contained in:
Kazhnuz 2018-10-13 17:13:38 +02:00
parent f7b69f7347
commit 1451480bdc
2 changed files with 20 additions and 26 deletions

View file

@ -110,30 +110,35 @@ h2 {
font-size: 1.8em; font-size: 1.8em;
line-height: 1.5em; line-height: 1.5em;
padding: 0; padding: 0;
margin-bottom: 0em;
font-weight: 600; } font-weight: 600; }
h3 { h3 {
font-size: 1.6em; font-size: 1.6em;
line-height: 1.5em; line-height: 1.5em;
padding: 0; padding: 0;
margin-bottom: 0em;
font-weight: 600; } font-weight: 600; }
h4 { h4 {
font-size: 1.4em; font-size: 1.4em;
line-height: 1.5em; line-height: 1.5em;
padding: 0; padding: 0;
margin-bottom: 0em;
font-weight: 600; } font-weight: 600; }
h5 { h5 {
font-size: 1.4em; font-size: 1.4em;
line-height: 1.5em; line-height: 1.5em;
padding: 0; padding: 0;
margin-bottom: 0em;
font-weight: 400; } font-weight: 400; }
h6 { h6 {
font-size: 1.2em; font-size: 1.2em;
line-height: 1.5em; line-height: 1.5em;
padding: 0em; padding: 0;
margin-bottom: 0em;
font-weight: 400; } font-weight: 400; }
/* ------------------ HR ------------------- */ /* ------------------ HR ------------------- */

View file

@ -114,6 +114,14 @@ a {
/* ------------------ TITLES ------------------- */ /* ------------------ TITLES ------------------- */
@mixin title($size, $height, $bottom, $weight) {
font-size: $size;
line-height: $height;
padding:0;
margin-bottom: $bottom;
font-weight: $weight;
}
h1, h2, h3, h4, h5, h6, h7 { h1, h2, h3, h4, h5, h6, h7 {
text-align: left; text-align: left;
font-size: 1em; font-size: 1em;
@ -124,46 +132,27 @@ h1, h2, h3, h4, h5, h6, h7 {
} }
h1 { h1 {
font-size: 2em; @include title(2em, 1.5em, 1em, 600);
line-height: 1.5em;
padding:0;
margin-bottom:1em;
font-weight:600;
} }
h2 { h2 {
font-size: 1.8em; @include title(1.8em, 1.5em, 0em, 600);
line-height: 1.5em;
padding:0;
font-weight:600;
} }
h3 { h3 {
font-size: 1.6em; @include title(1.6em, 1.5em, 0em, 600);
line-height: 1.5em;
padding:0;
font-weight:600;
} }
h4 { h4 {
font-size: 1.4em; @include title(1.4em, 1.5em, 0em, 600);
line-height: 1.5em;
padding:0;
font-weight:600;
} }
h5 { h5 {
font-size: 1.4em; @include title(1.4em, 1.5em, 0em, 400);
line-height: 1.5em;
padding:0;
font-weight:400;
} }
h6 { h6 {
font-size: 1.2em; @include title(1.2em, 1.5em, 0em, 400);
line-height: 1.5em;
padding:0em;
font-weight:400;
} }
/* ------------------ HR ------------------- */ /* ------------------ HR ------------------- */