counters update !publish!

This commit is contained in:
Marcell Mars 2023-05-02 23:38:39 +02:00
parent e5a7215c51
commit 8576545609
11 changed files with 82 additions and 533 deletions

View file

@ -576,6 +576,10 @@ img, video {
padding-left: 0.1em; padding-left: 0.1em;
} }
.counters {
color: rgba(0, 0, 0, 0.4);
}
.rightcolumn { .rightcolumn {
/* display: grid; /* display: grid;
grid-column: 2; grid-column: 2;
@ -731,66 +735,6 @@ h2 + p:first-letter {
font-weight: 400; font-weight: 400;
} }
body {
counter-reset: h2 glossN;
}
h2 {
counter-reset: h3;
}
h3 {
counter-reset: h4;
}
h4 {
counter-reset: h5;
}
h5 {
counter-reset: h6;
}
h2:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h2;
content: counter(h2) ". ";
}
h3:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h3;
content: counter(h2) "." counter(h3) ". ";
}
h4:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h4;
content: counter(h2) "." counter(h3) "." counter(h4) ". ";
}
h5:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h5;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". ";
}
h6:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h6;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "."
counter(h6) ". ";
}
h2.nocount:before,
h3.nocount:before,
h4.nocount:before,
h5.nocount:before,
h6.nocount:before {
content: "";
counter-increment: none;
}
details { details {
padding-left: 1rem; padding-left: 1rem;
} }

View file

@ -401,6 +401,9 @@ ol li {
font-weight: bold; font-weight: bold;
} }
.counters {
color: rgba(0, 0, 0, 0.4);
}
/* #TableOfContents > ol:first-child > span > li > a::after { */ /* #TableOfContents > ol:first-child > span > li > a::after { */
/* content: "¶"; */ /* content: "¶"; */
/* color: rgba(0, 0, 0, 0.2); */ /* color: rgba(0, 0, 0, 0.2); */
@ -556,67 +559,6 @@ blockquote {
font-family: "Gentium Plus", serif; font-family: "Gentium Plus", serif;
font-variant: small-caps; font-variant: small-caps;
} }
body {
counter-reset: h2 glossN;
}
h2 {
counter-reset: h3;
}
h3 {
counter-reset: h4;
}
h4 {
counter-reset: h5;
}
h5 {
counter-reset: h6;
}
h2:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h2;
content: counter(h2) ". ";
}
h3:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h3;
content: counter(h2) "." counter(h3) ". ";
}
h4:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h4;
content: counter(h2) "." counter(h3) "." counter(h4) ". ";
}
h5:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h5;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". ";
}
h6:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: h6;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "."
counter(h6) ". ";
}
h2.nocount:before,
h3.nocount:before,
h4.nocount:before,
h5.nocount:before,
h6.nocount:before {
content: "";
counter-increment: none;
}
details { details {
padding-left: 1rem; padding-left: 1rem;
} }

View file

