MediaWiki:Vector.css

From Wargroove Wiki
Jump to navigation Jump to search

Note: After publishing, 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 / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will affect users of the Vector skin */


/* Body Styling */
body {
    background: url("https://wargroove.com/wp-content/uploads/2017/02/wargroove-bg.png") no-repeat fixed center center / cover;
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
    font-family: sans-serif;
}

.mw-body {
  border: 1px solid #A7D7F9;
  margin-right: 15px;
  background-color: rgba(209, 230, 255, 0.67);
  min-height:500px;
  margin-bottom: 60px;
}

div#footer {
  background: rgba(0, 0, 0, 0.8) none repeat scroll 0% 0%;
  width: 100%;
  padding: 0px !important;
  margin-top: 20px !important;
  bottom: 0px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: #C2C8CF;
}

.mw-footer {
    background: rgba(0, 0, 0, 0.8) none repeat scroll 0% 0%;
    margin-left: 0;
    padding-left: 10.75em;
    padding-bottom: 43px;
    margin-bottom: 0;
}

.mw-footer li {
    color: lightgray;
}

.mw-footer a {
    color: #9fcbe0;
}

div#footer #footer-icons {
    margin-top: -18px;
}

div#mw-panel {
   border: 6px solid transparent;
   left: -12px;
   background-color: rgba(209, 230, 255, 0.67);
   padding-bottom: 15px;
   border-top-right-radius: 8px;
   border-bottom-right-radius: 8px;
   margin-top: 150px;
}

#p-logo {
   height: 0;
   margin-bottom: 0;
   position: absolute;
   margin-top: -150px;
}

#p-logo a {
   display:block;
}

div#footer a {
  color:white;
}

div#footer ul {
  padding-left: 190px;
  padding-right: 15px;
}

div#footer ul li {
  color:#C2C8CF;
}

.catlinks {
    border: 1px solid #84AEEC;
    background-color: rgba(199, 242, 254, 0.53);
}

#toc, .toc {
  background-color: rgba(255,255,255,0.58);
}

.mw-body h1, .mw-body h2 {
    font-family: 'Open Sans', sans-serif;
}

div.thumbinner {
   border: 1px solid #8DCAF0;
   background-color: rgba(255,255,255,0.58);
}

/* Mediawiki page tabs */
#mw-page-base {
  background:none;
}

div#mw-head div.vectorMenu h3, div.vectorTabs ul, div.vectorTabs li.selected, div.vectorTabs ul li, div.vectorTabs, div.vectorTabs span {
  background:none;
}

div.vectorTabs li a {
  color: #B7D2FF;
}

div.vectorTabs li.new a, div.vectorTabs li.new a:visited, div.vectorMenu h3 span {
  color: #99BFFF;
}

div.vectorTabs li.selected a, div.vectorTabs li.selected a:visited {
  color: #C6DBFF;
}

.vector-menu-tabs-legacy li {
    background-image: none;
}

.vector-menu-tabs-legacy ul {
    background-color: rgba(209,230,255,0.67);
}

ul.vector-menu-content-list {
    border-radius: 5px 0 0 0;
}

div#left-navigation ul.vector-menu-content-list {
    border-radius: 5px 5px 0 0;
}

.vector-menu-tabs-legacy .selected {
    background: none;
}

.vector-menu-tabs-legacy .new a, .vector-menu-tabs-legacy .new a:visited {
    color: #0645ad;
}

.vector-menu-dropdown {
    background: rgba(209,230,255,0.67);
    border-top-right-radius: 5px;
}

div.vectorMenu div.menu {
  background-color: rgba(30, 17, 102, 0.67);
}

div.vectorMenu div.menu a {
  color: #C6DBFF;
}

#p-personal a, #p-personal a.new, p-personal a:visited, #p-personal a.new:visited {
   color: #99BFFF;
}

#p-personal a.hover, p-personal a:focus {
   color: #C6DBFF;
   text-decoration:none;
}

