|  (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 | ||
| Zeile 11: | Zeile 11: | ||
|    font-weight:bold; |    font-weight:bold; | ||
| } | } | ||
| .ns-0.page-Hauptseite #content p:before { | |||
|   content: "";  /* No counter*/ | |||
| } | |||
| .ns-0 #content .footerbox p:before { /* No numbering for footerbox*/ | .ns-0 #content .footerbox p:before { /* No numbering for footerbox*/ | ||
|      content:''; |      content:''; | ||
Version vom 28. Juli 2025, 13:24 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.page-Hauptseite #content p:before {
  content: "";  /* No counter*/
}
.ns-0 #content .footerbox p:before { /* No numbering for footerbox*/
    content:'';
}
/* Custom paragraph numbering PDF */
/* Initialize a counter for the container */
.pdfcreator-page-content {
  counter-reset: paragraph-counter -1;  /* Initialize the counter */
}
.pdfcreator-page-content p  {
  counter-increment: paragraph-counter; /* Increase counter for each p */
}
.pdfcreator-page-content 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:'';
}