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 */
@import url(https://kerzoven.wiki.gg/index.php?title=MediaWiki:Collapsible_sidebar.css&action=raw&ctype=text/css);
/****************************
* 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 *
* [[Circle of Kerzoven Wiki]] *
*********************************/
#mp-banner-container {
--ribbon-size-ratio:.3146;
--ribbon-width:25em;
--ribbon-height:calc(var(--ribbon-width) * var(--ribbon-size-ratio) + (var(--subtitle-height) / 2));
--subtitle-height: 1.1em;
margin-top:calc(var(--ribbon-height) / -2);
text-align:center;
position:relative;
}
#mp-title-container {
position:relative;
display:inline-flex;
flex-flow:column nowrap;
justify-content: space-between;
align-items:center;
background-image:url(/images/9/9a/MP_title_ribbon.svg); /* [[File:MP title ribbon.svg]] */
background-repeat:no-repeat;
background-size:contain;
background-position:center top;
z-index:1;
top:calc(var(--ribbon-height) / 2);
height:100%;
width:100%;
}
#mp-title {
text-align:center;
width:65%;
height:calc(var(--ribbon-height) * .732);
display:flex;
align-items:center;
padding:0.5em;
box-sizing:border-box;
}
#mp-title a {
height:100%;
width:100%;
}
#mp-title img {
height:auto;
max-height:100%;
width:auto;
max-width:auto;
}
#mp-ribbon-container {
position:relative;;
margin:auto;
width:var(--ribbon-width);
height:var(--ribbon-height);
z-index:1;
}
#mp-ribbon-shadow {
position:absolute;
height:calc(var(--ribbon-height) * .5);
width:calc(var(--ribbon-width) * .85);
left:7.5%;
bottom:-50%;
content:'';
background:#000;
opacity:0.5;
filter:blur(8px);
z-index:-1;
}
#mp-subtitle {
font-size:var(--subtitle-height);
font-family:var(--wiki-heading-font-family);
color:#fff;
font-weight:bold;
text-shadow:0 0.1em 0.1em #000;
}
#mp-banner img {
border-radius:10px;
z-index:0;
}
#mp-banner-container{grid-area:banner}
#mp-external-box {grid-area:external;}
#mp-welcome-box {grid-area:welcome;}
#mp-about-box {grid-area:about;}
#mp-updates-box {grid-area:updates;}
#mp-maps-box {grid-area:maps;}
#mp-resources-box {grid-area:resources;}
#mp-wiki-box {grid-area:wiki;}
#mp-container {
display:grid;
grid-template-areas:"banner" "external" "about" "updates" "items" "structures" "animals" "scenario" "editing" "wiki";
grid-template-columns:1fr;
gap:5px;
}
@media screen and (min-width:990px) {
#mp-container {
grid-template-areas:"banner banner" "external external" "about about" "updates items" "structures animals" "scenario editing" "wiki wiki";
grid-template-columns:1fr 1fr;
gap:10px;
}
}
@media screen and (min-width:1350px) {
#mp-container {
grid-template-areas:"banner banner banner" "external external external" "about about updates" "items structures animals" "scenario editing wiki";
grid-template-columns:1fr 1fr 1fr;
gap:20px;
}
}
.mp-box {
display:flex;
flex-flow:column nowrap;
width: calc(100% - 4px);
box-sizing: border-box;
border:2px solid var(--wiki-content-border-color);
border-radius:10px;
overflow:hidden;
}
#mp-external-box {
background-color:var(--wiki-content-background-color--secondary);
flex-flow:row wrap;
align-items:center;
justify-content: center;
column-gap:2em;
}
#mp-external-box img {
vertical-align:text-bottom;
}
.mp-body {
height:100%;
padding:1em;
display: flex;
flex-flow: column nowrap;
}
.mp-box.centered-content .mp-body {
justify-content: space-evenly;
}
.mp-box#mp-welcome-box {
text-align:center;
}
.mp-heading {
background-color:var(--wiki-content-background-color--secondary);
border-bottom: 2px solid var(--wiki-content-border-color);
text-align:left;
font-size: 1.25em;
font-weight:bold;
font-family:var(--wiki-heading-font-family);
color:var(--wiki-heading-color);
padding:2px 1em;
}
.mp-links > ul {
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
margin: 2px;
gap:5px;
}
.mp-links > ul > li {
display:flex;
flex-flow:row nowrap;
align-items:flex-start;
text-align: center;
box-sizing:border-box;
flex: max(calc(50% - 5px), 5em) 1 1;
border-radius:10px;
transition:0.1s ease-in;
}
.mp-links.columns-1 > ul > li {flex: max(calc(100% - 5px), 5em) 1 1;}
.mp-links.columns-2 > ul > li {flex: max(calc(50% - 5px), 5em) 1 1;}
.mp-links.columns-3 > ul > li {flex: max(calc(33% - 5px), 5em) 1 1;}
.mp-links.columns-4 > ul > li {flex: max(calc(25% - 5px), 5em) 1 1;}
.mp-links.columns-5 > ul > li {flex: max(calc(20% - 5px), 5em) 1 1;}
.mp-links > ul > li:hover {
background-color:rgba(var(--wiki-content-link-color--rgb), 0.2);
outline:2px solid var(--wiki-content-border-color);
}
.mp-links > ul > li:hover a {
text-decoration: underline;
}
.mp-links > ul > li > a {
display: flex;
align-items: center;
justify-content: left;
height:100%;
}
.mp-links > ul > li > a:not(:first-child) {
padding-left:5px;
}
.mp-links > ul > li > a:last-child {
width:100%;
}
.mp-links.stretch,
.mp-links.stretch > ul {
height:100%;
}
/***********************
* 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 *
************************/
/*****************************
* Used by [[Template:Quote]] *
******************************/
.quote {
margin:auto;
text-align:center;
}
.quote-left,
.quote-right {
font-size:3.3em;
font-family:times new roman,serif;
font-weight:700;
padding:4px 2px 2px;
width:.5em;
}
/*********************
* End Template:Quote *
**********************/
/************
* 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;
border-radius:10px;
padding:0px;
border:2px solid var(--wiki-content-border-color);
background-color:var(--wiki-content-background-color);
overflow:hidden;
}
.infobox-table {
width: 100%;
padding: 0em 1em 1em 1em;
background-color:transparent;
border: 0;
border-spacing:0;
border-radius:10px 10px 0 0;
}
.infobox-header,
.infobox-section {
font-weight:bold;
text-align:left;
color:var(--wiki-heading-color);
font-family:var(--wiki-heading-font-family);
}
.infobox-header {
background-color: var(--wiki-content-background-color--secondary);
font-size: 125%;
padding:0.1em 0.4em 0.1em 0em;
border-radius:10px 10px 0 0;
box-shadow: 0 -1em 0 1em var(--wiki-content-background-color--secondary),
0 calc(-1em + 1px) 0 1em var(--wiki-content-border-color);
}
.infobox-section {
padding:0.2em 0.5em;
border-bottom:1px solid var(--wiki-content-border-color);
}
.infobox-centered {
text-align: center;
}
.infobox-centered img {
max-width:100%;
height:auto;
}
.infobox-row {
vertical-align: top;
}
.infobox-row-name {
text-align: right;
vertical-align:middle;
padding:0.1em;
font-size:89%;
width:30%;
}
.infobox-row-value {
padding-left:1em;
}
.infobox-spacer {
height: 0.5em;
}
.infobox-group-table {
width:100%;
box-sizing:border-box;
background-color:rgba(var(--wiki-content-background-color--secondary--rgb), 0.6);
border-radius:10px;
border-spacing:0px;
margin:1em 0;
box-shadow:inset 0 0.15em 0.625em 0 rgba(0,0,0,0.6);
padding: 10px;
}
.infobox-group .infobox-row:not(:last-child) > * {
border-bottom:1px solid var(--wiki-content-border-color);
}
.infobox.stacked .infobox-row {
display:flex;
flex-flow:column nowrap;
}
.infobox.stacked .infobox-row-value {
font-size:0.9em;
padding-left:1em;
}
/**/
/****************
* End infoboxes *
*****************/
/*****************************
* Used by [[Template:Ambox]] *
******************************/
.ambox {
background-color: var(--wiki-content-background-color--secondary);
border: 1px solid var(--wiki-content-border-color);
border-collapse: collapse;
font-size: 95%;
margin: 0 auto 2px auto;
width: 80%;
}
.ambox-gray {
border-left-color: #383838;
}
.ambox + .ambox {
margin-top: -2px;
}
.ambox-text {
padding: 0.25em 0.5em;
}
.ambox-image {
padding: 2px 0px 2px 0.5em;
text-align: center;
width: 60px;
}
.ambox-tiny .ambox-image {
padding: 2px 0.5em;
text-align: left;
width: auto;
}
/* Ambox colors */
.ambox-blue {
border-left: 10px solid #1e90ff;
}
.ambox-red {
border-left: 10px solid #b22222;
}
.ambox-orange {
border-left: 10px solid #f28500;
}
.ambox-yellow {
border-left: 10px solid #f4c430;
}
.ambox-purple {
border-left: 10px solid #9932cc;
}
.ambox-gray {
border-left: 10px solid #bba;
}
.ambox-green {
border-left: 10px solid #228b22;
}
/*********************
* End Template:Ambox *
**********************/
/********************************************
* 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 *
***********************/