/* Account Creation Page */
.mw-createacct-benefits-list {
   padding: 10px 10px 10px 60px;
   border-radius: 12px;
   background-color: rgba(255,255,255,0.58);
   border: 1px solid #8DCAF0;
}

.mw-number-text.icon-edits, .mw-number-text.icon-pages, .mw-number-text.icon-contributors {
   filter: brightness(0.7);
}

/* Social Media Links */
div.sociallinks {
   float: right;
   padding-top: 9px;
}

.sociallinks img {
   -webkit-filter: opacity(25%) brightness(0);  /* Chrome, Safari, Opera */
   filter: opacity(25%) brightness(0);
}

.sociallinks img:hover {
   -webkit-filter: opacity(100%) brightness(100%);  /* Chrome, Safari, Opera */
   filter: opacity(100%) brightness(100%);
}

body.page-Wargroove_Wiki div.sociallinks {
   display:none;
}

/* Preferences Pages*/

#preferences {
   background-color: rgba(209,248,255,0.67);
}

#preftoc li.selected a {
   background: rgba(209,248,255,0.67);
}

/* Main Page */

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

#main_menu {
   width:100%;
}

#main_menu th {
   width:25%;
}

#main_menu td {
   vertical-align: top;
}

#twitterframe {
    background-color: rgba(0, 141, 240, 0.15);
}

#twitterframe iframe {
    max-height: 854px;
}

body.page-Wargroove_Wiki .mw-body .firstHeading {
   display: none;
}

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

body.page-Wiki h1.firstHeading, body.page-Wiki #contentSub, body.page-Wiki #contentSub2 {
   display: none;
}

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

#mainbannerleft {
   text-align:center;
}

#mainbannerright {
   text-align:center;
}

#mainbannerright img {
   min-width: 360px;
   height: auto;
}

#mainbannerleft img {
   min-width: 325px;
   height: auto;
}

#mainlinks {
    width: 100%;
}

/* Navboxstyling */
#navbox {
   margin:auto;
   width:80%;
   border: 1px solid rgb(132, 174, 236);
   padding: 5px; 
   border-radius:11px;
   clear: both;
   margin-top: 15px;
}

/* Table Styling */
table.wikitable {
  background-color: transparent;
  border-collapse: separate;
  border: none;
}

table#overflow {
  display: block;
  overflow: auto;
}

table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {
   border: 1px solid #8DCAF0;
   padding: 0.2em;
   background-color: rgba(255, 255, 255, 0.58);
}

table.wikitable > tr > th, table.wikitable > * > tr > th {
   background-color: #008df0;
   text-align: center;
   border-color: #1664c5;
   box-shadow: 0px 1px rgba(0,0,0,0.3);
   color: white;
   text-shadow: 0px 2px #1d52a6;
}

table.wikitable > tr > th a, table.wikitable > * > tr > th a {
   color:white;
}

/* Infobox Styling */

#infoboxtable {
   max-width:400px;
   width:100%;
   background-color: #f4f6e9;
   float:right;
   margin-left: 30px;
}

#infoboxheader {
   font-family: WargrooveBody;
   background-color: #a47750;
   text-align:center;
   font-size: 48px;
   line-height: 1.1em;
   padding-top:5px;
   color: white;
   text-shadow: 0px 2px 0px rgba(0,0,0,0.5);
}

#infoboxheader img {
   vertical-align: text-bottom;
}

#infoboxheader a {
   color: white;
   font-weight: 600;
}

#infoboxsection {
   background-color:#a47750;
   vertical-align:top;
   padding-left:15px;
   padding-right:5px;
   width:105px;
   border-color:#007448;
   box-shadow: 0px 1px rgba(0,0,0,0.3);
   color: white;
   text-shadow: 0px 2px #00321f;
}

#infoboxsection a {
   color: white;
   font-weight: 600;
}

#infoboxsection a:hover, #infoboxsection a:focus {
   text-decoration:none;
}

