MediaWiki:Common.css
From Civilization Modding Wiki
Jump to navigationJump 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 */
/** Collapsible tables *********************************************************
*
* Description: Allows tables to be collapsed, showing only the header. See
* http://www.mediawiki.org/wiki/Manual:Collapsible_tables.
* Maintainers: [[en:User:R. Koot]]
*/
table.collapsed tr.collapsible {
display: none;
}
.collapseButton { /* 'show'/'hide' buttons created dynamically by the */
float: right; /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
font-weight: normal; /* are styled here so they can be customised. */
text-align: right;
width: auto;
}
/* Webkit Fix */
code, pre, tt, samp {
font-family: Consolas, fixed-width, monospace;
font-size:100%;
}
/* Classes to limit the table of contents' depth */
.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;
}
/* Pseudo-header to not be included in the TOC */
.pseudo-h4 { font-size: 116%; font-weight:bold; }
/* Civ5 API code listings (for code samples with line numbers) */
.civ5-listing td.code { vertical-align:center; background-color:#F0F0F0; width:100%; padding-left:6px; border-top:0px solid white; }
.civ5-listing td.line { text-align:right; background-color:#E0E0E0; padding-left:6px; padding-right:6px; border-top:0px solid white; }
.civ5-listing pre { background-color:transparent; padding:0; margin:0; margin-left:6px; border:0px solid white }
.civ5-listing code { background-color:transparent; }
/* Civ5 API Labels */
.civ5-label { border:1px solid #c0c0c0; border-radius:2px; background-color:#f0f0f0; padding:0px; padding-left:4px; padding-right:4px; margin-right:4px; margin-left:2px; }
/* Civ5 API Examples (to add pre-like borders around syntaxhighlight) */
.civ5-example { background-color:#F0F0F0; border:1px dashed #2F6FAB; padding:6px; padding-top:8px; padding-bottom:8px; margin:0px; margin-bottom:6px; clear:both; }