MediaWiki:Common.css

From We Are All Pokémon Trainers
Revision as of 03:56, 2 December 2015 by Tangent128 (talk | contribs) (add art gallery CSS)
Jump to navigation Jump to search

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 */


/* CSS enabling the Mon Box template */
.mon_box {
position:relative;
width: 154px; height:145px;
background: url('https://waapt.wiki.tropi.us/images/f/f4/Hexagon.png');
}
.mon_box .mon_icon {
position: absolute;
top: 50%;
left: 50%;
background: 50% 50% no-repeat;
}
.mon_box .mon_icon div {
position: absolute;
}
.mon_box .mon_name {
display:block;
position: absolute;
left: 0;
right: 0;
bottom: 8px;
font: 12px sans-serif;
text-align: center;
}
.mon_box .mon_name.male {
color: #0de;
}
.mon_box .mon_name.female {
color: #f6a;
}

/* hex tiling */
.hex_row {
margin: 0px;
}
.hex_row .mon_box {
display:inline-block;
background: url('https://waapt.wiki.tropi.us/images/7/74/HexagonLead.png');
}
.hex_row + .hex_row:nth-of-type(odd) .mon_box {
background: url('https://waapt.wiki.tropi.us/images/2/28/HexagonB.png');
}
.hex_row + .hex_row:nth-of-type(even) .mon_box {
background: url('https://waapt.wiki.tropi.us/images/f/f4/Hexagon.png');
}
.hex_row .mon_box:nth-of-type(odd) {
margin-bottom: 70px;
}
.hex_row .mon_box:nth-of-type(even) {
margin-top: 70px;
}
.hex_row .mon_box + .mon_box {
margin-left: -41.5px;
}
.hex_row + .hex_row {
margin-top: -80px;
}

/* CSS enabling the Mon Info templates */

table.mon_info {
    float:right; 
    width:30%; 
    margin-left:8pt; 
    margin-bottom: 14pt; 
}

table.mon_info .key {
    width: 35%;
    text-align: left;
    padding: 0 4px;
}

table.mon_info .value {
    width: 60%;
    text-align: right;
    padding: 0 4px;
}

table.mon_info .quotebox {
    font-family: "Book Antiqua", serif;
    text-align: right;
    padding-left: 4px;
    padding-right: 8px;
    background-color: #e0e0e0;
}

/* CSS for the art gallery templates */

.artNode img {
    max-width: 100%;
    height: auto;
}

/* experiment, trying to correct a small bork in search styling since the last backend update */

form#searchform input#searchInput { overflow: none; min-wdidth: 8em; }