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 */
@font-face {
font-family: 'Kingthings Petrock';
src: local('Kingthings Petrock'), url('https://commons.wiki.gg/images/d/d8/Kingthings_Petrock_Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Sudbury Book';
src: local('Sudbury Book'), url('https://commons.wiki.gg/images/1/1d/Sudbury_Book_Regular.ttf') format('truetype');
}
.responsive-image {
max-width:100%;
height:auto;
}
.theme-dark .invert-on-dark,
.theme-light .invert-on-light {
filter:invert(100%);
}
/*
* 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
*/
/****************************************
* Main page layout *
* [[The Magical Mixture Mill Wiki]] *
*****************************************/
#mp-welcome-box {grid-area:welcome;}
#mp-characters-box {grid-area:characters;}
#mp-about-box {grid-area:about;}
#mp-items-box {grid-area:items;}
#mp-quests-box {grid-area:quests;}
#mp-faq-box {grid-area:faq;}
#mp-shroomogrophy-box {grid-area:shroomogrophy;}
#mp-wiki-box {grid-area:wiki;}
#mp-container {
display:grid;
grid-template-areas:"welcome" "characters" "about" "items" "quests" "shroomogrophy" "faq" "wiki";
grid-template-columns:100%;
gap:5px
}
@media screen and (min-width:990px) {
#mp-container {
grid-template-areas:"welcome welcome" "characters about" "items items" "shroomogrophy shroomogrophy" "faq quests" "wiki wiki";
grid-template-columns:1fr 1fr
}
}
@media screen and (min-width:1350px) {
#mp-container {
grid-template-areas:"welcome welcome welcome welcome" "characters shroomogrophy quests about" "items items faq faq" "wiki wiki wiki wiki";
grid-template-columns:1fr 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#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(--heading-font-family);
color:var(--wiki-heading-color);
margin: 0 0 10px 0;
padding: 0 0 5px 0;
}
/* .mp-heading {
display:flex;
align-items: center;
justify-content: center;
border-bottom: 1px solid var(--wiki-content-border-color);
text-align:center;
font-size: 150%;
height:3em;
box-sizing:border-box;
font-family:var(--heading-font-family);
color:#10020D;
margin: 0 0 10px 0;
padding: 0 calc((50% - (((min(100%, 30em)) / 2)) + ((min(100%, 30em)) * .3 )));
padding-top:0.3em;
padding-bottom:0.7em;
background-image:url(https://themagicalmixturemill.wiki.gg/images/5/52/Heading_background.png);
background-repeat:no-repeat;
background-size: min(100%, 30em) 100%;
background-position:center;
} */
.mp-box .welcome-message {
border-bottom: 1px solid var(--wiki-content-border-color);
font-size: 140%;
margin: 0 0 10px;
padding: 0 0 5px;
}
.mp-links > ul {
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
margin: 2px;
}
.mp-links > ul > li {
display: inline-block;
text-align: center;
margin: 5px;
padding: 2px;
border: 2px solid var(--wiki-content-link-color);
background-color:rgba(var(--wiki-content-background-color--secondary--rgb), 0.25);
flex: 5em 1 1;
}
.mp-links > ul > li:hover {
border:2px solid white;
background-color:rgba(var(--wiki-content-background-color--secondary--rgb), 0.25);
}
.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 *
************************/
/****************************
* [[Template:Navbox]] style *
*****************************/
table.navbox {
border: 1px solid var(--wiki-content-border-color);
background:var(--wiki-content-background-color--secondary);
clear: both;
font-size: 88%;
margin: auto;
padding: 1px;
text-align: center;
width: 100%;
}
/* Border between adjacent navboxes */
table.navbox + table.navbox {
margin-top: -1px;
}
.navbox-title,
.navbox-abovebelow,
table.navbox th {
padding-left: 1em;
padding-right: 1em;
text-align: center;
}
.navbox-group {
font-weight: bold;
padding-left: 1em;
padding-right: 1em;
white-space: nowrap;
width:15%;
}
.navbox-list {
border-color: transparent;
}
/* Level 1 color */
.navbox-title,
table.navbox th {
background: var(--wiki-navigation-background-color);
color:var(--wiki-navigation-text-color);
}
/* Level 2 styling */
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
background: rgba(var(--wiki-content-dynamic-color--rgb), 0.1);
}
/* Level 3 styling */
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background: rgba(0, 0, 0, 0.05);
}
/* Even row striping */
.navbox-even {
background: rgba(var(--wiki-content-dynamic-color--rgb), 0.05);
}
/* Odd row striping */
.navbox-odd {
background: transparent;
}
.navbar {
font-size: 88%;
font-weight: normal;
}
.navbox .navbox-title a,
.navbox .navbox-title a:visited,
.navbox .navbox-title a.external,
.navbox .navbox-title a.external:visited {
color:var(--wiki-navigation-text-color)
}
.navbox-list.hlist ul {
margin:0;
}
.navbox-list.hlist li {
display:inline-block;
}
.navbox-list.hlist li:not(:first-child)::before {
content:'\2022\0020';
margin:0 0.2em;
}
/*********************
* End Navbox styling *
**********************/
/************
* 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%;
}
/* 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 *
*****************/
/*****************************
* 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 *
**********************/
/********************************
* Used by [[Template:Flatlist]] *
*********************************/
/**
* Style for horizontal lists (separator following item).
* @source https://www.mediawiki.org/wiki/Snippets/Horizontal_lists
* @revision 9 (2016-08-10)
* @author User:Edokter
*/
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
/* don't trust the note that says margin doesn't work with inline
* removing margin: 0 makes dds have margins again */
margin: 0;
display: inline;
}
/* Display nested lists inline */
/*
We remove .inline since it's not used here.
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
*/
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
display: none;
}
/* Generate interpuncts */
.hlist dt:after {
content: ": ";
}
.hlist dd:after,
.hlist li:after {
content: " · ";
font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
content: " (";
font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
content: ")";
font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
counter-reset: listitem;
}
.hlist ol > li {
counter-increment: listitem;
}
.hlist ol > li:before {
content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
content: " (" counter(listitem) "\a0";
}
/************************
* End Template:Flatlist *
*************************/
/********************************************
* Utility classes for standard MW galleries *
*********************************************/
.gallery.centered {
text-align:center;
margin-left:auto;
margin-right:auto;
}
.tmmm-hover .gallerybox {
/* use outline instead of border so we don't interfere with gallery size calculations */
outline:2px solid transparent;
}
.tmmm-hover .gallerybox:hover {
outline-color:white;
}
/**********************
* End gallery classes *
***********************/
/******************************
* Used by [[Template:Potion]] *
*******************************/
.potion-container {
display:inline-block;
position:relative;
z-index:1;
}
.potion-color,
.potion-glow {
position:absolute;
width:100%;
height:100%;
top:0;
left:0;
-webkit-mask-size:contain;
mask-size:contain;
mask-repeat:no-repeat;
z-index:-1;
}
.potion-glow {
z-index:-2;
}
.classic .potion-color {
-webkit-mask-image:url(/images/3/3f/InventoryIcon_Potion_Classic_Mixture.png);
mask-image:url(/images/3/3f/InventoryIcon_Potion_Classic_Mixture.png); /* [[File:InventoryIcon_Potion_Classic_Mixture.png]] */
}
.elegant .potion-color {
-webkit-mask-image:url(/images/a/a5/InventoryIcon_Potion_Elegant_Mixture.png);
mask-image:url(/images/a/a5/InventoryIcon_Potion_Elegant_Mixture.png); /* [[File:InventoryIcon_Potion_Elegant_Mixture.png]] */
}
.fancy .potion-color {
-webkit-mask-image:url(/images/e/e4/InventoryIcon_Potion_Fancy_Mixture.png);
mask-image:url(/images/e/e4/InventoryIcon_Potion_Fancy_Mixture.png); /* [[File:InventoryIcon_Potion_Fancy_Mixture.png]] */
}
.quality .potion-color{
-webkit-mask-image:url(/images/3/33/InventoryIcon_Potion_Quality_Mixture.png);
mask-image:url(/images/3/33/InventoryIcon_Potion_Quality_Mixture.png); /* [[File:InventoryIcon_Potion_Quality_Mixture.png]] */
}
.robust .potion-color {
-webkit-mask-image:url(/images/7/78/InventoryIcon_Potion_Robust_Mixture.png);
mask-image:url(/images/7/78/InventoryIcon_Potion_Robust_Mixture.png); /* [[File:InventoryIcon_Potion_Robust_Mixture.png]] */
}
.classic .potion-glow {
-webkit-mask-image:url(/images/b/b2/InventoryIcon_Potion_Classic_Glow.png);
mask-image:url(/images/b/b2/InventoryIcon_Potion_Classic_Glow.png); /* [[File:InventoryIcon_Potion_Classic_Glow.png]] */
}
.elegant .potion-glow {
-webkit-mask-image:url(/images/b/b8/InventoryIcon_Potion_Elegant_Glow.png);
mask-image:url(/images/b/b8/InventoryIcon_Potion_Elegant_Glow.png); /* [[File:InventoryIcon_Potion_Elegant_Glow.png]] */
}
.fancy .potion-glow {
-webkit-mask-image:url(/images/8/8f/InventoryIcon_Potion_Fancy_Glow.png);
mask-image:url(/images/8/8f/InventoryIcon_Potion_Fancy_Glow.png); /* [[File:InventoryIcon_Potion_Fancy_Glow.png]] */
}
.quality .potion-glow{
-webkit-mask-image:url(/images/0/0f/InventoryIcon_Potion_Quality_Glow.png);
mask-image:url(/images/0/0f/InventoryIcon_Potion_Quality_Glow.png); /* [[File:InventoryIcon_Potion_Quality_Glow.png]] */
}
.robust .potion-glow {
-webkit-mask-image:url(/images/4/41/InventoryIcon_Potion_Robust_Glow.png);
mask-image:url(/images/4/41/InventoryIcon_Potion_Robust_Glow.png); /* [[File:InventoryIcon_Potion_Robust_Glow.png]] */
}
/**********************
* End Template:Potion *
***********************/
/****************************************
* Used by [[Template:PotionNameFormat]] *
*****************************************/
.named-potion {
display:inline-flex;
flex-flow:row nowrap;
align-items:center;
}
/********************************
* End Template:PotionNameFormat *
*********************************/
/**********************
* Begin: Format Dynamic Table on All_Mixtures Page *
***********************/
table.cargoDynamicTable img{
width:25px;
border:0;
}
table.cargoDynamicTable{
text-align: center;
}
table.cargoDynamicTable .thumbcaption {
display: none;
}
table.cargoDynamicTable .thumbinner {
border: 0px;
background-color:transparent;
}
table.cargoDynamicTable .thumb {
border: 0px;
width:50px;
}
/**********************
* End: Format Dynamic Table on All_Mixtures Page *
***********************/
/**********************
* Begin: Default Cargo Table Formatting *
***********************/
table.cargoTable{
text-align: center;
vertical-align: middle;
}
table.cargoTable img{
width:35px;
border:0;
}
table.cargoTable .thumbcaption {
display: none;
}
table.cargoTable .thumbinner {
border: 0px;
background-color:transparent;
}
table.cargoTable .thumb {
border: 0px;
width:50px;
}
table.cargoTable tr td {
vertical-align: middle;
}
table.cargoTable th {
text-align: center;
vertical-align: middle;
}
/**********************
* End: Default Cargo Table Formatting *
***********************/
/**********************
* Begin: Default Cargo Chart Formatting *
***********************/
.nv-bar {
fill:var(--wiki-navigation-selected-background-color);
font-color:var(--wiki-navigation-selected-background-color);
stroke:var(--wiki-navigation-selected-background-color);
}
/**********************
* End: Default Cargo Table Formatting *
***********************/