layout + font size

This commit is contained in:
Julie Blanc 2026-04-09 21:52:21 +02:00
parent 9ed0fb0d1d
commit dcdd26de82
11 changed files with 270 additions and 276 deletions

View file

@ -2,13 +2,13 @@
:root {
--font: 'Moulin', sans-serif;
--font-serif: 'Moulin', sans-serif;
--font-title: 'Louize', sans-serif;
--font-quote: 'Louize', sans-serif;
--font-sans: 'Basis Grotesque Pro', sans-serif;
--font-size: 11px;
--fs-small: 8.5px;
--baseline: 16px;
--font-size: 12px;
--fs-small: 9.8px;
--baseline: 18px;
--indent: 26px;
--fs-num: 10px;
--fs-num: 12px;
}
* {
@ -34,17 +34,18 @@ body {
@media print {
@page {
size: 176mm 240mm;
margin-top: 10mm;
margin-bottom: 12mm;
margin-top: 6mm;
margin-bottom: 18mm;
}
@page :left {
margin-left: 14mm;
margin-right: 20mm;
margin-left: 6mm;
margin-right: 12mm;
@bottom-left {
content: counter(page);
font-family: var(--font-sans);
font-size: var(--fs-num);
text-align: left;
width: 10mm;
}
@bottom-center {
content: "Höchstpersönlichkeit";
@ -54,19 +55,14 @@ body {
}
}
@page :right {
margin-left: 20mm;
margin-right: 14mm;
@bottom-right {
content: counter(page);
font-family: var(--font-sans);
font-size: var(--fs-num);
text-align: right;
}
margin-left: 12mm;
margin-right: 6mm;
@bottom-left {
content: string(chapterCount);
font-family: var(--font-sans);
font-size: var(--fs-num);
text-align: left;
width: 10mm;
}
@bottom-center {
content: string(chapter);
@ -74,6 +70,12 @@ body {
font-size: var(--fs-num);
text-align: left;
}
@bottom-right {
content: counter(page);
font-family: var(--font-sans);
font-size: var(--fs-num);
text-align: right;
}
}
@page :first {
@top-left-corner {
@ -176,6 +178,8 @@ body {
}
}
@page chapter {
margin-left: 6mm;
margin-right: 6mm;
@top-left-corner {
content: none;
}
@ -239,6 +243,8 @@ body {
#section__content {
-moz-columns: 2;
columns: 2;
-moz-column-gap: 4mm;
column-gap: 4mm;
-moz-column-fill: auto;
column-fill: auto;
}
@ -281,6 +287,8 @@ p {
text-align: justify;
orphans: 2;
widows: 2;
margin-left: 8mm;
padding-left: 2mm;
}
p, li {
@ -291,24 +299,17 @@ p, li {
word-spacing: -0.004em;
}
p + p,
ol[type="1"] + p {
text-indent: calc(var(--indent) * 0.5);
}
blockquote {
font-family: var(--font-serif);
padding-left: calc(var(--indent) * 1);
padding-right: calc(var(--indent) * 1);
margin-top: calc(var(--baseline) * 0.5);
margin-bottom: calc(var(--baseline) * 0.5);
font-size: 12px;
color: #343434;
font-family: var(--font-quote);
}
blockquote p {
border-left: 1px solid #cfcfcf;
}
.these + ol + p,
blockquote + ol + p {
text-indent: 0px;
blockquote u {
text-decoration: none;
text-transform: uppercase;
font-size: var(--fs-small);
}
.these {
@ -324,35 +325,23 @@ ol[type="1"] {
position: relative;
-moz-column-break-after: avoid;
break-after: avoid;
position: absolute;
left: 0px;
display: flex;
gap: 0.25ch;
}
ol[type="1"]::after {
content: attr(start);
display: block;
position: absolute;
font-size: var(--fs-small);
color: #999;
}
ol[type="1"] li::before {
font-size: var(--fs-small);
content: "¶";
color: #d7d7d7;
position: relative;
top: -1px;
opacity: 0.5;
}
#section__content h1 {
-moz-column-span: all;
column-span: all;
height: 217mm;
height: 215mm;
}
#section__content h2::before, #section__content h3::before {
#section__content h2::before, #section__content h3::before, #section__content h4::before, #section__content h5::before, #section__content h6::before {
content: attr(data-counter);
}
#section__content h4::before, #section__content h5::before, #section__content h6::before {
content: attr(data-counter) ". ";
}
#section__content h2, #section__content h3, #section__content h4 {
-moz-column-break-inside: avoid;
break-inside: avoid;
@ -391,8 +380,8 @@ ol[type="1"] li::before {
}
#section__content h1 {
font-weight: 200;
font-size: 98px;
line-height: 1;
font-size: 115px;
line-height: 0.9;
hyphens: auto;
-moz-column-break-inside: avoid;
break-inside: avoid;
@ -405,99 +394,104 @@ ol[type="1"] li::before {
display: block;
}
#section__content h2 {
font-family: var(--font-title);
font-size: 1.1rem;
font-weight: 500;
font-size: 22px;
font-weight: 200;
text-transform: uppercase;
line-height: calc(var(--baseline) * 1.2);
position: relative;
margin-top: calc(var(--baseline) * 1 + 6px);
padding-bottom: calc(var(--baseline) * 1);
padding-right: 2ch;
padding-left: calc(var(--indent) * 2);
text-align: center;
line-height: calc(var(--baseline) * 1.4);
margin-top: 4mm;
padding-bottom: 4mm;
hyphens: auto;
}
#section__content h2::before {
position: absolute;
left: 0;
display: block;
}
#section__content h3 {
font-family: var(--font-title);
font-weight: 500;
font-size: 1rem;
line-height: calc(var(--baseline) * 1);
padding-right: calc(var(--indent) * 2);
font-size: 1em;
line-height: calc(var(--baseline) * 0.75);
position: relative;
margin-top: calc(var(--baseline) * 1 + 4px);
padding-bottom: calc(var(--baseline) * 0.75);
padding-left: calc(var(--indent) * 2);
margin-top: 4mm;
padding-bottom: 4mm;
padding-left: 10mm;
text-align: center;
}
#section__content h3::before {
display: block;
}
#section__content h4 {
font-weight: 500;
font-size: 1em;
line-height: calc(var(--baseline) * 0.75);
position: relative;
margin-top: calc(var(--baseline) * 1);
padding-bottom: calc(var(--baseline) * 0.5);
padding-left: 20mm;
}
#section__content h4::before {
display: block;
position: absolute;
left: 10mm;
}
#section__content h5 {
font-weight: normal;
font-size: 1em;
line-height: calc(var(--baseline) * 1);
position: relative;
margin-top: calc(var(--baseline) * 1);
padding-bottom: calc(var(--baseline) * 0.25);
padding-left: 10mm;
text-indent: 10mm;
}
#section__content h5::before {
display: block;
position: absolute;
left: 0;
}
#section__content h4 {
font-family: var(--font-title);
font-weight: 500;
font-size: 0.9rem;
line-height: calc(var(--baseline) * 1);
padding-right: calc(var(--indent) * 2);
position: relative;
margin-top: calc(var(--baseline) * 1 + 4px);
padding-bottom: calc(var(--baseline) * 0.75);
-webkit-text-decoration: underline 1px #cfcfcf;
text-decoration: underline 1px #cfcfcf;
text-underline-offset: 3px;
padding-left: calc(var(--indent) * 2);
}
#section__content h5 {
font-family: var(--font-title);
font-weight: 500;
font-size: 0.8rem;
line-height: calc(var(--baseline) * 1);
padding-left: calc(var(--indent) * 2);
position: relative;
margin-top: calc(var(--baseline) * 1 + 4px);
padding-bottom: calc(var(--baseline) * 0.25);
}
#section__content h6 {
font-family: var(--font-title);
font-weight: 500;
font-size: 0.8rem;
margin-top: calc(var(--baseline) * 0.5);
padding-bottom: calc(var(--baseline) * 0.25);
color: #666;
font-weight: normal;
font-size: 1em;
line-height: calc(var(--baseline) * 1);
position: relative;
margin-top: calc(var(--baseline) * 1);
padding-left: 10mm;
text-indent: 10mm;
}
#section__content h6::before {
display: block;
position: absolute;
left: 0;
}
[data-id=section__content][data-split-from] > :first-child {
margin-top: 0;
}
section h1:first-of-type {
margin-top: 3px !important;
}
#section__list-of-abbr {
display: none;
color: red;
}
.container-following-note {
font-family: var(--font-sans);
font-size: var(--fs-small);
line-height: calc(var(--baseline) * 0.8);
line-height: calc(var(--baseline) * 0.75);
position: relative;
margin-top: calc(var(--baseline) * 0.25);
hyphens: auto;
hyphenate-limit-chars: 7 3 4;
hyphenate-limit-lines: 2;
hyphenate-limit-zone: 8%;
word-spacing: -0.004em;
text-align: justify;
}
.body_note {
padding-left: calc(var(--indent) * 1);
position: relative;
}
.following-note_marker {
position: absolute;
left: 0;
.following-note_marker::after {
content: ". ";
}
.following-note_call {
font-family: var(--font-sans);
font-size: var(--fs-small);
line-height: 1;
position: relative;