Difference between revisions of "MediaWiki:Common.css"
BrianFreud (talk | contribs) m |
|||
Line 13: | Line 13: | ||
/* Infobox template style */ | /* Infobox template style */ | ||
− | .infobox { | + | .ns-3000 .infobox { |
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
border-spacing: 3px; | border-spacing: 3px; | ||
Line 29: | Line 29: | ||
width: 235px; | width: 235px; | ||
} | } | ||
− | .infobox caption { | + | .ns-3000 .infobox caption { |
font-size: 125%; | font-size: 125%; | ||
font-weight: bold; | font-weight: bold; | ||
padding: 0.2em; | padding: 0.2em; | ||
} | } | ||
− | .infobox td, | + | .ns-3000 .infobox td, |
.infobox th { | .infobox th { | ||
vertical-align: top; | vertical-align: top; | ||
Line 43: | Line 43: | ||
/* Overrides the border otherwise drawn on all tables. */ | /* Overrides the border otherwise drawn on all tables. */ | ||
− | table.wikitable { | + | .ns-3000 table.wikitable { |
border: 0; | border: 0; | ||
} | } | ||
/* Centers an image in an infobox. */ | /* Centers an image in an infobox. */ | ||
− | .imagecell { | + | .ns-3000 .imagecell { |
padding: 1em 0!important; | padding: 1em 0!important; | ||
text-align: center!important; | text-align: center!important; | ||
Line 54: | Line 54: | ||
/* Formats left-column text in infoboxes. */ | /* Formats left-column text in infoboxes. */ | ||
− | .infobox tr td:first-of-type { | + | .ns-3000 .infobox tr td:first-of-type { |
font-weight: 600; | font-weight: 600; | ||
padding-left: 5px; | padding-left: 5px; | ||
Line 61: | Line 61: | ||
/* Hides undesirable borders on the top-left cell of a table containing numberic data. */ | /* Hides undesirable borders on the top-left cell of a table containing numberic data. */ | ||
− | .datatable tr:first-of-type td:first-of-type | + | .ns-3000 .datatable tr:first-of-type td:first-of-type |
{ | { | ||
border-left: 0; | border-left: 0; | ||
Line 68: | Line 68: | ||
/* Centers text in table cells (generally for tables containing numeric data). */ | /* Centers text in table cells (generally for tables containing numeric data). */ | ||
− | .datatable tr td:not(:first-of-type) { | + | .ns-3000 .datatable tr td:not(:first-of-type) { |
text-align: center; | text-align: center; | ||
} | } | ||
/* Adds coloring to the top cell in infoboxes. */ | /* Adds coloring to the top cell in infoboxes. */ | ||
− | .titlecell { | + | .ns-3000 .titlecell { |
background-color: #555; | background-color: #555; | ||
color: white; | color: white; | ||
Line 80: | Line 80: | ||
/* Elemental cell coloring */ | /* Elemental cell coloring */ | ||
− | .cold { | + | .ns-3000 .cold { |
background-color: #2dbffd; | background-color: #2dbffd; | ||
} | } | ||
− | .energy { | + | .ns-3000 .energy { |
background-color: #d7d; | background-color: #d7d; | ||
} | } | ||
− | .fire { | + | .ns-3000 .fire { |
background-color: #db7; | background-color: #db7; | ||
} | } | ||
− | .physical { | + | .ns-3000 .physical { |
background-color: #ddd; | background-color: #ddd; | ||
} | } | ||
− | .poison { | + | .ns-3000 .poison { |
background-color: #7d7; | background-color: #7d7; | ||
} | } | ||
− | a.new | + | .ns-3000 a.new |
{ | { | ||
color: rgb(221, 68, 68); | color: rgb(221, 68, 68); | ||
} | } |
Revision as of 16:53, 22 May 2016
/* CSS placed here will be applied to all skins */
/* Global css, sets the background and text color for the entire wiki. */
.mw-body {
background-color: rgba(244,244,244,0.6) ;
color: black;
}
/* Force the editor to be monospaced. */
textarea {
font-family: monospace;
}
/* Infobox template style */
.ns-3000 .infobox {
border: 1px solid #aaa;
border-spacing: 3px;
background-color: #dddddd;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
width: 235px;
}
.ns-3000 .infobox caption {
font-size: 125%;
font-weight: bold;
padding: 0.2em;
}
.ns-3000 .infobox td,
.infobox th {
vertical-align: top;
/* @noflip */
text-align: left;
padding-top: 5px;
}
/* Overrides the border otherwise drawn on all tables. */
.ns-3000 table.wikitable {
border: 0;
}
/* Centers an image in an infobox. */
.ns-3000 .imagecell {
padding: 1em 0!important;
text-align: center!important;
}
/* Formats left-column text in infoboxes. */
.ns-3000 .infobox tr td:first-of-type {
font-weight: 600;
padding-left: 5px;
padding-right: 8px;
}
/* Hides undesirable borders on the top-left cell of a table containing numberic data. */
.ns-3000 .datatable tr:first-of-type td:first-of-type
{
border-left: 0;
border-top: 0;
}
/* Centers text in table cells (generally for tables containing numeric data). */
.ns-3000 .datatable tr td:not(:first-of-type) {
text-align: center;
}
/* Adds coloring to the top cell in infoboxes. */
.ns-3000 .titlecell {
background-color: #555;
color: white;
padding: 2px 8px;
}
/* Elemental cell coloring */
.ns-3000 .cold {
background-color: #2dbffd;
}
.ns-3000 .energy {
background-color: #d7d;
}
.ns-3000 .fire {
background-color: #db7;
}
.ns-3000 .physical {
background-color: #ddd;
}
.ns-3000 .poison {
background-color: #7d7;
}
.ns-3000 a.new
{
color: rgb(221, 68, 68);
}