Ordnung.css: Unterschied zwischen den Versionen
(Die Seite wurde neu angelegt: „@charset "utf-8"; →Styles for Satzung (ovgu.de): body { counter-reset: teil; } h1 { counter-reset: para; } h2::before { content: "Teil "counter(…“) |
|||
(20 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | + | /* Fügt Nummerierung zum Inhaltsverzeichnis hinzu*/ | |
− | /* | + | div.toc { |
+ | counter-reset: toc-Teil; | ||
+ | } | ||
+ | div.toctitle { | ||
+ | counter-reset: toc-Paragraph; | ||
+ | } | ||
+ | div.toc ul li.toclevel-1 span.toctext:before { | ||
+ | content: "Teil "counter(toc-Teil) " - "; | ||
+ | counter-increment: toc-Teil; | ||
+ | } | ||
+ | div.toc ul li.toclevel-2 span.toctext:before { | ||
+ | content: "§ "counter(toc-Paragraph) " "; | ||
+ | counter-increment: toc-Paragraph; | ||
+ | } | ||
+ | |||
+ | /* Erlaub durch einen container der Klasse "no-teil" einen Inhalt nur mit Paragraphen*/ | ||
+ | .no-teil div.toc { | ||
+ | counter-reset: revert; | ||
+ | } | ||
+ | .no-teil div.toc ul li.toclevel-1 span.toctext:before { | ||
+ | content: "§ "counter(toc-Paragraph) " "; | ||
+ | counter-increment: toc-Paragraph; | ||
+ | } | ||
+ | .no-teil div.toc ul li.toclevel-2 span.toctext:before { | ||
+ | content: revert; | ||
+ | counter-increment: revert; | ||
+ | } | ||
+ | |||
+ | /* Erlaub durch einen container der Klasse "no-start-teil-x" den n-ten Top-Level-Eintrag des Inhaltsverzeichnisses mit Paragraphen zu bezeichnen*/ | ||
+ | .no-start-teil-1 div.toc ul li.toclevel-1:nth-child(1) span.toctext:before, | ||
+ | .no-start-teil-2 div.toc ul li.toclevel-1:nth-child(2) span.toctext:before, | ||
+ | .no-start-teil-3 div.toc ul li.toclevel-1:nth-child(3) span.toctext:before, | ||
+ | .no-start-teil-4 div.toc ul li.toclevel-1:nth-child(4) span.toctext:before, | ||
+ | .no-start-teil-5 div.toc ul li.toclevel-1:nth-child(5) span.toctext:before, | ||
+ | .no-start-teil-6 div.toc ul li.toclevel-1:nth-child(6) span.toctext:before, | ||
+ | .no-start-teil-7 div.toc ul li.toclevel-1:nth-child(7) span.toctext:before, | ||
+ | .no-start-teil-8 div.toc ul li.toclevel-1:nth-child(8) span.toctext:before, | ||
+ | .no-start-teil-9 div.toc ul li.toclevel-1:nth-child(9) span.toctext:before, | ||
+ | .no-start-teil-10 div.toc ul li.toclevel-1:nth-child(10) span.toctext:before { | ||
+ | content: "§ "counter(toc-Paragraph) " "; | ||
+ | counter-increment: toc-Paragraph; | ||
+ | } | ||
+ | |||
+ | /* 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 { | body { | ||
− | + | counter-reset: Teil; | |
} | } | ||
h1 { | h1 { | ||
− | + | counter-reset: Paragraph; | |
} | } | ||
− | h2::before { | + | div.mw-parser-output h2::before { |
− | content: "Teil "counter( | + | content: "Teil "counter(Teil) " - "; |
− | counter-increment: | + | counter-increment: Teil; |
} | } | ||
− | h3::before { | + | div.mw-parser-output h3::before { |
− | content: "§ "counter( | + | content: "§ "counter(Paragraph) " "; |
− | counter-increment: | + | counter-increment: Paragraph; |
} | } | ||
− | + | /* Fügt Nummerierung im Dokument den Absätzen hinzu*/ | |
+ | div.mw-parser-output li.nonum::before { | ||
display: none; | display: none; | ||
} | } | ||
− | ol { | + | div.mw-parser-output ol { |
− | counter-reset: | + | counter-reset: Absatz; |
margin-left: 0; | margin-left: 0; | ||
padding-left: 0; | padding-left: 0; | ||
} | } | ||
− | ol li { | + | div.mw-parser-output ol.noreset { |
+ | counter-reset: revert; | ||
+ | } | ||
+ | div.mw-parser-output ol > li { | ||
display: block; | display: block; | ||
margin-bottom: .5em; | margin-bottom: .5em; | ||
margin-left: 2em; | margin-left: 2em; | ||
} | } | ||
− | 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; | ||
} | } | ||
− | ol ol { | + | div.mw-parser-output ol ol { |
margin-left: 0.95em; | margin-left: 0.95em; | ||
padding-left: 1.95em; | padding-left: 1.95em; | ||
text-indent: 1em; | text-indent: 1em; | ||
} | } | ||
− | ol ol li { | + | div.mw-parser-output ol > li > ol, |
+ | div.mw-parser-output ul > li > ol { | ||
+ | padding-left: 0em; | ||
+ | } | ||
+ | div.mw-parser-output ol ol > li { | ||
margin-bottom: 0em; | margin-bottom: 0em; | ||
margin-left: 0.1em; | margin-left: 0.1em; | ||
} | } | ||
− | 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, | ||
+ | div.mw-parser-output ol.letter.noreset { | ||
+ | counter-reset: Absatz-Letter; | ||
+ | } | ||
+ | div.mw-parser-output ol.letter ol { | ||
+ | counter-reset: revert; | ||
+ | } | ||
+ | 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-Letter, upper-alpha) ") "; | ||
+ | counter-increment: Absatz-Letter; | ||
+ | width: 2em; | ||
+ | margin-left: -2em; | ||
} | } |
Aktuelle Version vom 27. September 2023, 11:03 Uhr
/* Fügt Nummerierung zum Inhaltsverzeichnis hinzu*/ div.toc {
counter-reset: toc-Teil;
} div.toctitle {
counter-reset: toc-Paragraph;
} div.toc ul li.toclevel-1 span.toctext:before {
content: "Teil "counter(toc-Teil) " - "; counter-increment: toc-Teil;
} div.toc ul li.toclevel-2 span.toctext:before {
content: "§ "counter(toc-Paragraph) " "; counter-increment: toc-Paragraph;
}
/* Erlaub durch einen container der Klasse "no-teil" einen Inhalt nur mit Paragraphen*/ .no-teil div.toc {
counter-reset: revert;
} .no-teil div.toc ul li.toclevel-1 span.toctext:before {
content: "§ "counter(toc-Paragraph) " "; counter-increment: toc-Paragraph;
} .no-teil div.toc ul li.toclevel-2 span.toctext:before {
content: revert; counter-increment: revert;
}
/* Erlaub durch einen container der Klasse "no-start-teil-x" den n-ten Top-Level-Eintrag des Inhaltsverzeichnisses mit Paragraphen zu bezeichnen*/ .no-start-teil-1 div.toc ul li.toclevel-1:nth-child(1) span.toctext:before, .no-start-teil-2 div.toc ul li.toclevel-1:nth-child(2) span.toctext:before, .no-start-teil-3 div.toc ul li.toclevel-1:nth-child(3) span.toctext:before, .no-start-teil-4 div.toc ul li.toclevel-1:nth-child(4) span.toctext:before, .no-start-teil-5 div.toc ul li.toclevel-1:nth-child(5) span.toctext:before, .no-start-teil-6 div.toc ul li.toclevel-1:nth-child(6) span.toctext:before, .no-start-teil-7 div.toc ul li.toclevel-1:nth-child(7) span.toctext:before, .no-start-teil-8 div.toc ul li.toclevel-1:nth-child(8) span.toctext:before, .no-start-teil-9 div.toc ul li.toclevel-1:nth-child(9) span.toctext:before, .no-start-teil-10 div.toc ul li.toclevel-1:nth-child(10) span.toctext:before {
content: "§ "counter(toc-Paragraph) " "; counter-increment: toc-Paragraph;
}
/* 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, div.mw-parser-output ul > 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, div.mw-parser-output ol.letter.noreset {
counter-reset: Absatz-Letter;
} div.mw-parser-output ol.letter ol {
counter-reset: revert;
} 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-Letter, upper-alpha) ") "; counter-increment: Absatz-Letter; width: 2em; margin-left: -2em;
}