feat: simplication des titres
This commit is contained in:
parent
db444b5fe7
commit
821251447f
1 changed files with 10 additions and 12 deletions
|
@ -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 ------------------- */
|
||||
|
|
Loading…
Reference in a new issue