baseline & toc

This commit is contained in:
Julie Blanc 2026-04-14 18:18:10 +02:00
parent 831d276d41
commit 79b2753fdb
16 changed files with 385 additions and 16 deletions

View file

@ -1,7 +1,7 @@
$width: 176mm;
$height: 240mm;
$top: 6mm;
$bottom: 18mm;
$bottom: 20mm;
$inside: 12mm;
$outside: 6mm;
$content-h: calc($height - $top - $bottom - 1mm);

View file

@ -32,6 +32,8 @@ p, li{
hyphenate-limit-lines: 2;
hyphenate-limit-zone: 8%;
word-spacing: -0.004em;
widows: 2;
orphans: 2;
}

47
css/modules/_toc.scss Normal file
View file

@ -0,0 +1,47 @@
#toc_container{
break-before: page;
break-after: page;
// color: red;
ul{
list-style-type: none;
color: black;
}
.toc-element-level-1{
margin-top: calc(var(--baseline)*1);
margin-bottom: calc(var(--baseline)*0.5);
font-size: 1.2rem;
line-height: 1.2;
}
.toc-element-level-2{
font-weight: bold;
margin-top: calc(var(--baseline)*0.5);
margin-bottom: calc(var(--baseline)*0.5);
}
.toc-element-level-3{
text-indent: 5mm;
}
.toc-element-level-4{
text-indent: 10mm;
}
.toc-element-level-5{
text-indent: 15mm;
}
.toc-element-level-6{
text-indent: 20mm;
}
}

View file

@ -5,12 +5,8 @@
--font-sans: 'Basis Grotesque Pro', sans-serif;
--font-size: 12px;
--fs-small: 9.8px;
--baseline: 18px;
--indent: 26px;
--fs-num: 12px;
}