MediaWiki:Common.css
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 all heading counters at the start of the page */
body {
counter-reset: h2counter;
}
h2 {
counter-reset: h3counter;
}
h3 {
counter-reset: h4counter;
}
h4 {
counter-reset: h5counter;
}
h5 {
counter-reset: h6counter;
}
/* Add numbering before headings */
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) " ";
}
/* Optional: style numbers */
h2::before, h3::before, h4::before, h5::before, h6::before {
color: #555;
margin-right: 0.3em;
}