(Die Seite wurde neu angelegt: „→Das folgende CSS wird für alle Benutzeroberflächen geladen.: →Custom paragraph numbering: .ns-0 #content { counter-reset: para-counter; →Initialize the counter: } .ns-0 #content p { counter-increment: para-counter; →Increase counter for each p: } .ns-0 #content p:before { content: "("counter(para-counter) ") "; →Show the counter in brackets: font-weight:bold; } .ns-0 #content .footerbox p:before { /* No numbering for footer…“) |
Keine Bearbeitungszusammenfassung |
||
| (2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | /* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | ||
/*Custom paragraph numbering */ | /*Custom paragraph numbering */ | ||
.ns-0 #content { | .ns-0 #content { | ||
counter-reset: para-counter; | |||
/* Initialize the counter */ | |||
} | } | ||
.ns-0 #content p { | .ns-0 #content p { | ||
counter-increment: para-counter; | |||
/* Increase counter for each p */ | |||
} | } | ||
.ns-0 #content p:before { | .ns-0 #content p:before { | ||
content: "("counter(para-counter) ") "; | |||
/* Show the counter in brackets*/ | |||
font-weight:bold; | |||
} | } | ||
.ns-0 #content h2:nth-of-type(4) ~ p:before { | |||
.ns-0 #content .footerbox p:before | /* Stop numbering for heading 5*/ | ||
content:"" | |||
} | |||
.ns-0.page-Hauptseite #content p:before, | |||
/* No numbering on homepage*/ | |||
.ns-0 #content .footerbox p:before, | |||
/* No numbering for footerbox*/ | |||
#content .ve-ce-branchNode p:before{ | |||
/* No numbering in edit mode*/ | |||
content: ""; | |||
/* No counter*/ | |||
} | } | ||
/* Custom paragraph numbering PDF */ | /* Custom paragraph numbering PDF */ | ||
.pdfcreator-page-content { | |||
.pdfcreator-page-content { | counter-reset: paragraph-counter -1; | ||
/* Initialize the counter */ | |||
} | } | ||
.pdfcreator-page-content p | .pdfcreator-page-content p { | ||
counter-increment: paragraph-counter; | |||
/* Increase counter for each p */ | |||
} | } | ||
p:first-child::before { | |||
/* Skip first paragraph above TOC */ | |||
content: ""; | |||
counter-increment: none; | |||
} | } | ||
/* Show numbering starting from the second paragraph */ | /* Show numbering starting from the second paragraph */ | ||
.pdfcreator-page-content p:before { | .pdfcreator-page-content p:before { | ||
content: "("counter(paragraph-counter)") "; | |||
/* Show the counter in brackets*/ | |||
font-weight:bold; | |||
/* Show number in bold */ | |||
} | } | ||
.pdfcreator-page-content .footerbox p:before { /* No numbering for footerbox*/ | .pdfcreator-page-content .footerbox p:before { | ||
/* No numbering for footerbox*/ | |||
content:''; | |||
} | } | ||
Aktuelle Version vom 28. Juli 2025, 16:42 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/*Custom paragraph numbering */
.ns-0 #content {
counter-reset: para-counter;
/* Initialize the counter */
}
.ns-0 #content p {
counter-increment: para-counter;
/* Increase counter for each p */
}
.ns-0 #content p:before {
content: "("counter(para-counter) ") ";
/* Show the counter in brackets*/
font-weight:bold;
}
.ns-0 #content h2:nth-of-type(4) ~ p:before {
/* Stop numbering for heading 5*/
content:""
}
.ns-0.page-Hauptseite #content p:before,
/* No numbering on homepage*/
.ns-0 #content .footerbox p:before,
/* No numbering for footerbox*/
#content .ve-ce-branchNode p:before{
/* No numbering in edit mode*/
content: "";
/* No counter*/
}
/* Custom paragraph numbering PDF */
.pdfcreator-page-content {
counter-reset: paragraph-counter -1;
/* Initialize the counter */
}
.pdfcreator-page-content p {
counter-increment: paragraph-counter;
/* Increase counter for each p */
}
p:first-child::before {
/* Skip first paragraph above TOC */
content: "";
counter-increment: none;
}
/* Show numbering starting from the second paragraph */
.pdfcreator-page-content p:before {
content: "("counter(paragraph-counter)") ";
/* Show the counter in brackets*/
font-weight:bold;
/* Show number in bold */
}
.pdfcreator-page-content .footerbox p:before {
/* No numbering for footerbox*/
content:'';
}