Commit 139b9fca authored by Julie Blanc's avatar Julie Blanc

cleaning headers and snap to the baseline

parent 22c11ad3
......@@ -2,55 +2,57 @@
h1 {
font-family: var(--font-head);
/* font-size: 23px;
font-variant: all-small-caps;
text-transform: uppercase; */
line-height: calc(var(font-lineHeight) * 3);
font-size: 5em;
line-height: calc(var(--font-lineHeight)*4);
margin: 0;
}
break-before: page;
break-inside: avoid;
padding-bottom: calc(var(--font-lineHeight)*3);
/* snap to the baseline (depend of the font-family and the font-size) */
position: relative;
top: 6px;
}
h2 {
h2 {
margin: 0;
font-family: var(--font-head);
font-size: 12px;
font-size: 2.4em;
line-height: calc(var(--font-lineHeight)*2);
break-inside: avoid;
break-after: avoid;
font-weight: 400;
}
margin-top: calc(var(--font-lineHeight)*1);
padding-top: calc(var(--font-lineHeight)*0.75);
padding-bottom: calc(var(--font-lineHeight)*1.25);
/* snap to the baseline (depend of the font-family and the font-size) */
position: relative;
top: 5px;
}
h3 {
margin: 0;
font-family: var(--font-head);
font-size: 12px;
line-height: 17px;
font-style: italic;
margin: 0 auto;
max-width: 361px;
text-align: center;
font-weight: 400;
em {
font-style: normal;
}
&+p {
text-indent: 0;
}
font-size: 1.1em;
line-height: calc(var(--font-lineHeight)*1);
break-inside: avoid;
break-after: avoid;
margin-top: calc(var(--font-lineHeight)*1);
padding-top: calc(var(--font-lineHeight)*0.5);
padding-bottom: calc(var(--font-lineHeight)* 0.5);
}
h4 {
font-family: var(--font-head);
font-size: 13px;
line-height: 13pt;
margin-top: 26pt;
margin: 0;
font-family: var(--font-body);
font-style: italic;
text-align: left;
display: inline-bloc;
font-weight: normal;
line-height: calc(var(--font-lineHeight)*1);
break-inside: avoid;
break-after: avoid;
margin-top: calc(var(--font-lineHeight)*1);
}
h3 + h4 {
margin-top: 0;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment