Ordnung.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
CSS-Einträge neusortiert, Kommentare hinzugefügt |
||
| Zeile 1: | Zeile 1: | ||
/* Fügt Nummerierung zum Inhaltsverzeichnis hinzu*/ | |||
div.toc { | div.toc { | ||
counter-reset: | counter-reset: toc-Teil; | ||
} | } | ||
div.toctitle { | div.toctitle { | ||
counter-reset: | counter-reset: toc-Paragraph; | ||
} | } | ||
div.toc ul span.toctext:before { | div.toc ul span.toctext:before { | ||
content: "Teil "counter( | content: "Teil "counter(toc-Teil) " - "; | ||
counter-increment: | counter-increment: toc-Teil; | ||
} | } | ||
div.toc ul ul span.toctext:before { | div.toc ul ul span.toctext:before { | ||
content: "§ "counter( | content: "§ "counter(toc-Paragraph) " "; | ||
counter-increment: tocpara; | counter-increment: tocpara; | ||
} | } | ||
/* Erlaub durch ein "span" der Klasse "no-teil" einen Inhalt nur mit Paragraphen*/ | |||
span.no-teil div.toc { | span.no-teil div.toc { | ||
counter-reset: revert; | counter-reset: revert; | ||
} | } | ||
span.no-teil div.toc ul span.toctext:before { | span.no-teil div.toc ul span.toctext:before { | ||
content: "§ "counter( | content: "§ "counter(toc-Paragraph) " "; | ||
counter-increment: | counter-increment: toc-Paragraph; | ||
} | } | ||
span.no-teil div.toc ul ul span.toctext:before { | span.no-teil div.toc ul ul span.toctext:before { | ||
| Zeile 42: | Zeile 27: | ||
counter-increment: revert; | counter-increment: revert; | ||
} | } | ||
/* Unterdrückt die Überschrift-Nummerierung innerhalb des Inhaltsverzeichnisses*/ | |||
div.mw-parser-output div.toc h2::before { | div.mw-parser-output div.toc h2::before { | ||
content: revert; | content: revert; | ||
| Zeile 47: | Zeile 34: | ||
} | } | ||
/* Fügt Nummerierung im Dokument den Überschriften hinzu*/ | |||
body { | |||
counter-reset: Teil; | |||
} | |||
h1 { | |||
counter-reset: Paragraph; | |||
} | |||
div.mw-parser-output h2::before { | |||
content: "Teil "counter(Teil) " - "; | |||
counter-increment: Teil; | |||
} | |||
div.mw-parser-output h3::before { | div.mw-parser-output h3::before { | ||
content: "§ "counter( | content: "§ "counter(Paragraph) " "; | ||
counter-increment: | counter-increment: Paragraph; | ||
} | } | ||
div.mw-parser-output | /* Fügt Nummerierung im Dokument den Absätzen hinzu*/ | ||
div.mw-parser-output li.nonum::before { | |||
display: none; | display: none; | ||
} | } | ||
div.mw-parser-output ol { | div.mw-parser-output ol { | ||
counter-reset: | counter-reset: Absatz; | ||
margin-left: 0; | margin-left: 0; | ||
padding-left: 0; | padding-left: 0; | ||
| Zeile 63: | Zeile 62: | ||
counter-reset: revert; | counter-reset: revert; | ||
} | } | ||
div.mw-parser-output ol li { | div.mw-parser-output ol > li { | ||
display: block; | display: block; | ||
margin-bottom: .5em; | margin-bottom: .5em; | ||
margin-left: 2em; | margin-left: 2em; | ||
} | } | ||
div.mw-parser-output ol li::before { | div.mw-parser-output ol > li::before { | ||
display: inline-block; | display: inline-block; | ||
content: "("counter( | content: "("counter(Absatz) ") "; | ||
counter-increment: | counter-increment: Absatz; | ||
width: 2em; | width: 2em; | ||
margin-left: -2em; | margin-left: -2em; | ||
| Zeile 81: | Zeile 80: | ||
text-indent: 1em; | text-indent: 1em; | ||
} | } | ||
div.mw-parser-output ol li ol { | div.mw-parser-output ol > li > ol { | ||
padding-left: 0em; | padding-left: 0em; | ||
} | } | ||
div.mw-parser-output ol ol li { | div.mw-parser-output ol ol > li { | ||
margin-bottom: 0em; | margin-bottom: 0em; | ||
margin-left: 0.1em; | margin-left: 0.1em; | ||
} | } | ||
div.mw-parser-output ol ol li::before { | div.mw-parser-output ol ol > li::before { | ||
content: counter( | content: counter(Absatz) ". "; | ||
margin-left: -3em; | margin-left: -3em; | ||
} | } | ||
div.mw-parser-output ol.letter ol li { | div.mw-parser-output ol.letter ol > li { | ||
text-indent: 0em; | text-indent: 0em; | ||
margin-left: 1em; | margin-left: 1em; | ||
} | } | ||
div.mw-parser-output ol.letter ol li::before { | div.mw-parser-output ol.letter ol > li::before { | ||
content: "("counter( | content: "("counter(Absatz, upper-alpha) ") "; | ||
width: 2em; | width: 2em; | ||
margin-left: -2em; | margin-left: -2em; | ||
} | } | ||
Version vom 19. September 2023, 11:36 Uhr
/* Fügt Nummerierung zum Inhaltsverzeichnis hinzu*/ div.toc {
counter-reset: toc-Teil;
} div.toctitle {
counter-reset: toc-Paragraph;
} div.toc ul span.toctext:before {
content: "Teil "counter(toc-Teil) " - "; counter-increment: toc-Teil;
} div.toc ul ul span.toctext:before {
content: "§ "counter(toc-Paragraph) " "; counter-increment: tocpara;
}
/* Erlaub durch ein "span" der Klasse "no-teil" einen Inhalt nur mit Paragraphen*/ span.no-teil div.toc {
counter-reset: revert;
} span.no-teil div.toc ul span.toctext:before {
content: "§ "counter(toc-Paragraph) " "; counter-increment: toc-Paragraph;
} span.no-teil div.toc ul ul span.toctext:before {
content: revert; counter-increment: revert;
}
/* Unterdrückt die Überschrift-Nummerierung innerhalb des Inhaltsverzeichnisses*/ div.mw-parser-output div.toc h2::before {
content: revert; counter-increment: revert;
}
/* Fügt Nummerierung im Dokument den Überschriften hinzu*/ body {
counter-reset: Teil;
} h1 {
counter-reset: Paragraph;
} div.mw-parser-output h2::before {
content: "Teil "counter(Teil) " - "; counter-increment: Teil;
} div.mw-parser-output h3::before {
content: "§ "counter(Paragraph) " "; counter-increment: Paragraph;
}
/* Fügt Nummerierung im Dokument den Absätzen hinzu*/ div.mw-parser-output li.nonum::before {
display: none;
} div.mw-parser-output ol {
counter-reset: Absatz; 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(Absatz) ") ";
counter-increment: Absatz;
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 > li > ol {
padding-left: 0em;
} div.mw-parser-output ol ol > li {
margin-bottom: 0em; margin-left: 0.1em;
} div.mw-parser-output ol ol > li::before {
content: counter(Absatz) ". "; margin-left: -3em;
} div.mw-parser-output ol.letter ol > li {
text-indent: 0em; margin-left: 1em;
} div.mw-parser-output ol.letter ol > li::before {
content: "("counter(Absatz, upper-alpha) ") ";
width: 2em;
margin-left: -2em;
}