MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus eCo Wiki
Zeile 5: Zeile 5:
 
.toc h2:before { content: "" !important;}
 
.toc h2:before { content: "" !important;}
  
#toc:after {counter-reset: h2}
+
body {counter-reset: h2}
 
h2 {counter-reset: h3}
 
h2 {counter-reset: h3}
 
h3 {counter-reset: h4}
 
h3 {counter-reset: h4}

Version vom 21. November 2018, 10:15 Uhr

/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
li:not(:last-child) { margin-bottom: 10px; }
li li { margin-left: 10px; }

.toc h2:before { content: "" !important;}

body {counter-reset: h2}
h2 {counter-reset: h3}
h3 {counter-reset: h4}
h4 {counter-reset: h5}
h5 {counter-reset: h6}

.mw-parser-output h2:before {counter-increment: h2; content: counter(h2) ". "}
.mw-parser-output h3:before {counter-increment: h3; content: counter(h2) "." counter(h3) ". "}
.mw-parser-output h4:before {counter-increment: h4; content: counter(h2) "." counter(h3) "." counter(h4) ". "}
.mw-parser-output h5:before {counter-increment: h5; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "}
.mw-parser-output h6:before {counter-increment: h6; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "}