MediaWiki:Common.css

From Wiki RB4
Revision as of 07:13, 19 October 2025 by UweHeuer (talk | contribs) (Created page with "→‎CSS placed here will be applied to all skins: body { counter-reset: h2counter; } h2 { counter-reset: h3counter; } h3 { counter-reset: h4counter; } 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) " "; }...")
(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 */
body {
  counter-reset: h2counter;
}

h2 { counter-reset: h3counter; }
h3 { counter-reset: h4counter; }

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) " ";
}

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