MediaWiki:Common.css
Revision as of 16:55, 23 May 2017 by Spaceeinstein (talk | contribs)
Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* CSS placed here will be applied to all skins */
/**
* Lowercase usernames (only works in some places)
*/
.mw-userlink[href*="Spaceeinstein"] {
text-transform: lowercase;
}
/**
* Table column alignment
*/
table.center-col-1 td:first-child,
table.center-col-2 td:first-child + td,
table.center-col-3 td:first-child + td + td,
table.center-col-4 td:first-child + td + td + td {
text-align: center;
}
table.left-col-1 td:first-child,
table.left-col-2 td:first-child + td,
table.left-col-3 td:first-child + td + td,
table.left-col-4 td:first-child + td + td + td {
text-align: left;
}
table.nowrap-col-1 td:first-child,
table.nowrap-col-2 td:first-child + td,
table.nowrap-col-3 td:first-child + td + td,
table.nowrap-col-4 td:first-child + td + td + td {
white-space: nowrap;
}
/**
* GXT character map
*/
table.charmap {
text-align: center;
}
table.charmap td, table.charmap th {
width: 2em;
height: 2em;
}
table.charmap td {
font-family: monospace;
font-size: 150%;
background-color: #f9f9f9;
border: 1px solid #ddd;
}
table.charmap.jp td {
font-family: Meiryo, monospace;
font-size: 120%;
}
/**
* Template:Icon
*/
span.icon-align img {
vertical-align: text-top;
}
span.icon-align img[alt="Grand Theft Auto series"] {
vertical-align: middle;
}
/**
* Template:OpCode
*/
dl.opcode dl {
margin-bottom: 0;
}
dl.opcode dl dt {
font-weight: normal;
}
/**
* Search results page fix
*/
.mw-search-results {
float: none !important;
}
/**
* Search box fix
*/
div#simpleSearch #searchInput {
font-family: inherit;
}
/**
* Syntaxhighlight preformatted text fix
*/
.mw-highlight > pre, .sb-code {
white-space: pre;
overflow-x: auto;
}
/**
* SCM language III/VC definitions
*/
table.defines {
border-spacing: 14px 0px;
margin: auto -12px 14px;
}
/**
* Sanny Builder syntax highlight
*/
.sb-code {
font-family: Courier New, monospace;
}
/* links */
.sb-code > a, .sb-code > a:visited {
color: black;
}
/* comments */
.sb-code .c1 {
color: navy;
font-style: italic;
}
/* labels */
.sb-code .nl {
color: green;
font-weight: bold;
}
/* variables */
.sb-code .nv {
color: blue;
}
/* keywords */
.sb-code .k {
font-weight: bold;
}
/* numbers */
.sb-code .m {
color: maroon;
}
/* strings */
.sb-code .s1, .sb-code .s2 {
color: red;
}
/* models */
.sb-code .nt {
color: maroon;
font-weight: bold;
}
/* directives */
.sb-code .no {
color: green;
}
/**
* Suppress line breaks
*/
.nowraplinks a {
white-space: nowrap;
}
/**
* Menu
*/
.menu tr:target {
background-color: lightblue;
}