MediaWiki:Common.css

From neicext
Jump to navigation Jump to search

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 */

/**
 * Allow limiting of which header levels are shown in a TOC;
 * <div class="toclimit-3">, for instance, will limit to
 * showing ==headings== and ===headings=== but no further.
 * Used in [[Template:TOC]]
 */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
	display: none;
}

/* Formal paragraphs */
div.formal { padding: 0; border: dashed thin #999999; }
div.formal div.title { margin: 0; padding: 0.5mm 4mm; font-weight: bold; }
div.formal div.contents { margin: 0; padding: 0.5mm 4mm; }
div.formal-notice div.title:before { padding-right: 0.5em; content: url(/w/int/img_auth.php/6/6d/Gnome-status-important-16x16.png); }
div.formal-note div.title:before { padding-right: 0.5em; content: url(/w/int/img_auth.php/6/6d/Gnome-status-important-16x16.png); }
div.formal-warning div.title:before { padding-right: 0.5em; content: url(/w/int/img_auth.php/3/3d/Nuvola-status-dialog-warning-16x16.png); }
div.formal-info div.title:before { padding-right: 0.5em; content: url(/w/int/img_auth.php/8/81/Nuvola-status-dialog-information-16x16.png); }

div.formal-code, div.formal-code pre { border: none; margin: 0; padding: 0; background-color: none; }
div.formal-code div.title { background-color: #2f6fab; color: white; }
div.formal-code div.contents { background-color: #f6f6f6; border: dashed thin #2f6fab; border-top: none; padding: 2mm 4mm; }