MediaWiki:Common.css

From Chivalry Medieval Warfare 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.
/* Logo */
.mw-wiki-logo {
  background-image: url(/images/e/e6/Site-logo.png);
}

/* Centers logo */
#p-logo {
  width: 100%;
  height: var(--main-layout-logo-height);
  position: absolute;
  margin-top: -1em;
}
#p-logo a {
  width: 636px;
  height: 150px;
  margin: 0 auto;
}

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

/* Content theming */
#content,
#mw-head {
  margin-top: 11.14em;
  border-radius: 5px;
  font-family: Rubik,Arial,sans-serif;
}

#mw-panel {
	padding-left: 0;
	margin-top: -12.5em;
}

.mw-body,
#mw-head-base,
#mw-data-after-content,
.mw-footer {
 margin-left: 12em;
 margin-right: 2em;
}

/* Top border for contet */
div#content {
	border-image-slice: 305 156 0 156;
	border-image-width: 152.5px 78px 0 78px;
	border-image-outset: 20px 15px 0 15px;
	border-image-repeat: stretch;
    border-image-source: url(https://chivalry.wiki.gg/images/f/fd/Border_frame.png) /*[[File:Border frame.png]]*/; 
    box-shadow: 25px 20px 16px #0009, -20px 20px 17px #0009;
    min-height: 600px;
    position: relative;
}

div#content::before {
	content: '';
	display: block;
	position: absolute;
	background-image: url('https://chivalry.wiki.gg/images/3/31/Border_center.png');
	--border-center-width: 750px;
    --border-center-left-margin: 1.5em;
	width: var(--border-center-width);
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    left: 50%;
    top: -1.1em;
    margin-left: calc((var(--border-center-width) / -2) - var(--border-center-left-margin));
}

@media screen and (max-width:1200px) {
	div#content::before {
		--border-center-width: 500px;
		top: -0.8em;
	}
}

@media screen and (max-width:982px) {
    div#content::before {
		--border-center-width: 400px;
		--border-center-left-margin: 1em;
		top: -0.6em;
	}
}

@media screen and (max-width: 800px) {
	div#content::before { display: none; }
}

@media screen and (max-width: 720px) {
	#p-logo { top: 4em; }
	#mw-head { margin-top: 7em; }
	div#content { 
		margin-top: 0; 
		margin-left: 1em;
		margin-right: 1em;
	}
	#mw-panel { 
		margin-top: -10em; 
		width: 100%;
	}
	.vector-menu-portal .vector-menu-heading,
	.vector-menu-portal .vector-menu-content .mw-list-item {
		text-align: center;
	}
}


#mw-head-base {
  margin-bottom: 12em !important;
}

.mw-body {
    background-color: #ebebeb;
    border: 1px solid #aebbbf;
}
#mw-page-base {
	background: none;
}
h1, h2, h3, h4, h5, h6 {
  color: #2a0800;
  font-family: Rubik,Arial,sans-serif !important;
}
.firstHeading {
  margin-top: 20px;
}
	
/* Left portal theming */
#mw-panel .portal{
  margin-bottom: 2px;
  border-radius: 2px;
  background-color: #ebebeb;
  font-family: Rubik,Arial,sans-serif;
}
#mw-panel .portal .vector-menu-heading {
	font-weight: bold;
}
#mw-panel #p-logo + .portal {
  margin-top: 12.25em;
}

.vector-menu-portal .vector-menu-heading {
background-image: none;
}

/* Top tabs theming */
#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:not(.new) a,
#mw-head .vectorTabs li.selected a,
#mw-head .vectorTabs li:not(.new) a:visited,
#mw-head .vectorTabs li.selected a:visited,
#mw-head .vectorMenu #p-cactions-label span {
	color: #FFF;
	font-size: 15px;
	font-weight: 700;
	text-shadow: 0 0 8px #000;
}
#p-cactions-label span:after {
	filter: invert(1);
}
.vectorTabs li.new a,
.vectorTabs li.new a:visited { 
  font-size: 15px;
  text-shadow: 0 0 8px #000;
}
#p-cactions-label span:after {
	filter: invert(1);
}
.vectorTabs li.new a,
.vectorTabs li.new a:visited {
  color: #ff4542;
}
.vector-menu-tabs,
.vector-menu-tabs a,
#mw-head .vector-menu-dropdown .vector-menu-heading {
  background-image: none;
}

/* Footer theming */
#footer-places {
	display: none;
}
#footer {
padding: 1.25em 1.25em 0.5em 1.25em;
margin-top: 4px;
}
#footer-info li,
#footer-info li a {
  color: #FFF;
  text-shadow: 2px 2px #000;
}

/* Thumbnails formatting */
li.gallerybox div.thumb {
  border: none;
  background: none;
}

/* Main page layout */
#fp-2column.fp-container {
    display: grid;
    grid-template-areas: "a" "b" "c";
    grid-template-columns: 100%;
}
@media screen and (min-width:990px) {
    #fp-2column.fp-container {
        grid-template-areas: "a b" "c c";
        grid-template-columns: 50% 50%;
    }
}
@media screen and (min-width:1350px) {
    #fp-2column.fp-container {
        grid-template-areas: "a b" "c b";
        grid-template-columns: auto 520px;
    }
}
#fp-top {
    grid-area: a;
}
#fp-flex {
    grid-area: b;
}
#fp-bottom {
    grid-area: c;
}

/* Main 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 .heading {
	background: #aebbbf;
	border-radius: 3px;
	padding: 4px;
}
.fpbox .mainheading,
.fpbox .welcome {
    font-size: 150%;
    font-weight: bold;
}

.fpbox .heading {
    text-align: center;
    font-size: 132%;
    font-weight: bold;
}
.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;
    background: #dedede;
    border-radius: 2px;
    border-bottom: 2px solid #aebbbf;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: table;
    font-size: 17px;
}
.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;
}

/* Wikitable and article-table formatting */
 .wikitable, .WikiaTable {
  border: 2px solid #aebbbf;  
}
.wikitable th, .WikiaTable th {
     background-color: #aebbbf !important;
     color: #fff;
}
.wikitable td, .WikiaTable td {
     background: #ebebeb;
     margin: 1px;
}
.table, .wikitable, .article-table {
  display: inline-table;
  overflow-x: auto;
  white-space: normal;
}
.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;
}

/* Infobox general theming */
.portable-infobox {
    overflow: hidden;
    background: #aebbbf;
    padding: 0;
    border-radius: 5px;
    margin-right: 7px;
    border: 2px #aebbbf solid;
}
.portable-infobox .pi-navigation {
    background: #aebbbf;
    text-align: center;
}
.pi-item.pi-data {
  background-color: #ebebeb;
}

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

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