@ -1,332 +0,0 @@
body {counter-reset: css-5b2c9bc856f0d600de3a5440e4729a5b-h2 css-8d09338d4c6cd143e6ef05e89ff83ad6-h2 css-e92a96af15997255b08b0367dfe404a8-h2 css-5751de1128e2508854a84b88cc6d8546-h2 css-20cbaf3353610efcbd7f6f17bc53490c-h2 css-ef8d2f45d27f56f6ff80b71b75d5c76c-h2;}
.css-5b2c9bc856f0d600de3a5440e4729a5b-h2 {
counter-reset: css-5b2c9bc856f0d600de3a5440e4729a5b-h3;
}
.css-5b2c9bc856f0d600de3a5440e4729a5b-h3 {
counter-reset: css-5b2c9bc856f0d600de3a5440e4729a5b-h4;
}
.css-5b2c9bc856f0d600de3a5440e4729a5b-h4 {
counter-reset: css-5b2c9bc856f0d600de3a5440e4729a5b-h5;
}
.css-5b2c9bc856f0d600de3a5440e4729a5b-h5 {
counter-reset: css-5b2c9bc856f0d600de3a5440e4729a5b-h6;
}
.css-5b2c9bc856f0d600de3a5440e4729a5b-h2:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-5b2c9bc856f0d600de3a5440e4729a5b-h2 1;
content: counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h2) ". ";
}
.css-5b2c9bc856f0d600de3a5440e4729a5b-h3:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-5b2c9bc856f0d600de3a5440e4729a5b-h3 1;
content: counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h2) "." counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h3) ". ";
}
.css-5b2c9bc856f0d600de3a5440e4729a5b-h4:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-5b2c9bc856f0d600de3a5440e4729a5b-h4 1;
content: counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h2) "." counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h3) "." counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h4) ". ";
}
.css-5b2c9bc856f0d600de3a5440e4729a5b-h5:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-5b2c9bc856f0d600de3a5440e4729a5b-h5 1;
content: counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h2) "." counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h3) "." counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h4) "." counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h5) ". ";
}
.css-5b2c9bc856f0d600de3a5440e4729a5b-h6:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-5b2c9bc856f0d600de3a5440e4729a5b-h6 1;
content: counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h2) "." counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h3) "." counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h4) "." counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h5) "."
counter(css-5b2c9bc856f0d600de3a5440e4729a5b-h6) ". ";
}
.css-5b2c9bc856f0d600de3a5440e4729a5b-h2.nocount:before,
.css-5b2c9bc856f0d600de3a5440e4729a5b-h3.nocount:before,
.css-5b2c9bc856f0d600de3a5440e4729a5b-h4.nocount:before,
.css-5b2c9bc856f0d600de3a5440e4729a5b-h5.nocount:before,
.css-5b2c9bc856f0d600de3a5440e4729a5b-h6.nocount:before {
content: "";
counter-increment: none;
}
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h2 {
counter-reset: css-8d09338d4c6cd143e6ef05e89ff83ad6-h3;
}
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h3 {
counter-reset: css-8d09338d4c6cd143e6ef05e89ff83ad6-h4;
}
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h4 {
counter-reset: css-8d09338d4c6cd143e6ef05e89ff83ad6-h5;
}
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h5 {
counter-reset: css-8d09338d4c6cd143e6ef05e89ff83ad6-h6;
}
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h2:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-8d09338d4c6cd143e6ef05e89ff83ad6-h2 1;
content: counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h2) ". ";
}
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h3:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-8d09338d4c6cd143e6ef05e89ff83ad6-h3 1;
content: counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h2) "." counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h3) ". ";
}
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h4:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-8d09338d4c6cd143e6ef05e89ff83ad6-h4 1;
content: counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h2) "." counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h3) "." counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h4) ". ";
}
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h5:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-8d09338d4c6cd143e6ef05e89ff83ad6-h5 1;
content: counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h2) "." counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h3) "." counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h4) "." counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h5) ". ";
}
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h6:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-8d09338d4c6cd143e6ef05e89ff83ad6-h6 1;
content: counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h2) "." counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h3) "." counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h4) "." counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h5) "."
counter(css-8d09338d4c6cd143e6ef05e89ff83ad6-h6) ". ";
}
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h2.nocount:before,
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h3.nocount:before,
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h4.nocount:before,
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h5.nocount:before,
.css-8d09338d4c6cd143e6ef05e89ff83ad6-h6.nocount:before {
content: "";
counter-increment: none;
}
.css-e92a96af15997255b08b0367dfe404a8-h2 {
counter-reset: css-e92a96af15997255b08b0367dfe404a8-h3;
}
.css-e92a96af15997255b08b0367dfe404a8-h3 {
counter-reset: css-e92a96af15997255b08b0367dfe404a8-h4;
}
.css-e92a96af15997255b08b0367dfe404a8-h4 {
counter-reset: css-e92a96af15997255b08b0367dfe404a8-h5;
}
.css-e92a96af15997255b08b0367dfe404a8-h5 {
counter-reset: css-e92a96af15997255b08b0367dfe404a8-h6;
}
.css-e92a96af15997255b08b0367dfe404a8-h2:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-e92a96af15997255b08b0367dfe404a8-h2 1;
content: counter(css-e92a96af15997255b08b0367dfe404a8-h2) ". ";
}
.css-e92a96af15997255b08b0367dfe404a8-h3:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-e92a96af15997255b08b0367dfe404a8-h3 1;
content: counter(css-e92a96af15997255b08b0367dfe404a8-h2) "." counter(css-e92a96af15997255b08b0367dfe404a8-h3) ". ";
}
.css-e92a96af15997255b08b0367dfe404a8-h4:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-e92a96af15997255b08b0367dfe404a8-h4 1;
content: counter(css-e92a96af15997255b08b0367dfe404a8-h2) "." counter(css-e92a96af15997255b08b0367dfe404a8-h3) "." counter(css-e92a96af15997255b08b0367dfe404a8-h4) ". ";
}
.css-e92a96af15997255b08b0367dfe404a8-h5:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-e92a96af15997255b08b0367dfe404a8-h5 1;
content: counter(css-e92a96af15997255b08b0367dfe404a8-h2) "." counter(css-e92a96af15997255b08b0367dfe404a8-h3) "." counter(css-e92a96af15997255b08b0367dfe404a8-h4) "." counter(css-e92a96af15997255b08b0367dfe404a8-h5) ". ";
}
.css-e92a96af15997255b08b0367dfe404a8-h6:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-e92a96af15997255b08b0367dfe404a8-h6 1;
content: counter(css-e92a96af15997255b08b0367dfe404a8-h2) "." counter(css-e92a96af15997255b08b0367dfe404a8-h3) "." counter(css-e92a96af15997255b08b0367dfe404a8-h4) "." counter(css-e92a96af15997255b08b0367dfe404a8-h5) "."
counter(css-e92a96af15997255b08b0367dfe404a8-h6) ". ";
}
.css-e92a96af15997255b08b0367dfe404a8-h2.nocount:before,
.css-e92a96af15997255b08b0367dfe404a8-h3.nocount:before,
.css-e92a96af15997255b08b0367dfe404a8-h4.nocount:before,
.css-e92a96af15997255b08b0367dfe404a8-h5.nocount:before,
.css-e92a96af15997255b08b0367dfe404a8-h6.nocount:before {
content: "";
counter-increment: none;
}
.css-5751de1128e2508854a84b88cc6d8546-h2 {
counter-reset: css-5751de1128e2508854a84b88cc6d8546-h3;
}
.css-5751de1128e2508854a84b88cc6d8546-h3 {
counter-reset: css-5751de1128e2508854a84b88cc6d8546-h4;
}
.css-5751de1128e2508854a84b88cc6d8546-h4 {
counter-reset: css-5751de1128e2508854a84b88cc6d8546-h5;
}
.css-5751de1128e2508854a84b88cc6d8546-h5 {
counter-reset: css-5751de1128e2508854a84b88cc6d8546-h6;
}
.css-5751de1128e2508854a84b88cc6d8546-h2:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-5751de1128e2508854a84b88cc6d8546-h2 1;
content: counter(css-5751de1128e2508854a84b88cc6d8546-h2) ". ";
}
.css-5751de1128e2508854a84b88cc6d8546-h3:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-5751de1128e2508854a84b88cc6d8546-h3 1;
content: counter(css-5751de1128e2508854a84b88cc6d8546-h2) "." counter(css-5751de1128e2508854a84b88cc6d8546-h3) ". ";
}
.css-5751de1128e2508854a84b88cc6d8546-h4:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-5751de1128e2508854a84b88cc6d8546-h4 1;
content: counter(css-5751de1128e2508854a84b88cc6d8546-h2) "." counter(css-5751de1128e2508854a84b88cc6d8546-h3) "." counter(css-5751de1128e2508854a84b88cc6d8546-h4) ". ";
}
.css-5751de1128e2508854a84b88cc6d8546-h5:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-5751de1128e2508854a84b88cc6d8546-h5 1;
content: counter(css-5751de1128e2508854a84b88cc6d8546-h2) "." counter(css-5751de1128e2508854a84b88cc6d8546-h3) "." counter(css-5751de1128e2508854a84b88cc6d8546-h4) "." counter(css-5751de1128e2508854a84b88cc6d8546-h5) ". ";
}
.css-5751de1128e2508854a84b88cc6d8546-h6:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-5751de1128e2508854a84b88cc6d8546-h6 1;
content: counter(css-5751de1128e2508854a84b88cc6d8546-h2) "." counter(css-5751de1128e2508854a84b88cc6d8546-h3) "." counter(css-5751de1128e2508854a84b88cc6d8546-h4) "." counter(css-5751de1128e2508854a84b88cc6d8546-h5) "."
counter(css-5751de1128e2508854a84b88cc6d8546-h6) ". ";
}
.css-5751de1128e2508854a84b88cc6d8546-h2.nocount:before,
.css-5751de1128e2508854a84b88cc6d8546-h3.nocount:before,
.css-5751de1128e2508854a84b88cc6d8546-h4.nocount:before,
.css-5751de1128e2508854a84b88cc6d8546-h5.nocount:before,
.css-5751de1128e2508854a84b88cc6d8546-h6.nocount:before {
content: "";
counter-increment: none;
}
.css-20cbaf3353610efcbd7f6f17bc53490c-h2 {
counter-reset: css-20cbaf3353610efcbd7f6f17bc53490c-h3;
}
.css-20cbaf3353610efcbd7f6f17bc53490c-h3 {
counter-reset: css-20cbaf3353610efcbd7f6f17bc53490c-h4;
}
.css-20cbaf3353610efcbd7f6f17bc53490c-h4 {
counter-reset: css-20cbaf3353610efcbd7f6f17bc53490c-h5;
}
.css-20cbaf3353610efcbd7f6f17bc53490c-h5 {
counter-reset: css-20cbaf3353610efcbd7f6f17bc53490c-h6;
}
.css-20cbaf3353610efcbd7f6f17bc53490c-h2:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-20cbaf3353610efcbd7f6f17bc53490c-h2 1;
content: counter(css-20cbaf3353610efcbd7f6f17bc53490c-h2) ". ";
}
.css-20cbaf3353610efcbd7f6f17bc53490c-h3:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-20cbaf3353610efcbd7f6f17bc53490c-h3 1;
content: counter(css-20cbaf3353610efcbd7f6f17bc53490c-h2) "." counter(css-20cbaf3353610efcbd7f6f17bc53490c-h3) ". ";
}
.css-20cbaf3353610efcbd7f6f17bc53490c-h4:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-20cbaf3353610efcbd7f6f17bc53490c-h4 1;
content: counter(css-20cbaf3353610efcbd7f6f17bc53490c-h2) "." counter(css-20cbaf3353610efcbd7f6f17bc53490c-h3) "." counter(css-20cbaf3353610efcbd7f6f17bc53490c-h4) ". ";
}
.css-20cbaf3353610efcbd7f6f17bc53490c-h5:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-20cbaf3353610efcbd7f6f17bc53490c-h5 1;
content: counter(css-20cbaf3353610efcbd7f6f17bc53490c-h2) "." counter(css-20cbaf3353610efcbd7f6f17bc53490c-h3) "." counter(css-20cbaf3353610efcbd7f6f17bc53490c-h4) "." counter(css-20cbaf3353610efcbd7f6f17bc53490c-h5) ". ";
}
.css-20cbaf3353610efcbd7f6f17bc53490c-h6:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-20cbaf3353610efcbd7f6f17bc53490c-h6 1;
content: counter(css-20cbaf3353610efcbd7f6f17bc53490c-h2) "." counter(css-20cbaf3353610efcbd7f6f17bc53490c-h3) "." counter(css-20cbaf3353610efcbd7f6f17bc53490c-h4) "." counter(css-20cbaf3353610efcbd7f6f17bc53490c-h5) "."
counter(css-20cbaf3353610efcbd7f6f17bc53490c-h6) ". ";
}
.css-20cbaf3353610efcbd7f6f17bc53490c-h2.nocount:before,
.css-20cbaf3353610efcbd7f6f17bc53490c-h3.nocount:before,
.css-20cbaf3353610efcbd7f6f17bc53490c-h4.nocount:before,
.css-20cbaf3353610efcbd7f6f17bc53490c-h5.nocount:before,
.css-20cbaf3353610efcbd7f6f17bc53490c-h6.nocount:before {
content: "";
counter-increment: none;
}
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h2 {
counter-reset: css-ef8d2f45d27f56f6ff80b71b75d5c76c-h3;
}
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h3 {
counter-reset: css-ef8d2f45d27f56f6ff80b71b75d5c76c-h4;
}
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h4 {
counter-reset: css-ef8d2f45d27f56f6ff80b71b75d5c76c-h5;
}
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h5 {
counter-reset: css-ef8d2f45d27f56f6ff80b71b75d5c76c-h6;
}
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h2:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-ef8d2f45d27f56f6ff80b71b75d5c76c-h2 1;
content: counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h2) ". ";
}
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h3:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-ef8d2f45d27f56f6ff80b71b75d5c76c-h3 1;
content: counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h2) "." counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h3) ". ";
}
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h4:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-ef8d2f45d27f56f6ff80b71b75d5c76c-h4 1;
content: counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h2) "." counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h3) "." counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h4) ". ";
}
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h5:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-ef8d2f45d27f56f6ff80b71b75d5c76c-h5 1;
content: counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h2) "." counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h3) "." counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h4) "." counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h5) ". ";
}
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h6:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-ef8d2f45d27f56f6ff80b71b75d5c76c-h6 1;
content: counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h2) "." counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h3) "." counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h4) "." counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h5) "."
counter(css-ef8d2f45d27f56f6ff80b71b75d5c76c-h6) ". ";
}
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h2.nocount:before,
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h3.nocount:before,
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h4.nocount:before,
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h5.nocount:before,
.css-ef8d2f45d27f56f6ff80b71b75d5c76c-h6.nocount:before {
content: "";
counter-increment: none;
}

