Difference between revisions of "MediaWiki:Common.css"

m
m
Line 21: Line 21:
 
/* Infobox template style */
 
/* Infobox template style */
 
.ns-3000, .centerinfobox {
 
.ns-3000, .centerinfobox {
  left: -35%;
+
    left: -35%;
 
     position: relative;
 
     position: relative;
 
}
 
}
 
 
.ns-3000, .leftinfobox {
 
.ns-3000, .leftinfobox {
 
     float: left!important;
 
     float: left!important;
 
}
 
}
 
 
.ns-3000, .infobox {
 
.ns-3000, .infobox {
 
     border: 1px solid #aaa;
 
     border: 1px solid #aaa;
Line 40: Line 38:
 
     float: right;
 
     float: right;
 
     /* @noflip */
 
     /* @noflip */
    clear: right;
 
 
     font-size: 88%;
 
     font-size: 88%;
 
     line-height: 1.5em;
 
     line-height: 1.5em;

Revision as of 14:28, 21 July 2016

/* CSS placed here will be applied to all skins */

/* Global css, sets the background and text color for the entire wiki. */

/*CSS applied to specific namespaces (titles) via namespace ID.  Current Namespace ID's are :

ns-3000  Ultima Online
ns-3002  Shards Online
ns-3004  Shroud of the Avatar 
*/
a:link {
color: #232323;
}
.mw-body h1 {
    font-weight: 900;
}
.mw-body h2 {
    margin-top: 0;
}

/* Infobox template style */
.ns-3000, .centerinfobox {
    left: -35%;
    position: relative;
}
.ns-3000, .leftinfobox {
    float: left!important;
}
.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 */
    font-size: 88%;
    line-height: 1.5em;
    max-width: 30%;
    min-width: 27%;
}
.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);
}

/* Hide page titles; UO makes for super long titles, and allows a sort of work around to ampersands in item names. */
.ns-3000, .firstHeading {
    display: none;
}

/* Don't show edit links next to items in hue page item lists. */
.UOhuepage-itemlist>ul>li>.mw-whatlinkshere-tools {
    display: none;
}

/* Center the text in a table. */
table.centeredtext td {
  text-align: center;
  vertical-align: middle;
}