MediaWiki:Common.css

From Astrea 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=Galdeano&display=swap');

/****************************
* 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   *
* [[Astrea  Wiki]]   *
**********************/

/* Big welcome banner */
#mp-banner-container {
	position:relative;
	border:1px solid var(--wiki-content-border-color);
	border-radius:20px;
	overflow:hidden;
}

#mp-welcome {
	position:relative;
	display:flex;
	flex-flow:column nowrap;
	align-items:center;
	justify-content:center;
	height:100%;
	width:100%;
	filter:drop-shadow(0px 2px 5px #9D98FF);
	font-family:var(--wiki-heading-font-family);
	font-size: 200%;
	color:#fff;
	z-index:2;
	padding:1em 0;
	box-sizing:border-box;
}

#mp-title {
	text-align:center;
	max-width:70%;
}

#mp-banner {
	position:relative;
	width:100%;
	height:100%;
	top:-100%;
	filter:blur(5px) brightness(50%);
	z-index:1;
	background:url(https://astrea.wiki.gg/images/e/e0/MP_banner.jpg); /* [[File:MP banner.jpg]] */
	background-size:cover;
	background-repeat:no-repeat;
	background-position:top center;
}

#mp-banner img {
	max-width:100%;
	height:auto;
}

/* end big welcome banner */

#mp-banner-container {grid-area:banner;}
#mp-about-box {grid-area:about;}
#mp-oracles-box {grid-area:oracles;}
#mp-external-box {grid-area:external;}
#mp-links-box {grid-area:links;}
#mp-wiki-box {grid-area:wiki;}

#mp-container {
	display:grid;
	grid-template-areas:"banner" "about" "links" "oracles" "external" "wiki";
	grid-template-columns:100%;
	gap:15px;
}

@media screen and (min-width:990px) {
	#mp-container {
		grid-template-areas:"banner banner" "about about" "links oracles" "external wiki";
		grid-template-columns:1fr 1fr;
	}
}

@media screen and (min-width:1350px) {
	#mp-container {
		grid-template-areas:"banner banner banner" "about about oracles" "links links external" "wiki wiki 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;
	border-radius:20px;
}

.mp-body {
	height: 100%;
	display: flex;
	padding:0.5em;
	flex-flow: column nowrap;
}

.mp-box.centered-content .mp-body {
	height: 100%;
	display: flex;
	flex-flow: column nowrap;
	justify-content: space-evenly;
}

.mp-box.has-floating-image {
	display:block;
}

.mp-box.has-floating-image .mp-body {
	height:unset;
	display:block;
}

.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-links > ul {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-evenly;
	margin: 2px;
	gap:10px;
}

.mp-links > ul > li {
	display:flex;
	flex-flow:row nowrap;
	align-items:center;
	text-align: center;
	box-sizing:border-box;
	flex: max(calc(50% - 5px), 5em) 1 1;
	border:1px solid var(--wiki-content-link-color);
	border-radius:15px;
	transition:0.1s ease-in;
}

.mp-links > ul > li:hover {
	background-color:rgba(var(--wiki-content-link-color--rgb), 0.2);
}

.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 a {
	text-decoration: underline;
}

.mp-links > ul > li > a {
	display: flex;
	align-items: center;
	justify-content: left;
	height:100%;
	flex:1 1 auto;
	box-sizing:border-box;
	padding:5px;
}

.mp-links > ul > li > a:first-child {
	justify-content:right;
}

.mp-links > ul > li > a:only-child {
	justify-content:center;
}

.mp-links > ul > li > a:not(:first-child) {
	padding-left:5px;
}

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

/************
* 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);
}

.pi-theme-baby .pi-image-thumbnail {
	width:100px;
}

/* 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-centered .die-container {
  margin: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;
}
/**/

/* used by [[Template:Infobox Oracle]] */
.infobox.oracle {
  margin-top:10px;
  border-radius:15px;
}

.infobox.oracle .infobox-header {
  background:none;
  border:none;
  border-bottom:1px solid var(--wiki-content-border-color);
  padding:0 48px 0.4em 48px;
  border-radius:0 0 0 10px;
}

.infobox.oracle .infobox-section {
  border-radius:10px;
}

.oracle-header {
  position:relative;
}

.oracle-icon {
  flex-grow:0;
  position:absolute;
  top:-21px;
  left:-24px;
  padding:10px;
  border:1px solid var(--wiki-content-border-color);
  background:var(--wiki-content-background-color--secondary);
  border-radius:50%;
}