File diff suppressed because one or more lines are too long

View file

@ -25,6 +25,7 @@
"issue": "issues", "issue": "issues",
"item": "items", "item": "items",
"journal": "journals", "journal": "journals",
"journey": "journeys",
"library": "libraries", "library": "libraries",
"librarian": "librarians", "librarian": "librarians",
"logbook": "logbooks", "logbook": "logbooks",
@ -51,11 +52,13 @@
"ship": "ships", "ship": "ships",
"spectre": "spectres", "spectre": "spectres",
"struggle": "struggles", "struggle": "struggles",
"story": "stories",
"syllabus": "syllabi", "syllabus": "syllabi",
"tab": "tabs", "tab": "tabs",
"term":"terms", "term":"terms",
"thing": "things", "thing": "things",
"topic": "topics", "topic": "topics",
"toponym": "toponyms", "toponym": "toponyms",
"twist": "twists",
"voice": "voices" "voice": "voices"
} }

View file

@ -1 +1,30 @@
<h{{ add 1 .Level }} id="{{ .Anchor | safeURL }}" class="hx css-{{ .Page.File.UniqueID }}-h{{ add 1 .Level }}">{{ .Text | safeHTML }}<a class="hpar" href="#{{ .Anchor | safeURL }}"></a></h{{ add 1 .Level }}> {{ $currentLevel := .Level }}
{{ $currentHeaderKey := printf "H_%d" $currentLevel }}
{{ if not (.Page.Scratch.Get $currentHeaderKey) }}
{{ .Page.Scratch.Set $currentHeaderKey 1 }}
{{ else }}
{{ .Page.Scratch.Set $currentHeaderKey (add 1 (.Page.Scratch.Get $currentHeaderKey)) }}
{{ end }}
{{ if .Page.Scratch.Get "previousLevel" }}
{{ $previousLevel := .Page.Scratch.Get "previousLevel" }}
{{ if gt $previousLevel $currentLevel }}
{{ range $header := slice 1 2 3 4 5 6 }}
{{ if gt $header $currentLevel }}
{{ $.Page.Scratch.Delete (printf "H_%d" $header) }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ $counter := "" }}
{{ range $header := slice 1 2 3 4 5 6 }}
{{ if gt ($.Page.Scratch.Get (printf "H_%d" $header)) 0 }}
{{ $counter = printf "%s%d." $counter ($.Page.Scratch.Get (printf "H_%d" $header))}}
{{ end }}
{{end}}
<h{{ add 1 .Level }} id="{{ .Anchor | safeURL }}" class="hx css-{{ .Page.File.UniqueID }}-h{{ add 1 .Level }}"><span class="counters">{{ $counter }} </span>{{ .Text | safeHTML }}<a class="hpar" href="#{{ .Anchor | safeURL }}"></a> {{ .Page.Scratch.Get "level" }}</h{{ add 1 .Level }}>
{{ .Page.Scratch.Set "previousLevel" .Level }}

