MediaWiki:Common.css

From Farworld Pioneers 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=VT323&display=swap');

.responsive-image {
	max-width:100%;
	height:auto;
}

/*******************
* Main page layout *
********************/

#mp-container {
	display: grid;
	grid-template-areas: "welcome" "categories" "info" "wiki" "igloosoft";
	grid-template-columns: 100%;
  gap:5px;
}
@media screen and (min-width:990px) {
	#mp-container {
		grid-template-areas: "welcome welcome" "categories wiki" "info wiki" "igloosoft igloosoft";
		grid-template-columns: 50% 50%;
	}
}
@media screen and (min-width:1350px) {
	#mp-container {
		grid-template-areas: "welcome wiki" "categories wiki" "info igloosoft";
		grid-template-columns: auto 520px;
	}
}

.mp-box { 
	width: calc(100% - 2px);
	box-sizing: border-box;
	background:rgba(var(--wiki-content-background-color--secondary--rgb), 0.5);
	border:1px solid var(--wiki-content-border-color);
	padding:5px;
}

.mp-heading {
	text-align:center;
	margin: 0 0 10px 0;
	padding: 3px;
	font-family:'VT323', monospace, sans-serif;
	font-size: 150%;
	background-color:var(--template-set-1-background-color);
	border:3px solid var(--template-set-1-border-color);
	box-shadow:inset 0 0 0 2px var(--template-set-1-border-color-2);
	color:var(--template-set-1-text-color);
	text-shadow:
		1px 1px 0 var(--template-set-1-text-outline-color),
		1px -1px 0 var(--template-set-1-text-outline-color),
		-1px 1px 0 var(--template-set-1-text-outline-color),
		-1px -1px 0 var(--template-set-1-text-outline-color);
}

#mp-welcome {grid-area: welcome;}
#mp-categories {grid-area: categories;}
#mp-info {grid-area: info;}
#mp-wiki {grid-area: wiki;}
#mp-igloosoft {grid-area: igloosoft;}

.notice {
  font-family:'VT323', monospace, sans-serif;
  font-size:130%;
  background-color:var(--template-set-1-background-color);
  border:3px solid var(--template-set-1-border-color);
  box-shadow:inset 0 0 0 2px var(--template-set-1-border-color-2);
  color:var(--template-set-1-text-color);
  text-shadow:
    1px 1px 0 var(--template-set-1-text-outline-color),
    1px -1px 0 var(--template-set-1-text-outline-color),
    -1px 1px 0 var(--template-set-1-text-outline-color),
    -1px -1px 0 var(--template-set-1-text-outline-color);
  padding:10px;
}

/* these are a bit overqualified to override normal link styling */
.mw-parser-output .notice a,
.mw-parser-output .notice a:visited,
.mw-parser-output .notice a.extiw,
.mw-parser-output .notice a.extiw:visited,
.mw-parser-output .notice a.external,
.mw-parser-output .notice a.external:visited{
  color:var(--template-set-1-link-color);
}
/***********************
* End main page layout *
************************/

/**************************
* [[Template:Doc]] styles *
***************************/
.documentation {
    margin: 0em auto 1em;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid var(--wiki-content-border-color);
    border-radius: 1em;
    padding: 1em;
}

.documentation-header {
    padding-bottom: 3px;
    border-bottom: 1px solid #BDCAC3;
    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 *
*************/
:root {
	--pi-background: var(--wiki-content-background-color--secondary);
	--pi-border-color:rgba(var(--wiki-accent-color--rgb), 0.5);
	--pi-secondary-background:var(--wiki-accent-color);
}

.portable-infobox .pi-title,
.portable-infobox .pi-header {
	text-align:center;
	background:var(--pi-secondary-background);
	color:var(--wiki-accent-label-color);
}

.portable-infobox {
	border:1px solid var(--pi-border-color);
}
/****************
* End infoboxes *
*****************/