Zuletzt bearbeitet vor 3 Monaten
von Frank Hofmann

MediaWiki:Common.css: Unterschied zwischen den Versionen

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 #content h2:nth-of-type(4) ~ p:before {
.ns-0.page-Hauptseite #content p:before {
      /* Stop numbering for heading 5*/
 
       content:""  
  content: "";  /* No counter*/
}
}
   
  .ns-0.page-Hauptseite #content p:before,
.ns-0 #content .footerbox p:before { /* No numbering for footerbox*/
/* No numbering on homepage*/
 
.ns-0 #content .footerbox p:before,
    content:'';
/* 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 {
/* Initialize a counter for the container */
       counter-reset: paragraph-counter -1;
 
      /* Initialize the counter */
.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 */
  counter-increment: paragraph-counter; /* Increase counter for each p */
 
}
}
 
p:first-child::before {
.pdfcreator-page-content p:first-child::before { /* Skip first paragraph above TOC */
      /* 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 {
.pdfcreator-page-content .footerbox p:before { /* No numbering for footerbox*/
      /* No numbering for footerbox*/
 
       content:'';
    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:'';
}