From 9ed0fb0d1d3c8e8b209171ec3a07c057f213f478 Mon Sep 17 00:00:00 2001 From: Julie Blanc Date: Thu, 9 Apr 2026 19:37:52 +0200 Subject: [PATCH] title chapter --- .gitignore | 3 +- css/modules/_layout.scss | 126 +++++++++++++++++++-------- css/modules/_text.scss | 5 +- css/modules/_titles.scss | 97 ++++++++++++++------- css/modules/_var.scss | 5 +- css/style.css | 183 ++++++++++++++++++++++++++++----------- css/style.css.map | 2 +- index.html | 4 +- js/counters.js | 3 +- 9 files changed, 302 insertions(+), 126 deletions(-) diff --git a/.gitignore b/.gitignore index 587a7e2..3793dce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store .zip weaver_manager.sh -fonts/* \ No newline at end of file +fonts/* +images/* \ No newline at end of file diff --git a/css/modules/_layout.scss b/css/modules/_layout.scss index 4304e1c..75589e9 100644 --- a/css/modules/_layout.scss +++ b/css/modules/_layout.scss @@ -1,52 +1,62 @@ +$width: 176mm; +$height: 240mm; +$top: 10mm; +$bottom: 12mm; +$inside: 20mm; +$outside: 14mm; +$content-h: calc($height - $top - $bottom - 1mm); + + @media print { @page { - size: 176mm 240mm; - // size: 150mm 220mm; - margin-top: 36px; - margin-bottom: 20mm; + size: $width $height; + margin-top: $top; + margin-bottom: $bottom; - bleed: 6mm; - marks: crop; + // bleed: 6mm; + // marks: crop; } @page:left { - margin-left: 18mm; - margin-right: 26mm; + margin-left: $outside; + margin-right: $inside; @bottom-left { content: counter(page); - font-family: var(--font-title); - font-weight: 500; + font-family: var(--font-sans); font-size: var(--fs-num); + text-align: left; } - // @top-right { - // content: "Höchstpersönlichkeit"; - // font-variant-caps: small-caps; - // letter-spacing: 0.01em; - // } + @bottom-center { + content: "Höchstpersönlichkeit"; + font-family: var(--font-sans); + font-size: var(--fs-num); + text-align: left; + } + } @page:right { - margin-left: 26mm; - margin-right: 18mm; + margin-left: $inside; + margin-right: $outside; @bottom-right { content: counter(page); - font-family: var(--font-title); - font-weight: 500; + font-family: var(--font-sans); font-size: var(--fs-num); + text-align: right; } - @right-top { - content: "Höchstpersönlichkeit"; - font-family: var(--font-title); - font-weight: normal; - // background-color: red; - transform-origin: top left; - height: calc(var(--baseline)*2); - word-spacing: nowrap; - width: 52ch; - transform: rotate(90deg); - text-align: left; - position: relative; - left: 14mm; - padding-left: 5px; + + @bottom-left { + content: string(chapterCount); + font-family: var(--font-sans); + font-size: var(--fs-num); + text-align: left; } + + @bottom-center { + content: string(chapter); + font-family: var(--font-sans); + font-size: var(--fs-num); + text-align: left; + } + } @page:first { @@ -85,10 +95,58 @@ @bottom-right { content: none; } @bottom-right-corner { content: none; } } + + @page chapter { + @top-left-corner { content: none; } + @top-left { content: none; } + @top-center { content: none; } + @top-right { content: none; } + @top-right-corner { content: none; } + @left-top { content: none; } + @left-middle { content: none; } + @left-bottom { content: none; } + @right-top { content: none; } + @right-middle { content: none; } + @right-bottom { content: none; } + @bottom-left-corner { content: none; } + @bottom-left { content: none; } + @bottom-center { content: none; } + @bottom-right { content: none; } + @bottom-right-corner { content: none; } + } } #section__content{ break-before: right; -} \ No newline at end of file +} + + +.page-break{ + break-before: page; +} + + +#section__content{ + columns: 2; + column-fill: auto; +} + + +// Title chapter + +#section__content h1{ + break-before: left; + break-after: page; + page: chapter; +} +#section__content h1 .h1-count{ + string-set: chapterCount content(text); +} + +#section__content h1 .h1-text{ + string-set: chapter content(text); +} + + diff --git a/css/modules/_text.scss b/css/modules/_text.scss index e1501ac..68c2877 100644 --- a/css/modules/_text.scss +++ b/css/modules/_text.scss @@ -1,3 +1,6 @@ + + + sup{ line-height: 0; } @@ -48,8 +51,6 @@ blockquote{ margin-bottom: calc(var(--baseline)*0.5); font-size: 12px; color: #343434; - - } .these + ol + p, diff --git a/css/modules/_titles.scss b/css/modules/_titles.scss index 3d8fa16..817339e 100644 --- a/css/modules/_titles.scss +++ b/css/modules/_titles.scss @@ -1,8 +1,20 @@ #section__content{ - margin-left: 28mm; + // margin-left: 28mm; - h1, h2, h3 { + + + h1{ + + column-span: all; + height: $content-h; + } + + // h1 + ol{ + // break-before: page; + // } + + h2, h3 { &::before{ content: attr(data-counter); } @@ -15,7 +27,7 @@ } - h1, h2, h3 , h4{ + h2, h3 , h4{ break-inside: avoid; break-after: avoid; text-wrap: balance; @@ -57,6 +69,29 @@ + h1{ + + font-weight: 200; + font-size: 98px; + line-height: 1; + hyphens: auto; + + break-inside: avoid; + + + display: flex; + flex-direction: column; + justify-content: space-between; + text-align: center; + + + span{ + display: block; + } + + } + + @@ -152,36 +187,36 @@ margin-top: 0; } - h1{ - font-family: var(--font-title); - font-size: 1.6rem; - font-weight: 500; - text-transform: uppercase; - line-height: calc(var(--baseline)*1.6); - // text-align: center; - position: relative; - margin-top: calc(var(--baseline)*2 - 3px); - padding-bottom: calc(var(--baseline)*1); - padding-left: calc(var(--indent)*2); - padding-right: 1ch; +// h1{ +// font-family: var(--font-title); +// font-size: 1.6rem; +// font-weight: 500; +// text-transform: uppercase; +// line-height: calc(var(--baseline)*1.6); +// // text-align: center; +// position: relative; +// margin-top: calc(var(--baseline)*2 - 3px); +// padding-bottom: calc(var(--baseline)*1); +// padding-left: calc(var(--indent)*2); +// padding-right: 1ch; - &::before{ - // font-size: var(--fs-num); - // width: 2ch; - // height: 2ch; - // border: 1px solid currentColor; - // border-radius: 50%; - // display: flex; - // align-items: center; - // justify-content: center; - position: absolute; - left: 0; - width: calc(var(--indent)*2 - 0.5ch); - // border-bottom: 2px solid #cfcfcf; - // top: 3px; - } - } +// &::before{ +// // font-size: var(--fs-num); +// // width: 2ch; +// // height: 2ch; +// // border: 1px solid currentColor; +// // border-radius: 50%; +// // display: flex; +// // align-items: center; +// // justify-content: center; +// position: absolute; +// left: 0; +// width: calc(var(--indent)*2 - 0.5ch); +// // border-bottom: 2px solid #cfcfcf; +// // top: 3px; +// } +// } section h1:first-of-type{ margin-top: 3px!important; diff --git a/css/modules/_var.scss b/css/modules/_var.scss index 8051f42..7f6bebe 100644 --- a/css/modules/_var.scss +++ b/css/modules/_var.scss @@ -5,10 +5,13 @@ --font-sans: 'Basis Grotesque Pro', sans-serif; --font-size: 11px; --fs-small: 8.5px; - --fs-num: 14px; + --baseline: 16px; --indent: 26px; + + + --fs-num: 10px; } diff --git a/css/style.css b/css/style.css index fc814ae..881fbc1 100644 --- a/css/style.css +++ b/css/style.css @@ -1,14 +1,14 @@ @charset "UTF-8"; :root { - --font: 'Akkurat Std', sans-serif; - --font-serif: 'Edgar', sans-serif; - --font-title: 'Allium Rounded', sans-serif; - --font-sans: 'Allium Rounded', sans-serif; + --font: 'Moulin', sans-serif; + --font-serif: 'Moulin', sans-serif; + --font-title: 'Louize', sans-serif; + --font-sans: 'Basis Grotesque Pro', sans-serif; --font-size: 11px; --fs-small: 8.5px; - --fs-num: 14px; --baseline: 16px; --indent: 26px; + --fs-num: 10px; } * { @@ -34,43 +34,45 @@ body { @media print { @page { size: 176mm 240mm; - margin-top: 36px; - margin-bottom: 20mm; - bleed: 6mm; - marks: crop; + margin-top: 10mm; + margin-bottom: 12mm; } @page :left { - margin-left: 18mm; - margin-right: 26mm; + margin-left: 14mm; + margin-right: 20mm; @bottom-left { content: counter(page); - font-family: var(--font-title); - font-weight: 500; + font-family: var(--font-sans); font-size: var(--fs-num); + text-align: left; + } + @bottom-center { + content: "Höchstpersönlichkeit"; + font-family: var(--font-sans); + font-size: var(--fs-num); + text-align: left; } } @page :right { - margin-left: 26mm; - margin-right: 18mm; + margin-left: 20mm; + margin-right: 14mm; @bottom-right { content: counter(page); - font-family: var(--font-title); - font-weight: 500; + font-family: var(--font-sans); font-size: var(--fs-num); + text-align: right; } - @right-top { - content: "Höchstpersönlichkeit"; - font-family: var(--font-title); - font-weight: normal; - transform-origin: top left; - height: calc(var(--baseline) * 2); - word-spacing: nowrap; - width: 52ch; - transform: rotate(90deg); + @bottom-left { + content: string(chapterCount); + font-family: var(--font-sans); + font-size: var(--fs-num); + text-align: left; + } + @bottom-center { + content: string(chapter); + font-family: var(--font-sans); + font-size: var(--fs-num); text-align: left; - position: relative; - left: 14mm; - padding-left: 5px; } } @page :first { @@ -173,12 +175,90 @@ body { content: none; } } + @page chapter { + @top-left-corner { + content: none; + } + @top-left { + content: none; + } + @top-center { + content: none; + } + @top-right { + content: none; + } + @top-right-corner { + content: none; + } + @left-top { + content: none; + } + @left-middle { + content: none; + } + @left-bottom { + content: none; + } + @right-top { + content: none; + } + @right-middle { + content: none; + } + @right-bottom { + content: none; + } + @bottom-left-corner { + content: none; + } + @bottom-left { + content: none; + } + @bottom-center { + content: none; + } + @bottom-right { + content: none; + } + @bottom-right-corner { + content: none; + } + } } #section__content { -moz-column-break-before: right; break-before: right; } +.page-break { + -moz-column-break-before: page; + break-before: page; +} + +#section__content { + -moz-columns: 2; + columns: 2; + -moz-column-fill: auto; + column-fill: auto; +} + +#section__content h1 { + -moz-column-break-before: left; + break-before: left; + -moz-column-break-after: page; + break-after: page; + page: chapter; +} + +#section__content h1 .h1-count { + string-set: chapterCount content(text); +} + +#section__content h1 .h1-text { + string-set: chapter content(text); +} + sup { line-height: 0; } @@ -262,16 +342,18 @@ ol[type="1"] li::before { top: -1px; } -#section__content { - margin-left: 28mm; +#section__content h1 { + -moz-column-span: all; + column-span: all; + height: 217mm; } -#section__content h1::before, #section__content h2::before, #section__content h3::before { +#section__content h2::before, #section__content h3::before { content: attr(data-counter); } #section__content h4::before, #section__content h5::before, #section__content h6::before { content: attr(data-counter) ". "; } -#section__content h1, #section__content h2, #section__content h3, #section__content h4 { +#section__content h2, #section__content h3, #section__content h4 { -moz-column-break-inside: avoid; break-inside: avoid; -moz-column-break-after: avoid; @@ -280,7 +362,7 @@ ol[type="1"] li::before { /* hack for avoiding break-after */ margin-bottom: calc(var(--baseline) * -3); } -#section__content h1::after, #section__content h2::after, #section__content h3::after, #section__content h4::after { +#section__content h2::after, #section__content h3::after, #section__content h4::after { content: ""; display: block; height: calc(var(--baseline) * 3); @@ -307,6 +389,21 @@ ol[type="1"] li::before { #section__content h6 + ol + p { text-indent: 0; } +#section__content h1 { + font-weight: 200; + font-size: 98px; + line-height: 1; + hyphens: auto; + -moz-column-break-inside: avoid; + break-inside: avoid; + display: flex; + flex-direction: column; + justify-content: space-between; + text-align: center; +} +#section__content h1 span { + display: block; +} #section__content h2 { font-family: var(--font-title); font-size: 1.1rem; @@ -375,24 +472,6 @@ ol[type="1"] li::before { margin-top: 0; } -h1 { - font-family: var(--font-title); - font-size: 1.6rem; - font-weight: 500; - text-transform: uppercase; - line-height: calc(var(--baseline) * 1.6); - position: relative; - margin-top: calc(var(--baseline) * 2 - 3px); - padding-bottom: calc(var(--baseline) * 1); - padding-left: calc(var(--indent) * 2); - padding-right: 1ch; -} -h1::before { - position: absolute; - left: 0; - width: calc(var(--indent) * 2 - 0.5ch); -} - section h1:first-of-type { margin-top: 3px !important; } diff --git a/css/style.css.map b/css/style.css.map index cb36fc5..0e8410c 100644 --- a/css/style.css.map +++ b/css/style.css.map @@ -1 +1 @@ -{"version":3,"sources":["style.css","modules/_var.scss","modules/_init.scss","modules/_layout.scss","modules/_text.scss","modules/_titles.scss","modules/_list-of-abbr.scss","modules/_followingNotes.scss"],"names":[],"mappings":"AAAA,gBAAgB;ACAhB;EACI,iCAAA;EACA,iCAAA;EACA,0CAAA;EACA,yCAAA;EACA,iBAAA;EACA,iBAAA;EACA,cAAA;EACA,gBAAA;EAEA,cAAA;ADCJ;;AEXA;EACI,SAAA;EACA,UAAA;EACA,sBAAA;AFcJ;;AEZA;EACI,mBAAA;AFeJ;;AEZA;EACI,mCAAA,EAAA,wBAAA;EACA,kCAAA,EAAA,kBAAA;EAEA,kCAAA,EAAA,6CAAA;EACA,+BAAA,EAAA,mDAAA;EAEA,wBAAA;EACA,2BAAA;EACA,4BAAA;AFaJ;;AG/BA;EACI;IACI,iBAAA;IAEA,gBAAA;IACA,mBAAA;IAEA,UAAA;IACA,WAAA;EHgCN;EG9BE;IACI,iBAAA;IACA,kBAAA;IACA;MACI,sBAAA;MACA,8BAAA;MACA,gBAAA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;EACA,wCAAA;EACA,kBAAA;EACA,2CAAA;EACA,yCAAA;EACA,kBAAA;EACA,qCAAA;ALiPR;AKhPQ;EACI,kBAAA;EACA,OAAA;ALkPZ;AKzOI;EACI,8BAAA;EACA,gBAAA;EACA,eAAA;EACA,sCAAA;EAGA,sCAAA;EACA,kBAAA;EACA,2CAAA;EACA,4CAAA;EACQ,qCAAA;ALyOhB;AKxOQ;EAEI,kBAAA;EACA,OAAA;ALyOZ;AKrOI;EACI,8BAAA;EACA,gBAAA;EACA,iBAAA;EACA,sCAAA;EACA,sCAAA;EACA,kBAAA;EACA,2CAAA;EACA,4CAAA;EACA,8CAAA;UAAA,sCAAA;EACA,0BAAA;EAEI,qCAAA;ALsOZ;AK7NK;EACG,8BAAA;EACA,gBAAA;EACA,iBAAA;EACA,sCAAA;EACA,qCAAA;EAEA,kBAAA;EACA,2CAAA;EACA,4CAAA;AL8NR;AK3NI;EACO,8BAAA;EACH,gBAAA;EACK,iBAAA;EACJ,uCAAA;EACA,4CAAA;EACA,WAAA;AL6NT;;AKrNA;EACQ,aAAA;ALwNR;;AKrNG;EACK,8BAAA;EACA,iBAAA;EACA,gBAAA;EACA,yBAAA;EACA,wCAAA;EAEA,kBAAA;EACA,2CAAA;EACA,yCAAA;EACA,qCAAA;EACA,kBAAA;ALuNR;AKpNQ;EASK,kBAAA;EACA,OAAA;EACA,sCAAA;AL8Mb;;AKxMI;EACI,0BAAA;AL2MR;;AMrYA;EACI,aAAA;EACA,UAAA;ANwYJ;;AO1YA;EACI,0BAAA;EACA,wCAAA;EAEA,kBAAA;AP4YJ;;AOvYA;EACI,qCAAA;EACA,kBAAA;AP0YJ;;AOvYA;EACI,kBAAA;EAEA,OAAA;APyYJ;;AOtYA;EACI,0BAAA;EACA,cAAA;EACA,kBAAA;EACA,SAAA;APyYJ","file":"style.css"} \ No newline at end of file +{"version":3,"sources":["style.css","modules/_var.scss","modules/_init.scss","modules/_layout.scss","modules/_text.scss","modules/_titles.scss","modules/_list-of-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tTI;;;;;;EAMI,cAAA;ALwTR;AKlTI;EAEI,gBAAA;EACA,eAAA;EACA,cAAA;EACA,aAAA;EAEA,+BAAA;OAAA,mBAAA;EAGA,aAAA;EACA,sBAAA;EACA,8BAAA;EACA,kBAAA;ALgTR;AK7SQ;EACI,cAAA;AL+SZ;AKtSI;EACI,8BAAA;EACA,iBAAA;EACA,gBAAA;EACA,yBAAA;EACA,wCAAA;EACA,kBAAA;EACA,2CAAA;EACA,yCAAA;EACA,kBAAA;EACA,qCAAA;ALwSR;AKvSQ;EACI,kBAAA;EACA,OAAA;ALySZ;AKhSI;EACI,8BAAA;EACA,gBAAA;EACA,eAAA;EACA,sCAAA;EAGA,sCAAA;EACA,kBAAA;EACA,2CAAA;EACA,4CAAA;EACQ,qCAAA;ALgShB;AK/RQ;EAEI,kBAAA;EACA,OAAA;ALgSZ;AK5RI;EACI,8BAAA;EACA,gBAAA;EACA,iBAAA;EACA,sCAAA;EACA,sCAAA;EACA,kBAAA;EACA,2CAAA;EACA,4CAAA;EACA,8CAAA;UAAA,sCAAA;EACA,0BAAA;EAEI,qCAAA;AL6RZ;AKpRK;EACG,8BAAA;EACA,gBAAA;EACA,iBAAA;EACA,sCAAA;EACA,qCAAA;EAEA,kBAAA;EACA,2CAAA;EACA,4CAAA;ALqRR;AKlRI;EACO,8BAAA;EACH,gBAAA;EACK,iBAAA;EACJ,uCAAA;EACA,4CAAA;EACA,WAAA;ALoRT;;AK5QA;EACQ,aAAA;AL+QR;;AK7OI;EACI,0BAAA;ALgPR;;AM7cA;EACI,aAAA;EACA,UAAA;ANgdJ;;AOldA;EACI,0BAAA;EACA,wCAAA;EAEA,kBAAA;APodJ;;AO/cA;EACI,qCAAA;EACA,kBAAA;APkdJ;;AO/cA;EACI,kBAAA;EAEA,OAAA;APidJ;;AO9cA;EACI,0BAAA;EACA,cAAA;EACA,kBAAA;EACA,SAAA;APidJ","file":"style.css"} \ No newline at end of file diff --git a/index.html b/index.html index ddfe0fd..d0d3975 100644 --- a/index.html +++ b/index.html @@ -1196,9 +1196,7 @@ Abteilung)
-

Titre niveau 1

-

Titre niveau 1

-

Titre niveau 1

+

Titre niveau 2

Titre niveau 2

Titre niveau 2

diff --git a/js/counters.js b/js/counters.js index 967125e..153e1e4 100644 --- a/js/counters.js +++ b/js/counters.js @@ -54,7 +54,8 @@ export default class counters extends Handler { case 'h1': h1Count++; h2Count = 0; // reset h2 - el.setAttribute('data-counter', this.toUpperAlpha(h1Count)); + const originalText = el.innerHTML; + el.innerHTML = `${this.toUpperAlpha(h1Count)}${originalText}`; break; case 'h2':