View file

@ -1,5 +1,3 @@
<link href="/css/paged_interface.css" rel="stylesheet" type="text/css"> <link href="/css/paged_interface.css" rel="stylesheet" type="text/css">
<link href="/css/dyn.css" rel="stylesheet" type="text/css">
<link href="/css/print.css" rel="stylesheet" type="text/css"> <link href="/css/print.css" rel="stylesheet" type="text/css">
<script src="/js/paged.polyfill.js"></script> <script src="/js/paged.polyfill.js"></script>
<script src="/js/pagedjsCustomizations.js"></script>

View file

@ -1,60 +1,4 @@
{{- define "singlebody" -}} {{- define "singlebody" -}}
{{ $cssTemplate := `.css-_rplc_-h2 {
counter-reset: css-_rplc_-h3;
}
.css-_rplc_-h3 {
counter-reset: css-_rplc_-h4;
}
.css-_rplc_-h4 {
counter-reset: css-_rplc_-h5;
}
.css-_rplc_-h5 {
counter-reset: css-_rplc_-h6;
}
.css-_rplc_-h2:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-_rplc_-h2 1;
content: counter(css-_rplc_-h2) ". ";
}
.css-_rplc_-h3:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-_rplc_-h3 1;
content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) ". ";
}
.css-_rplc_-h4:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-_rplc_-h4 1;
content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) "." counter(css-_rplc_-h4) ". ";
}
.css-_rplc_-h5:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-_rplc_-h5 1;
content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) "." counter(css-_rplc_-h4) "." counter(css-_rplc_-h5) ". ";
}
.css-_rplc_-h6:before {
color: rgba(0, 0, 0, 0.4);
counter-increment: css-_rplc_-h6 1;
content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) "." counter(css-_rplc_-h4) "." counter(css-_rplc_-h5) "."
counter(css-_rplc_-h6) ". ";
}
.css-_rplc_-h2.nocount:before,
.css-_rplc_-h3.nocount:before,
.css-_rplc_-h4.nocount:before,
.css-_rplc_-h5.nocount:before,
.css-_rplc_-h6.nocount:before {
content: "";
counter-increment: none;
}` }}
{{ $cssOutput := "" }} {{ $cssOutput := "" }}
{{ $cssHashes := "" }} {{ $cssHashes := "" }}
@ -62,6 +6,22 @@
{{ $p := $.GetPage .Params.print }} {{ $p := $.GetPage .Params.print }}
{{ $scratch := $s.Get (printf "/%s" $p.File) }} {{ $scratch := $s.Get (printf "/%s" $p.File) }}
{{ $authorsPages := (slice) }}
{{ with $p.Params.authors }}
{{ range $n, $authorFile := . }}
{{ $author := $.GetPage (printf "/author/%s" $authorFile) }}
{{ $authorsPages = (uniq $authorsPages) | append $author }}
{{ end }}
{{ end }}
{{ $editorsPages := (slice) }}
{{ with $p.Params.editors }}
{{ range $n, $editorFile := . }}
{{ $editor := $.GetPage (printf "/editor/%s" $editorFile) }}
{{ $editorsPages = (uniq $editorsPages) | append $editor }}
{{ end }}
{{ end }}
{{ $currentDir := "" }} {{ $currentDir := "" }}
{{ with .File }} {{ with .File }}
{{ $currentDir = .Dir }} {{ $currentDir = .Dir }}
@ -69,8 +29,6 @@
<div class="print0">{{ partial "printsinglebody.html" $p }}</div> <div class="print0">{{ partial "printsinglebody.html" $p }}</div>
<div class="content">{{ $p.Content }}</div> <div class="content">{{ $p.Content }}</div>
{{ $cssOutput = printf "%s\n%s" $cssOutput (replace $cssTemplate "_rplc_" $p.File.UniqueID) }}
{{ $cssHashes = printf "%s css-%s-h2" $cssHashes $p.File.UniqueID }}
{{ range $scratch.has_children }} {{ range $scratch.has_children }}
<div class="crustpage"> <div class="crustpage">
@ -78,8 +36,17 @@
{{ with .Params.authors }} {{ with .Params.authors }}
{{ $addS = len . }} {{ $addS = len . }}
{{ end }} {{ end }}
{{ with .Params.editors }}
{{ range $n, $editorFile := . }}
{{ $editor := $.GetPage (printf "/editor/%s" $editorFile) }}
{{ $editorsPages = (uniq $editorsPages) | append $editor }}
{{ end }}
{{ end }}
{{ range $n, $authorFile := .Params.authors }} {{ range $n, $authorFile := .Params.authors }}
{{ $author := $.GetPage (printf "/author/%s" $authorFile) }} {{ $author := $.GetPage (printf "/author/%s" $authorFile) }}
{{ $authorsPages = (uniq $authorsPages) | append $author }}
{{ if eq $n 0 }} {{ if eq $n 0 }}
<div class="runningAuthors"><span class="sup">author{{ with (gt $addS 1) }}s{{ end }}</span><a href="#ph-{{ $author.File.UniqueID }}">{{ $author.Title }}</a> <div class="runningAuthors"><span class="sup">author{{ with (gt $addS 1) }}s{{ end }}</span><a href="#ph-{{ $author.File.UniqueID }}">{{ $author.Title }}</a>
{{ else }} {{ else }}
@ -95,8 +62,6 @@
<div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div> <div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div>
{{ partial "printsinglebody.html" . }} {{ partial "printsinglebody.html" . }}
{{ .Content }} {{ .Content }}
{{ $cssOutput = printf "%s\n%s" $cssOutput (replace $cssTemplate "_rplc_" .File.UniqueID) }}
{{ $cssHashes = printf "%s css-%s-h2" $cssHashes .File.UniqueID }}
{{ $kid := $s.Get (printf "/%s" .File) }} {{ $kid := $s.Get (printf "/%s" .File) }}
{{ range $kid.has_children }} {{ range $kid.has_children }}
<div class="crustpage"> <div class="crustpage">
@ -121,12 +86,10 @@
<div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div> <div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div>
{{ partial "printsinglebody.html" . }} {{ partial "printsinglebody.html" . }}
{{ .Content }} {{ .Content }}
{{ $cssOutput = printf "%s\n%s" $cssOutput (replace $cssTemplate "_rplc_" .File.UniqueID) }}
{{ $cssHashes = printf "%s css-%s-h2" $cssHashes .File.UniqueID }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ range where $.Site.RegularPages "Section" "in" (slice "author" "editor") }} {{ range union (uniq $editorsPages) (uniq $authorsPages) }}
<div class="authorpage"> <div class="authorpage">
<div class="runningTitle runningAuthors"><span class="sup">{{ index $scratch.mantle 0 }}</span><a href="#ph-{{ $p.File.UniqueID }}">{{ $p.Title }}</a></div> <div class="runningTitle runningAuthors"><span class="sup">{{ index $scratch.mantle 0 }}</span><a href="#ph-{{ $p.File.UniqueID }}">{{ $p.Title }}</a></div>
<div id="ph-{{ .File.UniqueID }}" class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr .File.Dir 0 -1 }}</span>{{ .Title }}</div> <div id="ph-{{ .File.UniqueID }}" class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr .File.Dir 0 -1 }}</span>{{ .Title }}</div>
@ -147,7 +110,4 @@
</div></div> </div></div>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ $cssOutput = printf "body {counter-reset: %s;}\n%s" $cssHashes $cssOutput }}
{{ $var := $cssOutput | resources.FromString "css/dyn.css" }}
{{ $dummy := $var.Permalink }}
{{- end -}} {{- end -}}

