Ordnung.css: Unterschied zwischen den Versionen

Aus Stura Wiki
Zur Navigation springen Zur Suche springen
Zeile 69: Zeile 69:
 
   content: counter(item) ". ";
 
   content: counter(item) ". ";
 
   margin-left: -3em;
 
   margin-left: -3em;
 +
}
 +
div.mw-parser-output ol.letter ol li {
 +
  display: block;
 +
  margin-bottom: .5em;
 +
  margin-left: 2em;
 
}
 
}
 
div.mw-parser-output ol.letter ol li::before {
 
div.mw-parser-output ol.letter ol li::before {

Version vom 19. September 2023, 08:14 Uhr

body {

 counter-reset: teil;

} h1 {

 counter-reset: para;

} div.mw-parser-output h2::before {

 content: "Teil "counter(teil) " - ";
 counter-increment: teil;

} div.toc {

 counter-reset: tocteil;

} div.toctitle {

 counter-reset: tocpara;

} div.toc ul span.toctext:before {

 content: "Teil "counter(tocteil) " - ";
 counter-increment: tocteil;

} div.toc ul ul span.toctext:before {

 content: "§ "counter(tocpara) " ";
 counter-increment: tocpara;

}

div.mw-parser-output div.toc h2::before {

 content: revert;
 counter-increment: revert;

} div.mw-parser-output h3::before {

 content: "§ "counter(para) " ";
 counter-increment: para;

}

div.mw-parser-output ol li.nonum::before {

 display: none;

} div.mw-parser-output ol {

 counter-reset: item;
 margin-left: 0;
 padding-left: 0;

} div.mw-parser-output ol.noreset {

 counter-reset: revert;

} div.mw-parser-output ol li {

 display: block;
 margin-bottom: .5em;
 margin-left: 2em;

} div.mw-parser-output ol li::before {

 display: inline-block;
 content: "("counter(item) ") ";
 counter-increment: item;
 width: 2em;
 margin-left: -2em;

}

div.mw-parser-output ol ol {

 margin-left: 0.95em;
 padding-left: 1.95em;
 text-indent: 1em;

} div.mw-parser-output ol ol li {

 margin-bottom: 0em;
 margin-left: 0.1em;

} div.mw-parser-output ol ol li::before {

 content: counter(item) ". ";
 margin-left: -3em;

} div.mw-parser-output ol.letter ol li {

 display: block;
 margin-bottom: .5em;
 margin-left: 2em;

} div.mw-parser-output ol.letter ol li::before {

 content: "("counter(item, upper-alpha) ") ";
 width: 2em;
 margin-left: -2em;

}