| Keine Bearbeitungszusammenfassung | Keine Bearbeitungszusammenfassung | ||
| Zeile 1: | Zeile 1: | ||
| .ns-0.page-Hauptseite #content p:before { | |||
|   content: "";  /* No counter*/ | |||
| } | |||
| /* 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 */ |    counter-reset: para-counter; /* Initialize the counter */ | ||
| } | } | ||
| .ns-0 #content p { | .ns-0 #content p { | ||
|    counter-increment: para-counter;  /* Increase counter for each 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*/ |    content: "("counter(para-counter) ") ";  /* Show the counter in brackets*/ | ||
|    font-weight:bold; |    font-weight:bold; | ||
| } | } | ||
| .ns-0.page-Hauptseite #content p:before { | .ns-0.page-Hauptseite #content p:before { | ||
|    content: "";  /* No counter*/ |    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:''; | ||
| } | } | ||
| /* Custom paragraph numbering PDF */ | |||
| /* Initialize a counter for the container */ | /* Initialize a counter for the container */ | ||
| .pdfcreator-page-content { | .pdfcreator-page-content { | ||
|    counter-reset: paragraph-counter -1;  /* Initialize the counter */ |    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 */ |    counter-increment: paragraph-counter; /* Increase counter for each p */ | ||
| } | } | ||
| .pdfcreator-page-content p:first-child::before { /* Skip first paragraph above TOC */ | .pdfcreator-page-content p:first-child::before { /* Skip first paragraph above TOC */ | ||
|    content: ""; |    content: ""; | ||
|    counter-increment: none; |    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*/ |    content: "("counter(paragraph-counter)") "; /* Show the counter in brackets*/ | ||
|    font-weight:bold;	 /* Show number in bold */ |    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:''; |      content:''; | ||
| } | } | ||
Version vom 28. Juli 2025, 13:27 Uhr
.ns-0.page-Hauptseite #content p:before {
  content: "";  /* No counter*/
}
 
/* 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:'';
}