MediaWiki:Common.css
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 be applied to all skins */
/* 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: 323px;
height: 150px;
margin: 0 auto;
}
/* Background */
body {
background: url(/images/8/80/Site-background.jpg) no-repeat center center fixed;
background-size: cover;
background-color: #000;
}
/* Content theming */
#content {
border-image-slice: 40% fill;
border-image-width: 120px;
border-image-outset: 5px;
border-image-source: url(https://symphonyofwar.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;
color: #FFF;
}
#content a {
color: #52be80;
}
.new {
color: #ff4542 !important;
}
.mw-body,
#mw-head-base,
#left-navigation,
#right-navigation,
#mw-data-after-content,
.mw-footer {
margin-left: 12em;
margin-right: 2em;
}
#mw-head-base {
margin-bottom: 12em !important;
}
#content,
#mw-head {
margin-top: 11.14em;
border-radius: 5px;
}
.mw-body {
background-color: #151515;
border: 1px solid #a42d38;
}
#mw-page-base {
background: none;
}
h1, h2, h3:not(.vector-menu-heading), h4, h5, h6, .heading {
color: #FFF;
font-family: Constantia,Arial,sans-serif !important;
}
.firstHeading {
margin-top: 20px;
}
/* Thumbnails formatting */
li.gallerybox div.thumb {
border: none;
background: 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: 17px;
font-weight: bold;
text-transform: uppercase;
text-shadow: 1px 2px 2px #000;
}
.vector-menu-dropdown .vector-menu-heading::after {
filter: invert(1);
}
#mw-head .vector-menu-dropdown .vector-menu-heading {
margin-top: 3px;
}
.vectorTabs li.new a,
.vectorTabs li.new a:visited {
font-size: 17px;
font-weight: bold;
text-transform: uppercase;
text-shadow: 1px 2px 2px #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;
}
.vector-menu-dropdown {
line-height: inherit;
}
/* Left portal theming */
#mw-panel .portal {
margin-bottom: 20px;
border-radius: 2px;
background-color: #151515;
padding: 12px 5px 12px 5px;
box-shadow: 15px 15px 16px #0009, -20px 20px 17px #0009;
border-image-slice: 64 0 0 0;
border-image-width: 18px 20px 20px 20px;
border-image-outset: 10px 23px 0px 23px;
border-image-repeat: stretch stretch;
border-image-source: url(https://symphonyofwar.wiki.gg/images/f/f9/Border_frame_left_panel.png);
}
#mw-panel .portal .vector-menu-heading {
font-weight: bold;
color: #FFF;
}
#mw-panel #p-logo + .portal {
margin-top: 12.25em;
}
#mw-panel {
padding-left: 0;
margin-top: -12.5em;
}
#mw-panel a {
color: #52be80;
}
.vector-menu-portal .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: 1px 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);
border-radius: 3px;
}
.fpbox.plain {
background: transparent;
box-shadow: none;
}
.fpbox .heading,
.fpbox .mainheading,
.fpbox .welcome {
margin: 0 0 10px;
padding: 0 0 5px;
overflow: auto;
}
.fpbox .heading {
border-radius: 3px;
border-bottom: 3px double #a42d38;
padding: 4px;
}
.fpbox .mainheading,
.fpbox .welcome {
font-size: 150%;
font-weight: bold;
}
.fpbox .heading {
text-align: center;
font-size: 132%;
font-weight: bold;
border-bottom: 3px double #a42d38;
}
.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 #a42d38;
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;
}
/* Diff dark background */
.diff-deletedline .diffchange {
background: #cc7000;
}
.diff-addedline .diffchange {
background: #617e99;
}
.diff-context {
background: #000;
color: #FFF;
}
/* Adjusting recent changes, toc, filetoc, catlinks and manage templatedata to dark background */
.mw-changeslist-legend,
.tdg-editscreen-main > span:nth-child(1) > a:nth-child(1),
.mw-search-profile-tabs,
.oo-ui-tagMultiselectWidget.oo-ui-widget-enabled.oo-ui-tagMultiselectWidget-outlined .oo-ui-tagMultiselectWidget-handle,
.oo-ui-tagMultiselectWidget-input > input:nth-child(1),
.mw-rcfilters-ui-liveUpdateButtonWidget > a:nth-child(1),
.mw-rcfilters-ui-savedLinksListWidget-button > a:nth-child(1),
.mw-rcfilters-ui-changesLimitAndDateButtonWidget > span:nth-child(1) > a:nth-child(1),
.catlinks,
.toc,
#filetoc {
background: #000 !important;
}
.mw-rcfilters-ui-filterTagMultiselectWidget-wrapper-content-title {
color:#FFF;
}
.mw-rcfilters-ui-liveUpdateButtonWidget,
.mw-rcfilters-ui-savedLinksListWidget-button,
.mw-rcfilters-ui-changesLimitAndDateButtonWidget > span:nth-child(1) {
filter: invert(1);
}
/* Adjusting lists and thumbnails to dark mode */
ul {
list-style-image: none;
}
.thumbinner {
border: none !important;
background-color: transparent !important;
}
/* Wikitable and article-table formatting */
.wikitable {
border: 2px solid #a42d38;
color: #fff;
}
.wikitable th {
background-color: #0b0b0b !important;
}
.wikitable td, .WikiaTable td {
background: #151515;
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, .wikitable > tr > th, .wikitable > * > tr > th {
padding: .2em .4em;
border: 1px solid #323232;
}
.article-table td {
padding: 6px 12px;
}
/* Infobox general theming */
.portable-infobox {
overflow: hidden;
background: #a42d38;
padding: 0;
border-radius: 2px;
border: 2px #a42d38 solid;
}
.portable-infobox .pi-navigation {
background: #a42d38;
text-align: center;
}
.pi-item.pi-data {
background-color: #151515;
}
/* 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: #a42d38;
}
.portable-infobox .pi-header {
font-size: small;
line-height: 10px;
color: #FFFFFF;
text-align: center;
padding: 4px 0;
background: #a42d38;
}
/* Infobox images */
.portable-infobox .pi-caption {
color: #FFF;
}
.portable-infobox .pi-image-collection-tabs {
text-align: center;
background: #151515;
}
.portable-infobox .pi-image-collection-tab-content {
background: #151515;
}
.portable-infobox ul.pi-image-collection-tabs li {
background: #151515;
font-weight: normal;
border: 1px solid #a42d38;
margin-right: 0;
}
.portable-infobox ul.pi-image-collection-tabs li.current {
background-color: #a42d38 !important;
color: white !important;
}
.portable-infobox ul.pi-image-collection-tabs li.pi-item-spacing {
padding: 2px 4px 1px;
}
/* screen and (max-width:600px) */
@media screen and (max-width:600px) {
div#p-logo{
margin-top: -180em;
width: 100%;
}
#mw-panel .portal {
display: none;
}
#mw-head #p-search {
top: -95px;
box-sizing: border-box;
width: 100%;
max-width: 20em;
margin: 0;
padding: var(--main-box-padding);
box-shadow: none;
left: 50%;
right: auto;
transform: translateX(-50%);
border-radius: var(--main-box-border-radius);
border-width: var(--theme-box-border-width);
}
div#simpleSearch{
width: auto;
}
#footer #footer-icons{
float: none;
}
#footer #footer-info-copyright{
padding-right: 0;
padding-bottom: 40px;
right: auto;
left: 0;
}
#footer-info-copyright img{
right: auto;
left: 0;
}