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 */
/****************************
* Simple dark api.php pages *
*****************************/
@media (prefers-color-scheme: dark) {
body {
background-color:#20211f;
border-color: #7b7261;
color: #f6ecdb;
}
h1, h2, h3, h4, h5, h6 {
color: rgb(234, 224, 207);
border-color: rgb(83, 84, 81);
}
.mw-highlight .s2 {
color: rgb(206, 99, 91);
}
a {
color: rgb(133, 180, 221);
}
a:visited {
color: rgb(141, 127, 218);
}
pre, code, .mw-code {
background-color: rgb(34, 35, 33);
color: rgb(234, 224, 207);
border-color: rgb(63, 64, 62);
}
}
/***************
* End dark API *
****************/
/********************************
* Miscellaneous utility classes *
*********************************/
.responsive-image {
max-width:100%;
height:auto;
}
.theme-dark .invert-on-dark,
.theme-light .invert-on-light {
filter:invert(100%);
}
.pixelated {
image-rendering:pixelated;
}
@media screen and (min-width:720px){
.mobileonly {
display:none;
}
}
@media screen and (max-width:720px) {
.nomobile {
display:none;
}
}
/***************************
* End misc utility classes *
****************************/
/*********************************
* Main page layout *
* [[Bomb Rush Cyberfunk Wiki]] *
**********************************/
#mp-welcome-box {grid-area:welcome;}
#mp-about-box {grid-area:about;}
#mp-links-box {grid-area:links;}
#mp-wiki-box {grid-area:wiki;}
#mp-container {
display:grid;
grid-template-areas:"welcome" "about" "links" "wiki";
grid-template-columns:100%;
gap:5px;
}
@media screen and (min-width:990px) {
#mp-container {
grid-template-areas:"welcome welcome" "about links" "wiki wiki";
grid-template-columns:1fr 1fr;
}
}
@media screen and (min-width:1350px) {
#mp-container {
grid-template-areas:"welcome welcome welcome" "about links wiki";
grid-template-columns:1fr 1fr 1fr;
}
}
.mp-box {
display:flex;
flex-flow:column nowrap;
width: calc(100% - 2px);
box-sizing: border-box;
background:rgba(var(--wiki-content-background-color--secondary--rgb), 0.25);
border:1px solid var(--wiki-content-border-color);
padding:5px;
}
.mp-box.centered-content .mp-body {
height: 100%;
display: flex;
flex-flow: column nowrap;
justify-content: space-evenly;
}
.mp-box#mp-welcome-box {
text-align:center;
}
.mp-heading {
border-bottom: 1px solid var(--wiki-content-border-color);
text-align:center;
font-size: 150%;
font-family:var(--wiki-heading-font-family);
color:var(--wiki-heading-color);
margin: 0 0 10px 0;
padding: 0 0 5px 0;
}
.mp-box .welcome-message {
border-bottom: 1px solid var(--wiki-content-border-color);
font-family:var(--wiki-heading-font-family);
font-size: 200%;
margin: 0 0 10px;
padding: 0 0 5px;
}
.mp-links > ul {
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
margin: 2px;
gap:5px;
}
.mp-links > ul > li {
display: inline-block;
text-align: center;
padding: 2px;
border: 1px solid var(--wiki-content-link-color);
box-sizing:border-box;
background-color:rgba(var(--wiki-content-link-color--rgb), 0.05);
flex: max(calc(100% - 5px), 5em) 1 1;
}
.mp-links > ul > li:hover {
background-color:rgba(var(--wiki-content-link-color--rgb), 0.2);
}
.mp-links > ul > li > a {
display: flex;
height:100%;
align-items: center;
justify-content: center;
}
/***********************
* End main page layout *
************************/
/**************************
* [[Template:Doc]] styles *
***************************/
.documentation {
margin: 0em auto 1em;
background-color: rgba(var(--wiki-content-dynamic-color--inverted--rgb), 0.1);
border: 2px solid var(--wiki-content-border-color);
border-radius: 1em;
padding: 1em;
}
.documentation-header {
padding-bottom: 3px;
border-bottom: 1px solid var(--wiki-content-border-color);
margin-bottom: 1ex;
}
/**************************
* End Template:Doc styles *
***************************/
/***********************
* [[Template:License]] *
************************/
.license {
display:flex;
flex-flow:row nowrap;
background-color:var(--wiki-content-background-color--secondary);
border:1px solid var(--wiki-content-border-color);
padding:0.1em;
margin:0.5em 0 0.5em 0;
}
.copyright-logo {
filter:var(--wiki-icon-general-filter);
}
/***********************
* End Template:License *
************************/
/************
* Infoboxes *
*************/
/* portable infoboxes */
:root {
--pi-background: var(--wiki-content-background-color);
--pi-secondary-background: var(--wiki-accent-color);
--pi-secondary-background--rgb: var(--wiki-accent-color--rgb);
--pi-secondary-background-label: var(--wiki-accent-label-color);
--pi-border-color: rgba(var(--pi-secondary-background--rgb),0.5);
}
.portable-infobox {
border:4px solid var(--pi-border-color);
}
.portable-infobox .pi-title,
.portable-infobox .pi-header {
text-align:center;
font-size:1.5em;
background:rgba(var(--pi-secondary-background--rgb), 0.75);
color:var(--pi-secondary-background-label);
}
.portable-infobox .pi-data {
background:rgba(var(--pi-secondary-background--rgb), 0.18);
}
.portable-infobox .pi-image {
padding: 8px;
}
.pi-image-thumbnail {
max-width:100%;
}
.pi-section-navigation .pi-section-tab.pi-section-active,
.pi-section-navigation .pi-section-tab.current,
.pi-media-collection .pi-tab-link.current {
background: var(--pi-secondary-background);
color: var(--pi-secondary-background-label);
}
/* overqualify these to overwrite normal content heading styles */
.mw-body .portable-infobox h2,
.mw-body .portable-infobox h3 {
border-bottom: 0;
font-family: inherit;
font-weight: 700;
margin: 0;
}
/**/
/* Template infoboxes; [[Template:Infobox]] and [[:Category:Infobox part templates]] */
.infobox {
float: right;
width: 23em;
max-width:100%;
margin-left: 1em;
margin-bottom: 0.5em;
padding: 4px;
border:2px solid var(--wiki-content-border-color);
background-color:var(--wiki-content-background-color);
}
.infobox-table {
width: 100%;
padding: 0;
background-color:transparent;
border: 0;
}
.infobox-header,
.infobox-section {
background-color: var(--wiki-content-background-color--secondary);
border:1px solid var(--wiki-content-border-color);
font-weight:bold;
text-align:center;
}
.infobox-header {
font-size: 150%;
padding:0.4em;
}
.infobox-section {
padding:0.05em 0.5em;
}
.infobox-centered {
text-align: center;
}
.infobox-centered img {
max-width:100%;
height:auto;
}
.infobox-row {
vertical-align: top;
}
.infobox-row-name {
text-align: left;
vertical-align:middle;
padding:0.1em;
font-size:89%;
}
.infobox-spacer {
height: 0.5em;
}
/**/
/****************
* End infoboxes *
*****************/
/********************************************
* Utility classes for standard MW galleries *
*********************************************/
/* it's important that spaced comes before centered in the sheet */
.gallery.spaced {
display:flex;
flex-flow:row wrap;
justify-content:space-evenly;
margin-left:unset;
}
.gallery.centered {
text-align:center;
margin-left:auto;
margin-right:auto;
}
/**********************
* End gallery classes *
***********************/