View file

@ -1,5 +1,5 @@
/** /**
* @license Paged.js v0.4.0 | MIT | https://gitlab.pagedmedia.org/tools/pagedjs * @license Paged.js v0.4.1 | MIT | https://gitlab.pagedmedia.org/tools/pagedjs
*/ */
(function (global, factory) { (function (global, factory) {
@ -27116,13 +27116,20 @@
counter-reset: unset; counter-reset: unset;
} }
[data-footnote-marker]:not([data-split-from]) { [data-footnote-marker] {
counter-increment: footnote-marker;
text-indent: 0; text-indent: 0;
display: list-item; display: list-item;
list-style-position: inside; list-style-position: inside;
} }
[data-footnote-marker][data-split-from] {
list-style: none;
}
[data-footnote-marker]:not([data-split-from]) {
counter-increment: footnote-marker;
}
[data-footnote-marker]::marker { [data-footnote-marker]::marker {
content: counter(footnote-marker) ". "; content: counter(footnote-marker) ". ";
} }

View file

@ -1 +1 @@
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20230218131829-f652b684e8fa # git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20230502213654-c2856146f225

View file

@ -14,11 +14,12 @@ sandpointsGiteaUrl = "https://git.sandpoints.org/UnionForNubianStudies/Dotawo"
sandpointsCatalogPrefix = "/library/" sandpointsCatalogPrefix = "/library/"
sandpointsCatalogName = "dotawo" sandpointsCatalogName = "dotawo"
sandpointsMentionedIn = ["annex", "author", "editor"] sandpointsMentionedIn = ["annex", "author", "editor"]
sandpointsHome = "journal/index.md"
[outputFormats] [outputFormats]
[outputFormats.js] [outputFormats.js]
isPlainText = true isPlainText = true
mediaType = "text/javascript"
[outputs] [outputs]
list = ["html", "js"] list = ["html", "js"]
@ -69,9 +70,6 @@ target = "assets/css/site.css"
source = "customizations/Dotawo/static/css/site.min.css" source = "customizations/Dotawo/static/css/site.min.css"
target = "static/css/site.min.css" target = "static/css/site.min.css"
[[module.imports.mounts]] [[module.imports.mounts]]
source = "customizations/Dotawo/static/css/dyn.css"
target = "static/css/dyn.css"
[[module.imports.mounts]]
source = "customizations/Dotawo/layouts/partials/header.html" source = "customizations/Dotawo/layouts/partials/header.html"
target = "layouts/partials/header.html" target = "layouts/partials/header.html"
[[module.imports.mounts]] [[module.imports.mounts]]