#infoboxdetail {
   vertical-align:top;
   padding-left:3px;
   padding-right:6px;
}

#infoboxdetail p {
   margin:0px;
}

#infoboxfooter {
   width:100%;
   padding-top:5px;
}

#infoboxdetail ul {
   margin: 0em 0px 0px 0.9em;
}

#infoboxsep {
   text-align:center;
   background-color:#a47750;
   vertical-align:top;
   border-color:#007448;
   box-shadow: 0px 1px rgba(0,0,0,0.3);
   color: white;
   text-shadow: 0px 2px #00321f;
}

#infoboxtable img {
   max-width:100%;
   height:auto;
}

/* Map Infobox */
div#infobox_map_structure {
   background-color: #dfc686;
   position: relative;
   height: 30px;
   margin-top: 5px;
   margin-left: 5px;
   border-radius: 5px;
}

div#infobox_map_structure img {
   position: absolute;
   bottom: 0;
}

div#infobox_number {
   position: absolute;
   right: 0;
   bottom: 0;
   background-image: url(https://wargroovewiki.com/mediawiki/images/b/b0/Infobox_Number_Display.png);
   width: 38px;
   height: 24px;
   padding-bottom: 3px;
   padding-right: 3px;
   background-repeat: no-repeat;
   text-align: center;
   font-family: WargrooveBody;
   font-size: 22px;
   line-height: 22px;
}

/* Copyright Templates */
#c-fairuse {
   padding:10px;
   max-width:700px;
   margin: 0px auto;
   border: 1px solid #8DCAF0;
   background-color: rgba(255, 255, 255, 0.58);
}

#c-fairuse td {
   vertical-align:middle;
}

/* Alert Templates */

.alert {
   border: 3px solid rgb(68, 74, 73);
   border-radius: 0.5em;
   margin-left: auto;
   margin-right: auto;
   font-size: 14px;
   padding: 5px;
   margin-bottom: 15px;
   height: 80px;
   width: 50%;
   max-width:700px;
}

.alert span.header {
   font-size:22px;
}

.alert th {
   width: 100px;
}

.alert th img {
   text-align: center;
}

#stub {
   border-color:green;
   background-color: rgba(0, 128, 0, 0.05);
}

#construction {
   border-color:#97a50c;
   background-color: rgba(151, 165, 12, 0.05);
}

/* Talk Page Headers */
#talkheadertitle {
   background-color: #008df0;
   text-align: center;
   color: white;
   text-shadow: 0px 2px #1d52a6;
   font-size: 120%;
}

#talkheaderbody {
   width: 80%;
   margin: 0px auto 1em;
   border: 1px solid #8DCAF0;
   background-color: rgba(255, 255, 255, 0.58);
   color: rgb(0, 0, 0);
}

/* Unit Icon Template */

.uniticon {
    background-color: green;
    width: 20px;
    height: 20px;
    text-align: center;
    border-width: 3px;
    border-style: solid;
    border-color: #dfc686;
    padding-bottom: 4px;
    padding-left: 1px;
    padding-right: 3px;
    display:inline-block;
}

.uniticon img {
    max-width:22px;
    height:auto;
}

#effective {
    background-color: #2365ae;
}

#vulnerable {
    background-color: #e00031;
}

div.noautonum .tocnumber { display: none; }

/* Responsive Styling */

@media screen and (max-width: 1600px) {
    #mainbannerleft {
        display: none;
    }
    #mainbannermiddle {
        width: 60%;
    }
    #devblog {
        display: none;
    }
}

@media screen and (max-width: 1400px) {
    #menucontent {
        font-size:12px;
    }
}

@media screen and (max-width: 1150px) {
    th#sidebar, td#sidebar, td#mainbannerright {
        display: none;
    }
}

@media screen and (max-width: 700px) {
    .mw-body, #left-navigation {
        margin-left: 8px;
        margin-right: 8px;
    }
    div#mw-panel {
        display: none;
    }
    div#footer ul {
        padding-left: 15px;
    }
}