MediaWiki:Common.css

From The Witch of Fern Island 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.
/* Unsure about proper format to import this file "MediaWiki:Extra.css */

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

/* Custom font */
@font-face {
    font-family: 'Nunito';
}

/* Logo */
.mw-wiki-logo {
  background-image: url(/images/e/e6/Site-logo.png);
  -webkit-filter: drop-shadow(5px 5px 5px #222);
  filter: drop-shadow(5px 5px 5px #222);
}

/* Background */
body {
	background: url(/images/8/80/Site-background.jpg) no-repeat center center fixed;
	background-size: cover;
}

/* Content theming */
.mw-body {
    background-color: rgba(234,241,181,0.9);
    border: 2px solid #62BA49;
    border-radius: 2px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: Nunito,Arial,sans-serif !important;
}
#mw-page-base {
  background-color: transparent;
  background-image: none;
}

/* Left portal theming */
#mw-panel .portal {
    margin-bottom: 6px;
    padding: none;
    border-radius: 2px;
    background-color: rgba(234,241,181,0.9);
    font-family: Nunito,Arial,sans-serif;
    font-size: 17px;
}
.vector-menu-portal .vector-menu-heading {
  background-image: none;
  font-weight: bold;
  margin: 0px;
  padding: 6px;
  border-bottom: 4px double #62BA49;
}

/* Top navigation theming */
.vector-menu-tabs,
.vector-menu-tabs a,
#mw-head .vector-menu-dropdown h3 {
  background-image: none;
}
#mw-head-base {
	border: none;
}
.vectorTabs,
.vectorTabs li,
.vectorTabs li.selected,
.vectorTabs li span,
.vectorTabs ul,
#mw-head .vectorMenu #p-cactions-label {
	background: none;
}
#mw-head .vectorTabs li a,
#mw-head .vectorTabs li.selected a,
#mw-head .vectorMenu #p-cactions-label span {
	color: #ffffff;
	font-weight: 700;
	text-transform: uppercase;
	text-shadow: 0 0 8px #000;
}

/* Footer theming */
#footer-places {
	display: none;
}
#footer-info li,
#footer-info li a {
    color: #FFF;
    text-shadow: 2px 2px #000;
}

/* Main page layout */
#fptweets {
  min-height:calc(325px + 2.3em);
}

#fp-3column.fp-container {
    display: grid;
    grid-template-areas: "a" "b" "c" "d";
    grid-template-columns: 100%;
}
@media screen and (min-width:990px) {
    #fp-3column.fp-container {
        grid-template-areas: "a b" "c b" "c d";
        grid-template-columns: 50% 50%;
    }
}
@media screen and (min-width:1350px) {
    #fp-3column.fp-container {
        grid-template-areas: "a b c" "d b c";
        grid-template-columns: 33.3% 33.3% 33.3%;
    }
}

#fp-1 {
    grid-area: a;
}

#fp-2 {
    grid-area: b;
}

#fp-3 {
    grid-area: c;
}

#fp-4 {
    grid-area: d;
}

/* Main page structure */
.fpbox {
    margin: 5px;
    padding: 5px;
    overflow: auto;
    width: calc(100% - 2px);
    font-family: Nunito,Arial,sans-serif;
}
.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 .heading {
	padding: 5px;
    background-color: #c9db47;
    font-size: 132%;
    font-weight: bold;
    border-bottom: 4px double #62BA49;
    border-radius: 5px 5px 0px 0px;
}
.fpbox .mainheading,
.fpbox .welcome {
    font-size: 150%;
    font-weight: bold;
}

.linkslabel {
    margin: 15px 5px 5px;
    padding: 0 0 5px;
}
.linkbox div.gallerytext {
word-wrap: inherit;
}

/* 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;
    background-color: #c9db47;
    font-size: 17px;
    border-radius: 5px;
}
.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;
}

/* Multi-column box support */
.fp-container main .columns .leftcol,
.fp-container .columns .rightcol {
    width: 100%;
    margin: 0;
    padding: 0;
}
@media (min-width: 990px) {
    .fp-container .columns .leftcol {
        float: left;
        width: 50%;
    }

    .fp-container .columns .rightcol {
        float: right;
        width: 50%;
    }
}
.fp-section {
    display: flex;
    flex-wrap: wrap;
}

/* Infobox general theming */
.portable-infobox {
    overflow: hidden;
    padding: 0;
    margin-right: 7px;
    background: #c9db47;
    border: none;
    border-radius: 5px;
}
.portable-infobox .pi-navigation {
    text-align: center;
}

/* Infobox titles and headers */
.portable-infobox .pi-title {
    font-weight: bold;
    font-size: large;
    line-height: 15px;
    text-align: center;
    padding: 6px 3px;
    border-bottom: 4px double #62BA49;
    background: #c9db47;
}
.portable-infobox .pi-header {
    font-size: small;
    line-height: 10px;
    text-align: center;
    padding: 4px 0;
    background: #c9db47;
}

/* Infobox images */
.portable-infobox .pi-image-collection-tabs {
    text-align: center;
}
.portable-infobox ul.pi-image-collection-tabs li {
    background: transparent;
    font-weight: normal;
    border: 1px solid #62BA49;
    margin-right: 0;
}
.portable-infobox ul.pi-image-collection-tabs li.current {
    background-color: #62BA49 !important;
}
.portable-infobox ul.pi-image-collection-tabs li.pi-item-spacing {
    padding: 2px 4px 1px;
}

/* Article-table and wikitable formatting */
 .wikitable, .WikiaTable, .article-table, .wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td {
	border: 1px solid #62BA49;
}
.wikitable th, .WikiaTable th, .article-table th {
    background-color: #c9db47 !important;
}
.wikitable td, .WikiaTable td, .article-table td {
     background: rgba(234,241,181,0.9);
     margin: 1px;
}
.table, .wikitable, .article-table {
  display: inline-table;
  overflow-x: auto;
  white-space: normal;
}
.wikitable, .article-table {
	border-collapse: collapse;
}
.wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td,
.wikitable th, .article-table th, .wikitable > tr > th, .wikitable > * > tr > th {
  padding: .2em .4em;
}
.article-table td {
  padding: 6px 12px;
}

/* No numbers on TOC */
.notocnum .tocnumber { display: none; }
/*  */
.Thumbscreen {
	border-style:solid;
	border-color:#a97b36;
	border-width:12px;
	background:#ffe7b6;
	float:right;
	margin-left:50px;
	overflow: auto;
}
@media (max-width: 600px) {
   .Thumbscreen {
	border-style:solid;
	border-color:#a97b36;
	border-width:12px;
	background:#ffe7b6;
	float:none;
	margin-left:50px;
	overflow: auto;
}
}

/* Tabs */
.tabbar {
	overflow: hidden;
	border:1px solid #CCCCCC;
	background-color: #33CC33;
}
.tabbar span {
	background-color: inherit;
	float:left;
	border:none;
	cursor:pointer;
	padding:14px 16px;
	transition: 0.3s;
}

.tabbar span:hover {
	background-color:#66CC66;
}

.tabbar span.active {
	background-color: #CC6666;
}
.tabcontent {
	display:none;
	padding:6px 12px;
	border:1px solid #DDDDDD;
}