MediaWiki:Common.css

From Support 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.
/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=Squada+One&display=swap');

/************
* Infoboxes *
*************/
.portable-infobox {
    --pi-background: var(--wiki-content-background-color--secondary);
    --pi-secondary-background:var(--wiki-accent-color);
    --pi-secondary-background-label: var(--wiki-accent-text-color);
    --pi-border-color: rgba(var(--wiki-accent-color--rgb), 0.5);
}

.portable-infobox .pi-title {
    background-color: var(--pi-secondary-background);
    color:var(--pi-secondary-background-label);
}

.portable-infobox .pi-secondary-background {
	background-color: var(--pi-secondary-background);
    color:var(--pi-secondary-background-label);
}

.druid-container-extension .druid-grid-section-Default {
    text-align:center;
}
/****************
* End infoboxes *
*****************/


/* Tables */

table {
    display: table;
    white-space: unset;
}


/* Front page structure */

/* Flex */
@media screen and (min-width: 1080px){
	.page-Support_Wiki .mw-parser-output {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-evenly;
	}
	.mainpage-left {
		width: calc(100% - 550px);
	}
	.mainpage-right {
		width: 500px;
	}
}

.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 .mainheading,
.fpbox .welcome {
  font-size: 150%;
  font-weight: bold;
}

.fpbox .heading {
  text-align: center;
  font-size: 132%;
}

.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;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: table;
}

.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;
}

/* this CSS governs the responsive 2 column 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;
}

/* end responsive 2 column main page layout */
/* Front page appearance styles */
.fpbox .heading,
.fpbox .mainheading {
  border: 0;
  border-bottom: 1px solid transparent;
}

.fpbox {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: 0 2px 5px transparent;
}

.fplink:not(.fplink-plain) {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid #505050;
}

.fplink-fullwidth .fplink:not(.fplink-plain) {
  background: rgba(0, 0, 0, 0.1);
}

.linkslabel {
  border-bottom: 2px solid #505050;
}

.mw-parser-output .fp-main-heading {
  border: 0;
  margin-bottom: 0.5rem;
  font-size: 1.6em;
  color: var(--wiki-accent-color);
}

.fp-help-outer-container {
  display:flex;
  flex-direction:column;
  gap:2em;
}

@media screen and (min-width:1200px) {
  .fp-help-outer-container {
    display:flex;
    flex-direction:row;
  }
}

.fp-help-column-container {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.fp-help-inner-container {
  padding: 0.5em;
  border-radius: 0.2rem;
  background: rgba(var(--wiki-content-text-mix-color-95--rgb), 0.7);
  border: 1px solid rgba(var(--wiki-accent-color--rgb), 0.5);
  box-shadow: 0 0 0.5rem #0002;
}

.fp-help {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 1.3em 1.5em;
  margin-block: 1.25em;
}
@media screen and (max-width: 1000px) {
  .fp-help {
    gap: 0.5rem 1rem;
    margin-block: 0.7em;
  }
  .fp-help-section {
    flex-grow: 1;
  }
}

.mainpage-left {
  width:80%;
}

.fp-help-section {
  text-align: left;
  border: 1px solid rgba(var(--wiki-accent-color--rgb), 0.2);
  padding: 1rem 1.1em;
  border-radius: .1rem;
  min-width: 15em;
  box-sizing: border-box;
  background: rgba(var(--wiki-content-dynamic-color--inverted--rgb), 0.18);
}

.fp-help-inner-container > h2 {
  margin-top: 0.5em;
  padding-bottom: 0.3em;
}

.fp-help-section > h3 {
  text-align: center;
  padding: 0.4em 0;
  font-size: 130%;
  font-weight: 400;
  margin-top: 0;
}


/*****************************
* 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 *
**********************/

.documentation {
 clear: both;
 margin-top: 1em;
 border: 1px solid var(--table-border);
 background-color: rgb(var(--wiki-color-rgb),0.3);
 padding: 0.5em;
 border-radius: 3px;
}

.documentation-header {
 font-size:1.75em;
 margin-top:1em;
 font-family:sans-serif;
 line-height:1.3;
 margin-bottom:0.25em;
 padding:0;
 background:none;
 font-weight:normal;
 overflow:hidden;
 border-bottom: 1px solid var(--table-border);
}

.documentation-view-edit {
 float: right;
 font-size: small;
 position:relative;
 height:0px;
 top:15px;
}

/***************************
* Used by [[Template:Key]] *
****************************/
.key {
	display:inline-block;
	white-space:nowrap;
}

.key kbd {
  padding: 0.1em 0.6em 0.1em 0.6em; 
  margin-right:2px; 
  font-size:85%; 
  font-family:inherit; 
  font-style:normal;
  border-radius: .2em; 
}

/* Dark Wiki Variation */
.keysDark {
  color:black; 
  border: 1px solid rgb(170, 170, 170); 
  box-shadow: 0.1em 0.2em 0.2em rgb(221, 221, 221); 
  background-image: linear-gradient(to bottom, rgb(238, 238, 238), rgb(249, 249, 249), rgb(238, 238, 238)); 
  background-color: rgb(249, 249, 249); 
}

/* Light Wiki Variation */
.keysLight {
  color:white; 
  border: 1px solid rgb(0, 0, 0); 
  box-shadow: 0.1em 0.2em 0.2em rgb(0, 0, 0); 
  background-image: linear-gradient(to bottom, rgb(0, 0, 0), rgb(15, 15, 15), rgb(30, 30, 30)); 
  background-color: rgb(30, 30, 30); 
}


/* Style for horizontal lists (separator following item).
   IE8-specific classes are assigned in [[MediaWiki:Common.js/IEFixes.js]].
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 6 (2014-05-09)
   @author [[User:Edokter]]
 */
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.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;
}
/* 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;
}
/* For IE8 */
.hlist dd.hlist-last-child:after,
.hlist dt.hlist-last-child:after,
.hlist li.hlist-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;
}
/* For IE8 */
.hlist dd dd.hlist-last-child:after, .hlist dd dt.hlist-last-child:after, .hlist dd li.hlist-last-child:after,
.hlist dt dd.hlist-last-child:after, .hlist dt dt.hlist-last-child:after, .hlist dt li.hlist-last-child:after,
.hlist li dd.hlist-last-child:after, .hlist li dt.hlist-last-child:after, .hlist li li.hlist-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) " ";
    white-space: nowrap;
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) " ";
}

