feat: simplication des titres

This commit is contained in:
Kazhnuz 2024-09-22 18:10:43 +02:00
parent db444b5fe7
commit 821251447f

View file

@ -92,44 +92,42 @@ sub {
/* ------------------ TITLES ------------------- */
@mixin title($size, $weight) {
$height: ceil($size / $baseline) * $baseline;
font-size: $size * 1rem;
line-height: $height * 1rem;
margin-bottom: $lineheight;
font-size: $size;
font-weight: $weight;
}
h1, h2, h3, h4, h5, h6, h7 {
h1, h2, h3, h4, h5, h6 {
text-align: left;
font-size: $baseheight;
line-height: $lineheight;
line-height: 1;
padding:0;
margin:0;
font-weight:400;
margin-bottom: $lineheight;
}
h1 {
@include title(2.3333333, 700);
@include title(2.3333333rem, 700);
}
h2 {
@include title(2, 700);
@include title(2rem, 700);
}
h3 {
@include title(1.5, 700);
@include title(1.5rem, 700);
}
h4 {
@include title(1.5, 600);
@include title(1.5rem, 600);
}
h5 {
@include title(1.333333, 600);
@include title(1.333333rem, 600);
}
h6 {
@include title(1.1, 600);
@include title(1.1rem, 600);
}
/* ------------------ HR ------------------- */