.oracle-name {
  text-align:center;
}
/**/

/****************
* 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:Color]] *
******************************/
:root,
.theme-dark {
	--template-corruption-color:#FF0B00;
	--template-purification-color:#00A4FF;
	--template-status-color:#FFC600;
}
.theme-light {
	--template-corruption-color:#E91F0D;
	--template-purification-color:#0879D1;
	--template-status-color:#967110;
}

.corruption {color:var(--template-corruption-color);}
.purification {color:var(--template-purification-color);}
.status {color:var(--template-status-color);}
/*********************
* End Template:Color *
**********************/

/***************************
* Used by [[Template:Die]] *
****************************/
.die-container {
  background-image:url(/images/b/bb/Enemy_Dicebox.png); /* [[File:Enemy Dicebox.png]] */
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
  display:grid;
  grid-template-columns:2.5% 17% 10.5% 17% 1fr 17% 10.5% 17% 2.5%;
  grid-template-rows:6.5% 1fr 1fr 1fr 6%;
}

.die-face.face-1 {
  grid-area: 3/2/3/4;
}

.die-face.face-2 {
  grid-area: 2/3/2/5;
}

.die-face.face-3 {
  grid-area: 2/6/2/8;
}

.die-face.face-4 {
  grid-area: 3/7/3/9;
}

.die-face.face-5 {
  grid-area: 4/6/4/8;
}

.die-face.face-6 {
  grid-area: 4/3/4/5;
}

.die-face {
  container:face;
  container-type:size;
  display:flex;
  flex-flow:column nowrap;
  justify-content: center;
  align-items:center;
}

.die-actions-container {
  display:flex;
  flex-flow:column nowrap;
  align-items:center;
  justify-content: center;
  height:90%;
  width:90%;
}

.die-actions-container.actions-2 {
  background-image:url(/images/8/8c/Double_action_background.png); /* [[File:Double action background.png]] */
  background-size:80%;
  background-repeat:no-repeat;
  background-position:center;
}

.die-action {
  display:flex;
  flex-flow:row nowrap;
  align-items:center;
  justify-content:center;
  width: 100%;
  height: 100%;
}

.die-action-image,
.die-number {
  flex:0 0 auto;
  position:relative;
}

.die-number {
  color:#000;
  text-shadow:1px 1px 0 #E8CA96,
    -1px -1px 0 #E8CA96,
    -1px 1px 0 #E8CA96,
    1px -1px 0 #E8CA96,
    1px 0px 0 #E8CA96,
    -1px 0px 0 #E8CA96,
    0px 1px 0 #E8CA96,
    0px -1px 0 #E8CA96;
}

.die-action-image {
  display:flex;
  justify-content: center;
  align-items:center;
  height:70%;
  width:70%;
}

.die-actions-container.actions-2 .die-action-image {
  width:40%;
  height:40%;
}

.die-actions-container.actions-1 .die-action-image {
  height:70%;
  max-height:70%;
  width:70%;
  max-width:70%;
}

.die-action-image img{
  height:100%;
  max-height:100%;
  width:auto;
  max-width:initial; /* override a max-width added by infobox rules */
}

.die-actions-container.actions-2 .die-action:first-child .die-action-image {
  right:5%;
  top:30%;
}

.die-actions-container.actions-2 .die-action:first-child .die-number {
  right:0%;
  top:25%;
}

.die-actions-container.actions-2 .die-action:last-child .die-action-image {
  left:5%;
  bottom:30%;
}

.die-actions-container.actions-2 .die-action:last-child .die-number {
  left:0%;
  bottom:25%;
}

.die-actions-container.actions-2 .die-action:first-child .die-action-image:only-child {
	right: 15%;
}

.die-actions-container.actions-2 .die-action:last-child .die-action-image:only-child {
	left: 15%;
}

.die-actions-container.actions-1 .die-action {
  position:relative;
}

.die-actions-container.actions-1 .die-number {
  position:absolute;
  width:auto;
  right:5%;
  bottom:5%;
}

.die-actions-container.actions-2 .die-action:last-child {
  flex-direction:row-reverse;
}

@container face (min-width:1px) {
  .die-number {
    font-size:max(1em, 25cqh);
  }
}
/*******************
* End Template:Die *
********************/

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