/* Template:DPL parameter */
table.wikitable.dplparameter {
	border-spacing:0;
}
table.wikitable.dplparameter > * > tr > td:first-child {
	background-color:var(--dplparameter-background);
	padding:5px;
	width:200px;
	font:130% Courier, monospace;
}
table.wikitable.dplparameter > * > tr > td:nth-child(2) {
	padding:5px;
}

#n-Submit-a-ticket > a > span::after {
  background:url(https://commons.wiki.gg/images/9/9b/Wiki.gg_icon-pink.svg);
  background-size: contain;
  background-repeat:no-repeat;
  background-position: center;
  content:'';
  display:inline-block;
  height:16px;
  width:16px;
  margin-left:7px;
}

#n-Submit-a-ticket > a > span {
  display:flex;
  align-items:center;
}



/******************
* Template:Navbox *
*******************/
.navbox {
	clear: both;
	margin: 1em 0;
	padding: 3px;
	font-size: 90%;
	width: 100%;
	border: 1px solid var(--wiki-content-border-color);
	box-sizing: border-box;
}
.navbox-inner,
.navbox-subgroup {
	border-spacing: 0;
	width: 100%;
}
/* Reduce spacing between adjacent navboxes */
.navbox + .navbox {
	margin-top: -1px;
}
/* Spacing between rows */
.navbox-spacer {
	height: 2px;
}
/* Title bars and labels */
.navbox-title {
	font-weight: bold;
	font-size: 115%;
	padding: 0.25em 0.6em;
	line-height: 1.5em;
	color: var(--wiki-accent-label-color);
	background: var(--wiki-accent-color);
}
.navbox-title,
.navbox-abovebelow {
	padding-left: 1em;
	padding-right: 1em;
	text-align: center;
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
	background: rgba(var(--wiki-accent-color--rgb), 0.18);
	color: var(--wiki-content-text-color);
	border: 1px solid var(--wiki-content-border-color);
}
.navbox .navbox-title a,
.navbox .navbox-title a:visited,
.navbox .navbox-title a.external,
.navbox .navbox-title a.external:visited {
	color: var(--wiki-accent-link-color);
}
.navbox-title .mw-collapsible-toggle {
	font-weight: normal;
	text-align: right;
}
.navbox-title-text {
	font-size: 105%;
}
/* Navbox-related links */
.navbox-title .navbar {
	float: left;
	margin-right: 0.5em;
}
.navbox-title .navbar a.external::after {
    content: unset;
}
/* Groups */
.navbox-group {
	font-weight: bold;
	padding: 0 0.5em;
	white-space: nowrap;
	text-align: center;
}
/* Zebra colouring for rows */
.navbox-even {
	background: #fff1;
}
/* Subgroups: equal group labels between different child navboxes */
.navbox-subgroup > tbody > tr {
	display: flex;
}
.navbox-subgroup .navbox-group {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-basis: 11em;
	flex-grow: 1;
	flex-shrink: 0;
	white-space: normal;
}
/* Lists */
.navbox-list {
	width: 100%;
}
/* Mobile adjustments */
@media screen and (max-width: 1280px) {
	.mw-body .navbox-inner table {
        display: table;
	}
}
@media screen and (max-width: 720px) {
	.mw-body .navbox {
		display: none;
	}
}
/**********************
* End Template:Navbox *
***********************/