Difference between revisions of "MediaWiki:Common.css"

From GTAMods Wiki
Jump to navigation Jump to search
m (Reverted edits by Spaceeinstein (talk) to last revision by Seemann)
(oops, misclicked)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
 
/**
 
/**
  * Fix so <syntaxhighlight> tags and .css and .js pages get normal text size.
+
  * Lowercase usernames (only works in some places)
  * [[bugzilla:26204]]
+
*/
 +
.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;
 +
}
 +
/**
 +
* 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
 
  */
 
  */
div.mw-geshi div,
+
span.icon-align img {
div.mw-geshi div pre,
+
    vertical-align: text-top;
span.mw-geshi,
+
}
pre.source-css,
+
span.icon-align img[alt="Grand Theft Auto series"] {
pre.source-javascript {
+
     vertical-align: middle;
     font-size: 1.35em;
+
}
 
/**
 
/**
  * Fixing issue on Chrome
+
  * Template:OpCode
 
  */
 
  */
     font-family: monospace !important;
+
dl.opcode dl {
 +
    margin-bottom: 0;
 +
}
 +
dl.opcode dl dt {
 +
     font-weight: normal;
 
}
 
}
 
/**
 
/**
  * Temporary logo fix
+
  * Search results page fix
 
  */
 
  */
#p-logo > a {
+
.mw-search-results {
     background-image: url("http://media.gtanet.com/gtamodding/b/bc/Wiki.png") !important;
+
     float: none !important;
 
}
 
}
 
/**
 
/**
  * Lowercase usernames (only works in some places)
+
  * Search box fix
 +
*/
 +
div#simpleSearch #searchInput {
 +
    font-family: inherit;
 +
}
 +
/**
 +
* Syntaxhighlight preformatted text fix
 +
*/
 +
.mw-highlight > pre {
 +
    white-space: pre;
 +
    overflow-x: auto;
 +
}
 +
/**
 +
* SCM language III/VC definitions
 
  */
 
  */
.mw-userlink[href*="User:Spaceeinstein"] {
+
table.defines {
     text-transform: lowercase;
+
    border-spacing: 14px 0px;
 +
     margin: auto -12px 14px;
 
}
 
}
 
/**
 
/**
  * For [[Saves (GTA VC)/visual]]
+
  * Sanny Builder syntax highlight
 
  */
 
  */
.save_table td {
+
.sb-code {
     width: 3em;
+
     line-height: 1.3em !important;
     height: 3em;
+
}
     text-align: center;
+
/* 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;
 
}
 
}

Revision as of 10:25, 16 November 2016

/* 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;
}
/**
 * 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 {
    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 {
    line-height: 1.3em !important;
}
/* 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;
}