MediaWiki:Common.css

From Wiki RB4
Revision as of 07:23, 19 October 2025 by UweHeuer (talk | contribs) (Undo revision 11318 by UweHeuer (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* Reset counters only for page content, not TOC */
#mw-content-text {
  counter-reset: h2counter;
}

h2 { counter-reset: h3counter; }
h3 { counter-reset: h4counter; }
h4 { counter-reset: h5counter; }
h5 { counter-reset: h6counter; }

h2::before { counter-increment: h2counter; content: counter(h2counter) ". "; }
h3::before { counter-increment: h3counter; content: counter(h2counter) "." counter(h3counter) " "; }
h4::before { counter-increment: h4counter; content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) " "; }
h5::before { counter-increment: h5counter; content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) "." counter(h5counter) " "; }
h6::before { counter-increment: h6counter; content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) "." counter(h5counter) "." counter(h6counter) " "; }

h2::before, h3::before, h4::before, h5::before, h6::before { color:#555; margin-right:0.3em; }