Compare commits
9 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8255f08762 | ||
|
|
a4c3390b99 | ||
|
|
4a95558237 | ||
|
|
5b80e66e60 | ||
|
|
35c6271137 | ||
|
|
fb365c2f05 | ||
|
|
7239fa838b | ||
|
|
8161aae996 | ||
|
|
e055fc96ee |
10 changed files with 482 additions and 283 deletions
|
|
@ -1,22 +1,22 @@
|
|||
@page {
|
||||
@footnote {
|
||||
float: bottom;
|
||||
max-height: 90%;
|
||||
|
||||
footnote-policy: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.pagedjs_footnote_content{
|
||||
padding-top: calc(var(--baseline)*1);
|
||||
padding-top: calc(var(--baseline)*1);
|
||||
}
|
||||
|
||||
.inline-note {
|
||||
float: footnote;
|
||||
font-size: 9.5px;
|
||||
line-height: 12.8px;
|
||||
footnote-policy: auto;
|
||||
font-size: var(--fs-small);
|
||||
line-height: calc(var(--baseline)*0.8);
|
||||
padding-left: var(--indent);
|
||||
position: relative;
|
||||
// font-weight: 100;
|
||||
font-weight: 600;
|
||||
|
||||
&::marker{
|
||||
display: none;
|
||||
|
|
@ -30,11 +30,22 @@
|
|||
&::before{
|
||||
content: attr(data-counter-note) ".";
|
||||
position: absolute;
|
||||
// left: calc(var(--indent)*-1);
|
||||
left: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
[data-footnote-call]{
|
||||
font-size: 9px;
|
||||
.inline-note::after{
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-small);
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
top: -3px;
|
||||
font-variant-position: normal!important;
|
||||
|
||||
}
|
||||
|
||||
blockquote .inline-note{
|
||||
font-variant-position: normal!important;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,38 +1,51 @@
|
|||
@media print {
|
||||
@page {
|
||||
size: 134mm 205mm;
|
||||
size: 176mm 240mm;
|
||||
// size: 150mm 220mm;
|
||||
margin-top: 35px;
|
||||
margin-top: 36px;
|
||||
margin-bottom: 20mm;
|
||||
margin-left: 10mm;
|
||||
margin-right: 10mm;
|
||||
// bleed: 6mm;
|
||||
// marks: crop;
|
||||
|
||||
bleed: 6mm;
|
||||
marks: crop;
|
||||
}
|
||||
@page:left {
|
||||
margin-left: 12mm;
|
||||
margin-right: 32mm;
|
||||
margin-left: 18mm;
|
||||
margin-right: 26mm;
|
||||
@bottom-left {
|
||||
content: counter(page);
|
||||
font-family: var(--font-title);
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
font-size: var(--fs-num);
|
||||
}
|
||||
// @top-right {
|
||||
// content: "Höchstpersönlichkeit";
|
||||
// font-variant-caps: small-caps;
|
||||
// letter-spacing: 0.01em;
|
||||
// }
|
||||
}
|
||||
@page:right {
|
||||
margin-left: 32mm;
|
||||
margin-right: 12mm;
|
||||
margin-left: 26mm;
|
||||
margin-right: 18mm;
|
||||
@bottom-right {
|
||||
content: counter(page);
|
||||
font-family: var(--font-title);
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
font-size: var(--fs-num);
|
||||
}
|
||||
@bottom-left {
|
||||
@right-top {
|
||||
content: "Höchstpersönlichkeit";
|
||||
font-family: var(--font-title);
|
||||
font-size: 11px;
|
||||
// font-style: italic;
|
||||
// font-variant-caps: small-caps;
|
||||
// letter-spacing: 0.05em;
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,40 +26,8 @@ p, li{
|
|||
word-spacing: -0.004em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
ol[type="1"]{
|
||||
list-style-type: none;
|
||||
position: relative;
|
||||
break-after: avoid;
|
||||
|
||||
position: absolute;
|
||||
left: calc(var(--indent)*-2);
|
||||
&::before{
|
||||
content: attr(start);
|
||||
font-family: var(--font-sans-txt);
|
||||
// font-weight: 200;
|
||||
font-size: 9px;
|
||||
color: #999;
|
||||
display: block;
|
||||
padding: 0px 2px;
|
||||
border: 1px solid #cfcfcf;
|
||||
|
||||
min-width: 1.5ch;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.pagedjs_left_page{
|
||||
ol[type="1"] {
|
||||
left: inherit;
|
||||
right: calc(var(--indent)*-2);
|
||||
}
|
||||
}
|
||||
|
||||
p + p,
|
||||
ol[type="1"] + p{
|
||||
|
|
@ -69,36 +37,18 @@ ol[type="1"] + p{
|
|||
|
||||
|
||||
blockquote{
|
||||
padding-left: var(--indent);
|
||||
margin-top: calc(var(--baseline)*1);
|
||||
margin-bottom: calc(var(--baseline)*1);
|
||||
|
||||
font-family: var(--font-sans-txt);
|
||||
font-size: var(--fs-small-q);
|
||||
line-height: calc(var(--baseline)*0.9);
|
||||
// font-weight: var(--w-title);
|
||||
|
||||
|
||||
.inline-note::after{
|
||||
font-family: var(--font);
|
||||
line-height: 0;
|
||||
font-size: var(--font-size)!important;
|
||||
}
|
||||
font-family: var(--font-serif);
|
||||
padding-left: calc(var(--indent)*1);
|
||||
padding-right: calc(var(--indent)*1);
|
||||
// font-size: var(--fs-small);
|
||||
margin-top: calc(var(--baseline)*0.5);
|
||||
margin-bottom: calc(var(--baseline)*0.5);
|
||||
font-size: 12px;
|
||||
color: #343434;
|
||||
|
||||
// p{
|
||||
// font-style: italic;
|
||||
// em{
|
||||
// font-style: normal;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// u{
|
||||
// font-variant: small-caps;
|
||||
// text-decoration: none;
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
.these + ol + p,
|
||||
blockquote + ol + p{
|
||||
text-indent: 0px;
|
||||
|
|
@ -108,9 +58,49 @@ blockquote + ol + p{
|
|||
|
||||
.these{
|
||||
// color: red;
|
||||
|
||||
margin-bottom: var(--baseline);
|
||||
padding-left: var(--indent);
|
||||
// font-family: var(--font-title);
|
||||
margin-bottom: calc(var(--baseline)*1);
|
||||
border-left: 4px solid #efefef;
|
||||
box-decoration-break: clone;
|
||||
padding-left: calc(var(--indent)*0.5);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ol[type="1"]{
|
||||
list-style-type: none;
|
||||
position: relative;
|
||||
break-after: avoid;
|
||||
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
|
||||
display: flex;
|
||||
gap: 0.25ch;
|
||||
|
||||
&::after{
|
||||
content: attr(start);
|
||||
// font-family: var(--font-title);
|
||||
// font-weight: 500;
|
||||
font-size: var(--fs-small);
|
||||
color: #999;
|
||||
|
||||
// display: block;
|
||||
// height: var(--baseline);
|
||||
|
||||
// padding-right: 1ch;
|
||||
// border-right: 1px solid #efefef;
|
||||
}
|
||||
|
||||
li::before{
|
||||
font-size: var(--fs-small);
|
||||
content: "¶";
|
||||
color: #d7d7d7;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
|
||||
#section__content{
|
||||
margin-left: 28mm;
|
||||
|
||||
|
||||
h1, h2, h3 {
|
||||
text-wrap: balance;
|
||||
h1, h2, h3 {
|
||||
&::before{
|
||||
content: attr(data-counter);
|
||||
}
|
||||
}
|
||||
|
||||
h4, h5, h6{
|
||||
text-wrap: balance;
|
||||
h4, h5, h6{
|
||||
&::before{
|
||||
content: attr(data-counter) ". ";
|
||||
}
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
|
||||
h1, h2, h3 , h4{
|
||||
break-inside: avoid;
|
||||
break-after: avoid;
|
||||
text-wrap: balance;
|
||||
|
||||
/* hack for avoiding break-after */
|
||||
margin-bottom: calc(var(--baseline)*-3);
|
||||
|
|
@ -26,13 +26,13 @@
|
|||
content: '';
|
||||
display: block;
|
||||
height: calc(var(--baseline)*3);
|
||||
// background-color: rgba(255, 255, 0, 0.595);
|
||||
}
|
||||
}
|
||||
|
||||
h4, h5, h6 {
|
||||
h5, h6 {
|
||||
break-inside: avoid;
|
||||
break-after: avoid;
|
||||
text-wrap: balance;
|
||||
|
||||
/* hack for avoiding break-after */
|
||||
margin-bottom: calc(var(--baseline)*-2);
|
||||
|
|
@ -54,102 +54,135 @@
|
|||
text-indent: 0;
|
||||
}
|
||||
|
||||
h1{
|
||||
font-family: var(--font-title);
|
||||
text-transform: uppercase;
|
||||
font-weight: var(--w-title);
|
||||
|
||||
|
||||
font-size: 1.3rem;
|
||||
line-height: calc(var(--baseline)*1.4);
|
||||
text-align: center;
|
||||
position: relative;
|
||||
margin-top: calc(var(--baseline)*3 - 3px);
|
||||
padding-bottom: calc(var(--baseline)*1);
|
||||
padding-left: 1ch;
|
||||
padding-right: 1ch;
|
||||
&::before{
|
||||
display: block;
|
||||
font-size: 1rem;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
h1:first-of-type{
|
||||
margin-top: 3px!important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
h2{
|
||||
font-family: var(--font-title);
|
||||
text-transform: uppercase;
|
||||
font-weight: var(--w-title);
|
||||
|
||||
font-size: 1.1rem;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
line-height: calc(var(--baseline)*1.2);
|
||||
|
||||
text-align: right;
|
||||
padding-left: 4ch;
|
||||
position: relative;
|
||||
margin-top: calc(var(--baseline)*1 + 9px);
|
||||
margin-top: calc(var(--baseline)*1 + 6px);
|
||||
padding-bottom: calc(var(--baseline)*1);
|
||||
padding-right: 2ch;
|
||||
padding-left: calc(var(--indent)*2);
|
||||
&::before{
|
||||
position: absolute;
|
||||
left: 0;
|
||||
// display: block;
|
||||
// font-size: var(--fs-num);
|
||||
// padding-left: var(--indent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
h3{
|
||||
font-family: var(--font-sans);
|
||||
font-weight: var(--w-title);
|
||||
font-family: var(--font-title);
|
||||
font-weight: 500;
|
||||
font-size: 1rem;
|
||||
line-height: calc(var(--baseline)*1);
|
||||
|
||||
text-align: right;
|
||||
padding-left: 3ch;
|
||||
// padding-left: var(--indent);
|
||||
padding-right: calc(var(--indent)*2);
|
||||
position: relative;
|
||||
margin-top: calc(var(--baseline)*1 + 9px);
|
||||
padding-bottom: calc(var(--baseline)*1);
|
||||
margin-top: calc(var(--baseline)*1 + 4px);
|
||||
padding-bottom: calc(var(--baseline)*0.75);
|
||||
padding-left: calc(var(--indent)*2);
|
||||
&::before{
|
||||
// font-family: 'Helixotrope 4';
|
||||
// font-size: var(--font-size);
|
||||
// font-weight: bold;
|
||||
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
h4{
|
||||
font-family: var(--font-sans);
|
||||
font-weight: var(--w-title);
|
||||
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);
|
||||
text-decoration: underline 1px #cfcfcf;
|
||||
text-underline-offset: 3px;
|
||||
|
||||
padding-left: calc(var(--indent)*2);
|
||||
&::before{
|
||||
|
||||
// position: absolute;
|
||||
// left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
h5{
|
||||
font-family: var(--font-title);
|
||||
font-weight: 500;
|
||||
font-size: 0.8rem;
|
||||
line-height: calc(var(--baseline)*1);
|
||||
|
||||
text-align: right;
|
||||
padding-left: 3ch;
|
||||
padding-left: calc(var(--indent)*2);
|
||||
// padding-right: calc(var(--indent)*2);
|
||||
position: relative;
|
||||
margin-top: calc(var(--baseline)*0.5);
|
||||
padding: calc(var(--baseline)*0.5);
|
||||
|
||||
}
|
||||
|
||||
|
||||
h5{
|
||||
font-family: var(--font-sans);
|
||||
font-weight: var(--w-title);
|
||||
font-size: 0.7rem;
|
||||
line-height: calc(var(--baseline)*1);
|
||||
position: relative;
|
||||
margin-top: calc(var(--baseline)*0.75);
|
||||
margin-top: calc(var(--baseline)*1 + 4px);
|
||||
padding-bottom: calc(var(--baseline)*0.25);
|
||||
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
[data-id="section__content"][data-split-from] > :first-child {
|
||||
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;
|
||||
|
||||
|
||||
&::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;
|
||||
}
|
||||
|
|
@ -1,14 +1,13 @@
|
|||
:root{
|
||||
--font: 'Edgar', sans-serif;
|
||||
--font-title: "Moulin", sans-serif;
|
||||
--w-title: normal;
|
||||
// --font-sans: "Heliotrope 4", sans-serif;
|
||||
--font-sans: "Moulin", sans-serif;
|
||||
// --font-sans-txt: 'Akkurat Std';
|
||||
--font-sans-txt: 'Moulin', sans-serif;
|
||||
--font-size: 12px;
|
||||
--fs-small-q: 11px;
|
||||
--font: 'Akkurat Std', sans-serif;
|
||||
--font-serif: 'Edgar', sans-serif;
|
||||
--font-title: 'Allium Rounded', sans-serif;
|
||||
--font-sans: 'Allium Rounded', sans-serif;
|
||||
--font-size: 11px;
|
||||
--fs-small: 8.5px;
|
||||
--fs-num: 14px;
|
||||
--baseline: 16px;
|
||||
|
||||
--indent: 26px;
|
||||
}
|
||||
|
||||
|
|
|
|||
258
css/style.css
258
css/style.css
|
|
@ -1,12 +1,12 @@
|
|||
@charset "UTF-8";
|
||||
:root {
|
||||
--font: "Edgar", sans-serif;
|
||||
--font-title: "Moulin", sans-serif;
|
||||
--w-title: normal;
|
||||
--font-sans: "Moulin", sans-serif;
|
||||
--font-sans-txt: "Moulin", sans-serif;
|
||||
--font-size: 12px;
|
||||
--fs-small-q: 11px;
|
||||
--font: "Akkurat Std", sans-serif;
|
||||
--font-serif: "Edgar", sans-serif;
|
||||
--font-title: "Allium Rounded", sans-serif;
|
||||
--font-sans: "Allium Rounded", sans-serif;
|
||||
--font-size: 11px;
|
||||
--fs-small: 8.5px;
|
||||
--fs-num: 14px;
|
||||
--baseline: 16px;
|
||||
--indent: 26px;
|
||||
}
|
||||
|
|
@ -33,33 +33,44 @@ body {
|
|||
|
||||
@media print {
|
||||
@page {
|
||||
size: 134mm 205mm;
|
||||
margin-top: 35px;
|
||||
size: 176mm 240mm;
|
||||
margin-top: 36px;
|
||||
margin-bottom: 20mm;
|
||||
margin-left: 10mm;
|
||||
margin-right: 10mm;
|
||||
bleed: 6mm;
|
||||
marks: crop;
|
||||
}
|
||||
@page :left {
|
||||
margin-left: 12mm;
|
||||
margin-right: 32mm;
|
||||
margin-left: 18mm;
|
||||
margin-right: 26mm;
|
||||
@bottom-left {
|
||||
content: counter(page);
|
||||
font-family: var(--font-title);
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
font-size: var(--fs-num);
|
||||
}
|
||||
}
|
||||
@page :right {
|
||||
margin-left: 32mm;
|
||||
margin-right: 12mm;
|
||||
margin-left: 26mm;
|
||||
margin-right: 18mm;
|
||||
@bottom-right {
|
||||
content: counter(page);
|
||||
font-family: var(--font-title);
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
font-size: var(--fs-num);
|
||||
}
|
||||
@bottom-left {
|
||||
@right-top {
|
||||
content: "Höchstpersönlichkeit";
|
||||
font-family: var(--font-title);
|
||||
font-size: 11px;
|
||||
font-weight: normal;
|
||||
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;
|
||||
}
|
||||
}
|
||||
@page :first {
|
||||
|
|
@ -197,49 +208,19 @@ p, li {
|
|||
word-spacing: -0.004em;
|
||||
}
|
||||
|
||||
ol[type="1"] {
|
||||
list-style-type: none;
|
||||
position: relative;
|
||||
-moz-column-break-after: avoid;
|
||||
break-after: avoid;
|
||||
position: absolute;
|
||||
left: calc(var(--indent) * -2);
|
||||
}
|
||||
ol[type="1"]::before {
|
||||
content: attr(start);
|
||||
font-family: var(--font-sans-txt);
|
||||
font-size: 9px;
|
||||
color: #999;
|
||||
display: block;
|
||||
padding: 0px 2px;
|
||||
border: 1px solid #cfcfcf;
|
||||
min-width: 1.5ch;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.pagedjs_left_page ol[type="1"] {
|
||||
left: inherit;
|
||||
right: calc(var(--indent) * -2);
|
||||
}
|
||||
|
||||
p + p,
|
||||
ol[type="1"] + p {
|
||||
text-indent: calc(var(--indent) * 0.5);
|
||||
}
|
||||
|
||||
blockquote {
|
||||
padding-left: var(--indent);
|
||||
margin-top: calc(var(--baseline) * 1);
|
||||
margin-bottom: calc(var(--baseline) * 1);
|
||||
font-family: var(--font-sans-txt);
|
||||
font-size: var(--fs-small-q);
|
||||
line-height: calc(var(--baseline) * 0.9);
|
||||
}
|
||||
blockquote .inline-note::after {
|
||||
font-family: var(--font);
|
||||
line-height: 0;
|
||||
font-size: var(--font-size) !important;
|
||||
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;
|
||||
}
|
||||
|
||||
.these + ol + p,
|
||||
|
|
@ -248,45 +229,69 @@ blockquote + ol + p {
|
|||
}
|
||||
|
||||
.these {
|
||||
margin-bottom: var(--baseline);
|
||||
padding-left: var(--indent);
|
||||
margin-bottom: calc(var(--baseline) * 1);
|
||||
border-left: 4px solid #efefef;
|
||||
-webkit-box-decoration-break: clone;
|
||||
box-decoration-break: clone;
|
||||
padding-left: calc(var(--indent) * 0.5);
|
||||
}
|
||||
|
||||
#section__content h1, #section__content h2, #section__content h3 {
|
||||
text-wrap: balance;
|
||||
ol[type="1"] {
|
||||
list-style-type: none;
|
||||
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);
|
||||
font-size: var(--fs-small);
|
||||
color: #999;
|
||||
}
|
||||
ol[type="1"] li::before {
|
||||
font-size: var(--fs-small);
|
||||
content: "¶";
|
||||
color: #d7d7d7;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
}
|
||||
|
||||
#section__content {
|
||||
margin-left: 28mm;
|
||||
}
|
||||
#section__content h1::before, #section__content h2::before, #section__content h3::before {
|
||||
content: attr(data-counter);
|
||||
}
|
||||
#section__content h4, #section__content h5, #section__content h6 {
|
||||
text-wrap: balance;
|
||||
}
|
||||
#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 h1, #section__content h2, #section__content h3, #section__content h4 {
|
||||
-moz-column-break-inside: avoid;
|
||||
break-inside: avoid;
|
||||
-moz-column-break-after: avoid;
|
||||
break-after: avoid;
|
||||
text-wrap: balance;
|
||||
/* 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 h1::after, #section__content h2::after, #section__content h3::after, #section__content h4::after {
|
||||
content: "";
|
||||
display: block;
|
||||
height: calc(var(--baseline) * 3);
|
||||
}
|
||||
#section__content h4, #section__content h5, #section__content h6 {
|
||||
#section__content h5, #section__content h6 {
|
||||
-moz-column-break-inside: avoid;
|
||||
break-inside: avoid;
|
||||
-moz-column-break-after: avoid;
|
||||
break-after: avoid;
|
||||
text-wrap: balance;
|
||||
/* hack for avoiding break-after */
|
||||
margin-bottom: calc(var(--baseline) * -2);
|
||||
}
|
||||
#section__content h4::after, #section__content h5::after, #section__content h6::after {
|
||||
#section__content h5::after, #section__content h6::after {
|
||||
content: "";
|
||||
display: block;
|
||||
height: calc(var(--baseline) * 2);
|
||||
|
|
@ -299,86 +304,100 @@ blockquote + ol + p {
|
|||
#section__content h6 + ol + p {
|
||||
text-indent: 0;
|
||||
}
|
||||
#section__content h1 {
|
||||
font-family: var(--font-title);
|
||||
text-transform: uppercase;
|
||||
font-weight: var(--w-title);
|
||||
font-size: 1.3rem;
|
||||
line-height: calc(var(--baseline) * 1.4);
|
||||
text-align: center;
|
||||
position: relative;
|
||||
margin-top: calc(var(--baseline) * 3 - 3px);
|
||||
padding-bottom: calc(var(--baseline) * 1);
|
||||
padding-left: 1ch;
|
||||
padding-right: 1ch;
|
||||
}
|
||||
#section__content h1::before {
|
||||
display: block;
|
||||
font-size: 1rem;
|
||||
}
|
||||
#section__content h1:first-of-type {
|
||||
margin-top: 3px !important;
|
||||
}
|
||||
#section__content h2 {
|
||||
font-family: var(--font-title);
|
||||
text-transform: uppercase;
|
||||
font-weight: var(--w-title);
|
||||
font-size: 1.1rem;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
line-height: calc(var(--baseline) * 1.2);
|
||||
text-align: right;
|
||||
padding-left: 4ch;
|
||||
position: relative;
|
||||
margin-top: calc(var(--baseline) * 1 + 9px);
|
||||
margin-top: calc(var(--baseline) * 1 + 6px);
|
||||
padding-bottom: calc(var(--baseline) * 1);
|
||||
padding-right: 2ch;
|
||||
padding-left: calc(var(--indent) * 2);
|
||||
}
|
||||
#section__content h2::before {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
#section__content h3 {
|
||||
font-family: var(--font-sans);
|
||||
font-weight: var(--w-title);
|
||||
font-family: var(--font-title);
|
||||
font-weight: 500;
|
||||
font-size: 1rem;
|
||||
line-height: calc(var(--baseline) * 1);
|
||||
text-align: right;
|
||||
padding-left: 3ch;
|
||||
padding-right: calc(var(--indent) * 2);
|
||||
position: relative;
|
||||
margin-top: calc(var(--baseline) * 1 + 9px);
|
||||
padding-bottom: calc(var(--baseline) * 1);
|
||||
margin-top: calc(var(--baseline) * 1 + 4px);
|
||||
padding-bottom: calc(var(--baseline) * 0.75);
|
||||
padding-left: calc(var(--indent) * 2);
|
||||
}
|
||||
#section__content h3::before {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
#section__content h4 {
|
||||
font-family: var(--font-sans);
|
||||
font-weight: var(--w-title);
|
||||
font-size: 0.8rem;
|
||||
font-family: var(--font-title);
|
||||
font-weight: 500;
|
||||
font-size: 0.9rem;
|
||||
line-height: calc(var(--baseline) * 1);
|
||||
text-align: right;
|
||||
padding-left: 3ch;
|
||||
padding-right: calc(var(--indent) * 2);
|
||||
position: relative;
|
||||
margin-top: calc(var(--baseline) * 0.5);
|
||||
padding: calc(var(--baseline) * 0.5);
|
||||
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-sans);
|
||||
font-weight: var(--w-title);
|
||||
font-size: 0.7rem;
|
||||
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) * 0.75);
|
||||
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;
|
||||
}
|
||||
|
||||
[data-id=section__content][data-split-from] > :first-child {
|
||||
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;
|
||||
}
|
||||
|
||||
@page {
|
||||
@footnote {
|
||||
float: bottom;
|
||||
max-height: 90%;
|
||||
footnote-policy: auto;
|
||||
}
|
||||
}
|
||||
.pagedjs_footnote_content {
|
||||
|
|
@ -387,10 +406,12 @@ blockquote + ol + p {
|
|||
|
||||
.inline-note {
|
||||
float: footnote;
|
||||
font-size: 9.5px;
|
||||
line-height: 12.8px;
|
||||
footnote-policy: auto;
|
||||
font-size: var(--fs-small);
|
||||
line-height: calc(var(--baseline) * 0.8);
|
||||
padding-left: var(--indent);
|
||||
position: relative;
|
||||
font-weight: 600;
|
||||
}
|
||||
.inline-note::marker {
|
||||
display: none;
|
||||
|
|
@ -403,8 +424,17 @@ blockquote + ol + p {
|
|||
left: 0px;
|
||||
}
|
||||
|
||||
[data-footnote-call] {
|
||||
font-size: 9px;
|
||||
.inline-note::after {
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-small);
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
top: -3px;
|
||||
font-variant-position: normal !important;
|
||||
}
|
||||
|
||||
blockquote .inline-note {
|
||||
font-variant-position: normal !important;
|
||||
}
|
||||
|
||||
#section__list-of-abbr {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"sources":["style.css","modules/_var.scss","modules/_init.scss","modules/_layout.scss","modules/_text.scss","modules/_titles.scss","modules/_footnotes.scss","modules/_list-of-abbr.scss"],"names":[],"mappings":"AAAA,gBAAgB;ACAhB;EACI,2BAAA;EACA,kCAAA;EACA,iBAAA;EAEA,iCAAA;EAEA,qCAAA;EACA,iBAAA;EACA,kBAAA;EACA,gBAAA;EACA,cAAA;ADAJ;;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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EAEA,iBAAA;EACA,wCAAA;EACA,kBAAA;EACA,kBAAA;EACA,2CAAA;EACA,yCAAA;EACA,iBAAA;EACA,kBAAA;AL8OR;AK7OQ;EACI,cAAA;EACA,eAAA;AL+OZ;AK1OI;EACI,0BAAA;AL4OR;AKtOI;EACI,8BAAA;EACA,yBAAA;EACC,2BAAA;EAED,iBAAA;EACA,wCAAA;EAEA,iBAAA;EACA,iBAAA;EACA,kBAAA;EACA,2CAAA;EACA,yCAAA;ALsOR;AKrOQ;EACI,kBAAA;EACA,OAAA;ALuOZ;AKnOI;EACI,6BAAA;EACC,2BAAA;EACD,eAAA;EACA,sCAAA;EAEA,iBAAA;EACA,iBAAA;EACA,kBAAA;EACA,2CAAA;EACA,yCAAA;ALoOR;AKnOQ;EAII,kBAAA;EACA,OAAA;ALkOZ;AK9NI;EACI,6BAAA;EACC,2BAAA;EACD,iBAAA;EACA,sCAAA;EAEA,iBAAA;EACA,iBAAA;EACA,kBAAA;EACC,uCAAA;EACD,oCAAA;AL+NR;AK1NI;EACI,6BAAA;EACC,2BAAA;EACD,iBAAA;EACA,sCAAA;EACA,kBAAA;EACA,wCAAA;EACA,4CAAA;AL4NR;;AKpNA;EACQ,aAAA;ALuNR;;AMhXA;EACI;IACE,aAAA;IACA,eAAA;ENmXJ;AACF;AM/WE;EACA,sCAAA;ANiXF;;AM9WA;EACE,eAAA;EACA,gBAAA;EACA,mBAAA;EACA,2BAAA;EACA,kBAAA;ANiXF;AM9WE;EACE,aAAA;EACA,WAAA;ANgXJ;;AMzWA;EACI,oCAAA;EACA,kBAAA;EAEA,SAAA;AN2WJ;;AMvWA;EACM,cAAA;AN0WN;;AOhZA;EACI,aAAA;EACA,UAAA;APmZJ","file":"style.css"}
|
||||
{"version":3,"sources":["style.css","modules/_var.scss","modules/_init.scss","modules/_layout.scss","modules/_text.scss","modules/_titles.scss","modules/_footnotes.scss","modules/_list-of-abbr.scss"],"names":[],"mappings":"AAAA,gBAAgB;ACAhB;EACI,iCAAA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ACA,2CAAA;EACA,yCAAA;EACA,qCAAA;EACA,kBAAA;ALmNR;AKhNQ;EASK,kBAAA;EACA,OAAA;EACA,sCAAA;AL0Mb;;AKpMI;EACI,0BAAA;ALuMR;;AMjYA;EACI;IACE,aAAA;IACA,qBAAA;ENoYJ;AACF;AMjYE;EACI,sCAAA;ANmYN;;AMhYA;EACE,eAAA;EACA,qBAAA;EACA,0BAAA;EACA,wCAAA;EACA,2BAAA;EACA,kBAAA;EACA,gBAAA;ANmYF;AMjYE;EACE,aAAA;EACA,WAAA;ANmYJ;;AM5XA;EACI,oCAAA;EACA,kBAAA;EACA,SAAA;AN+XJ;;AM3XA;EACE,wBAAA;EACA,0BAAA;EACA,cAAA;EACA,kBAAA;EACA,SAAA;EACA,wCAAA;AN8XF;;AM1XA;EACI,wCAAA;AN6XJ;;AO5aA;EACI,aAAA;EACA,UAAA;AP+aJ","file":"style.css"}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"plugins": ["baseline","grid","marginBox","imposition","spread","previewPage","reloadInPlace","fullPage","inlineNotes"],
|
||||
"plugins": ["baseline","grid","marginBox","imposition","spread","previewPage","reloadInPlace","inlineNotes"],
|
||||
"pluginsParameters":{},
|
||||
"css": [
|
||||
"css/style.css"
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@
|
|||
<link rel="stylesheet" href="/fonts/HeliotropeCaps/stylesheet.css">
|
||||
<link rel="stylesheet" href="/fonts/Prensa/stylesheet.css">
|
||||
<link rel="stylesheet" href="/fonts/AlliumRounded/stylesheet.css">
|
||||
<link rel="stylesheet" href="/fonts/Akkurat/stylesheet.css">
|
||||
<link rel="stylesheet" href="/fonts/Moulin/stylesheet.css">
|
||||
<link rel="stylesheet" href="/fonts/Akkurat/stylesheet.css">
|
||||
|
||||
</head>
|
||||
|
||||
|
|
|
|||
124
js/sectionedFootnotes.js
Normal file
124
js/sectionedFootnotes.js
Normal file
|
|
@ -0,0 +1,124 @@
|
|||
import { Handler } from '/csspageweaver/lib/paged.esm.js';
|
||||
|
||||
export default class SectionedFootnotes extends Handler {
|
||||
constructor(chunker, polisher, caller) {
|
||||
super(chunker, polisher, caller);
|
||||
}
|
||||
|
||||
beforeParsed(content){
|
||||
|
||||
const sectionContent = content.querySelector('#section__content');
|
||||
const footnotesSection = content.querySelector('#footnotes');
|
||||
|
||||
if (!sectionContent || !footnotesSection) {
|
||||
console.warn("Section content ou footnotes non trouvé");
|
||||
return;
|
||||
}
|
||||
|
||||
const originalOl = footnotesSection.querySelector('ol');
|
||||
if (!originalOl) {
|
||||
console.warn("Liste de footnotes non trouvée");
|
||||
return;
|
||||
}
|
||||
|
||||
const allH1s = sectionContent.querySelectorAll('h1');
|
||||
|
||||
const noteToPartMap = new Map();
|
||||
|
||||
allH1s.forEach((h1, partIndex) => {
|
||||
// Trouver le prochain h1 ou la fin de la section
|
||||
const nextH1 = allH1s[partIndex + 1];
|
||||
|
||||
// Récupérer tous les éléments entre ce h1 et le suivant
|
||||
let current = h1.nextElementSibling;
|
||||
while (current && current !== nextH1) {
|
||||
// Chercher les footnote-ref dans cet élément
|
||||
const refs = current.querySelectorAll('.footnote-ref');
|
||||
refs.forEach(ref => {
|
||||
const href = ref.getAttribute('href');
|
||||
if (href && href.startsWith('#fn')) {
|
||||
const noteNum = href.replace('#fn', '');
|
||||
noteToPartMap.set(noteNum, partIndex);
|
||||
}
|
||||
});
|
||||
if (current.classList && current.classList.contains('footnote-ref')) {
|
||||
const href = current.getAttribute('href');
|
||||
if (href && href.startsWith('#fn')) {
|
||||
const noteNum = href.replace('#fn', '');
|
||||
noteToPartMap.set(noteNum, partIndex);
|
||||
}
|
||||
}
|
||||
current = current.nextElementSibling;
|
||||
}
|
||||
});
|
||||
|
||||
const notesByPart = new Map();
|
||||
const allNotes = originalOl.querySelectorAll('li[id^="fn"]');
|
||||
|
||||
allNotes.forEach(note => {
|
||||
const noteId = note.getAttribute('id');
|
||||
const noteNum = noteId.replace('fn', '');
|
||||
const partIndex = noteToPartMap.get(noteNum);
|
||||
|
||||
if (partIndex !== undefined) {
|
||||
if (!notesByPart.has(partIndex)) {
|
||||
notesByPart.set(partIndex, []);
|
||||
}
|
||||
notesByPart.get(partIndex).push({
|
||||
num: parseInt(noteNum),
|
||||
element: note
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
const sortedParts = Array.from(notesByPart.keys()).sort((a, b) => a - b);
|
||||
|
||||
// Vider la section footnotes (garder le hr s'il existe)
|
||||
const hr = footnotesSection.querySelector('hr');
|
||||
footnotesSection.innerHTML = '';
|
||||
if (hr) {
|
||||
footnotesSection.appendChild(hr);
|
||||
}
|
||||
|
||||
// Add title section
|
||||
const mainTitle = document.createElement('h1');
|
||||
mainTitle.textContent = 'Notizen';
|
||||
footnotesSection.appendChild(mainTitle);
|
||||
|
||||
sortedParts.forEach(partIndex => {
|
||||
const h1 = allH1s[partIndex];
|
||||
const notes = notesByPart.get(partIndex);
|
||||
|
||||
notes.sort((a, b) => a.num - b.num);
|
||||
|
||||
if (notes.length > 0) {
|
||||
// Upper-alpha counter
|
||||
const titlePart = document.createElement('h2');
|
||||
titlePart.className = 'title-part';
|
||||
const letter = String.fromCharCode(65 + partIndex); // 65 = 'A'
|
||||
titlePart.setAttribute('data-part-number', letter);
|
||||
titlePart.textContent = h1.textContent.trim();
|
||||
footnotesSection.appendChild(titlePart);
|
||||
|
||||
// New ol with new start
|
||||
const newOl = document.createElement('ol');
|
||||
const firstNoteNum = notes[0].num;
|
||||
newOl.setAttribute('start', firstNoteNum);
|
||||
|
||||
notes.forEach(noteData => {
|
||||
newOl.appendChild(noteData.element.cloneNode(true));
|
||||
});
|
||||
|
||||
footnotesSection.appendChild(newOl);
|
||||
}
|
||||
});
|
||||
|
||||
sectionContent.parentNode.insertBefore(footnotesSection, sectionContent.nextSibling);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue