MediaWiki:Common.css

From Foxhole Wiki
Jump to navigation Jump to search

CSS and Javascript changes must comply with the wiki design rules.


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: Clear the cache in Tools → Preferences
.mw-wiki-logo {
  background-size: contain;
}
/* CSS placed here will be applied to all skins */
/* This governs the sections on the Community portal */
.cpbox {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}

.cpbox #admins {
    box-sizing: border-box;
    width: calc(33% - 10px);
    margin: 5px;
    flex-grow: 1;
    min-width: 300px;
}

.cpbox #help {
    box-sizing: border-box;
    width: calc(67% - 10px);
    margin: 5px;
    flex-grow: 1;
}

/*WIKI TABLE*/
.wikitable {
    text-align: center;
}

/*Elements for panel template*/
.panel_tab_top {
    display:table;
    background:rgba(32,32,32,0.5); 
    border: 1px solid #808080;
    width:100%;
    border-radius: 3px 3px 0 0;
}

.panel_tab_bottom {
    display:table;
    background:rgba(32,32,32,0.5); 
    border: 1px solid #808080;
    width:100%;
    border-radius: 0 0 3px 3px;
}

.t-c {
    text-align:center;
}

.t-c-18 {
    text-align: center; 
    font-size:18px;
    color:#e2991c;
    font-weight:bold;
}

.t-c-16 {
    text-align: center;
    font-size:16px;
}

.t-c-14 {
    text-align: center; 
    font-size:14px;
    color:#e2991c;
}

.t-c-12 {
    text-align: center;
    font-size:12px;
    color:#e2991c;
}

/* CSS placed here will be applied to all skins */
/*FOXHOLE TABLE*/
.foxholetable {
    text-align: center;
    width:65%;
}

/*Elements for panel template*/
.panel_tab_top {
    display:table;
    background:rgba(32,32,32,0.5); 
    border: 1px solid #808080;
    width:100%;
    border-radius: 3px 3px 0 0;
}

.panel_tab_bottom {
    display:table;
    background:rgba(32,32,32,0.5); 
    border: 1px solid #808080;
    width:100%;
    border-radius: 0 0 3px 3px;
}

/* Template documentation styles */
/* If modifying these styles, be sure to update the mobile skin! */
.doc {
    margin: 0em auto 1em;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid #BDCAC3;
    border-radius: 1em;
    padding: 1em;
}

.doc-header {
    padding-bottom: 3px;
    border-bottom: 1px solid #BDCAC3;
    margin-bottom: 1ex;
}

.doc-footer {
    margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid #BDCAC3;
    border-radius: 1em;
    padding: 1em;
}

/* Classes permitting setting of alignment on desktop only or differently on desktop and mobile */
/* (See .mobileleft, .mobilecenter, .mobileright in MediaWiki:Mobile.css for the mobile equivalents */
.desktopleft {
    text-align: left;
}

.desktopcenter {
    text-align: center;
}

.desktopright {
    text-align: right;
}

/* Front page structure */
.fpbox {
    margin: 5px;
    padding: 5px;
    overflow: auto;
    width: calc(100% - 2px);
}

.fpbox.plain {
    background: transparent;
    border: none;
    box-shadow: none;
}

.fpbox .heading,
.fpbox .mainheading,
.fpbox .welcome {
    margin: 0 0 10px;
    padding: 0 0 5px;
    overflow: auto;
}

.fpbox .mainheading,
.fpbox .welcome {
    font-size: 150%;
    font-weight: bold;
}

.fpbox .heading {
    text-align: center;
    font-size: 132%;
}

.linkslabel {
    margin: 15px 5px 5px;
    padding: 0 0 5px;
}

/* Template:FP links styles */
.fplinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
    text-align: center;
}

.fplink-outer {
    padding: 5px;
    flex-basis: calc(25% - 10px);
    width: calc(25% - 15px);
    min-width: 115px;
    display: inline-block;
    vertical-align: middle;
}

.fplink-wide {
    flex-basis: calc(33% - 10px);
    width: calc(33% - 15px);
}

.fplink-fullwidth {
    flex-basis: 100%;
    width: calc(100% - 15px);
    font-weight: bold;
}

.fplink {
    padding: 0.5em;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: table;
}

.fplink-plain {
    background: transparent;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.fplink-inner {
    display: table-row;
}

.fplink a {
    display: table-cell;
    vertical-align: middle;
}

.fplink img {
    max-width: 150px;
    width: 100%;
    height: auto;
}
/* Auto-resize front page video to fit smaller columns */
.fpbox .embedvideowrap {
    width: 100%!important;
    max-width: 480px;
    margin: 0 auto;
}

.fpbox .embedvideowrap iframe {
    width: 100%!important;
}

/*******************
* Main page layout *
********************/

.fpcontainer #welcome {grid-area:welcome;}
.fpcontainer #about {grid-area:about;}
.fpcontainer #navigation {grid-area:navigation;}
.fpcontainer #update {grid-area:update;}
.fpcontainer #links {grid-area:links;}
.fpcontainer #fpimages {grid-area:fpimages;}

.fpcontainer {
  display:grid;
  grid-template-areas:"welcome" "about" "navigation" "update" "links" " fpimages";
  grid-template-columns:100%;
  gap:5px;
}

@media screen and (min-width:990px) {
  .fpcontainer {
    grid-template-areas:"welcome welcome" "about about" "navigation navigation" "update links" "fpimages fpimages";
    grid-template-columns:1fr 1fr;
  }
}

@media screen and (min-width:1350px) {
  .fpcontainer {
    grid-template-areas:"welcome welcome welcome" "about navigation update" "about navigation links" "fpimages fpimages fpimages";
    grid-template-columns:1fr 1fr 1fr;
  }
}

.fpbox { 
  width: calc(100% - 2px);
  box-sizing: border-box;
}
/***********************
* End main page layout *
************************/



/*******************
* Lore page layout *
********************/

.container #aboutlore {grid-area:aboutlore;}
.container #lorebutton {grid-area:lorebutton;}
.container #matt {grid-area:matt;}
.container #loremap {grid-area:loremap;}

.container {
  display:grid;
  grid-template-areas:"aboutlore" "lorebutton" "matt" "loremap";
  grid-template-columns:100%;
  gap:5px;
}

@media screen and (min-width:990px) {
  .container {
    grid-template-areas:"aboutlore aboutlore" "lorebutton lorebutton" "matt matt" "loremap loremap";
    grid-template-columns:1fr 1fr;
  }
}

@media screen and (min-width:1350px) {
  .container {
    grid-template-areas:"aboutlore lorebutton matt" "aboutlore lorebutton matt" "loremap loremap loremap";
    grid-template-columns:1fr 1fr 1fr;
  }
}

/***********************
* End Lore page layout *
************************/

/***********************
* Lore Map stuff *
************************/
.ext-datamaps-container-content .ext-datamaps-container-leaflet {
  color: #000;
  background-color: #000;
  font-weight:bold;
}
/***********************
* End of Lore Map stuff *
************************/