MediaWiki:Common.css: Difference between revisions

The Two Worlds Wiki - Documenting Two Worlds since 2008.
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/* Wiki Theme */
:root {
.TwoWorldsWiki {
--TwoWorldsWiki-primary-color: #D2DDE3;
border-radius: 10px;
--TwoWorldsWiki-secondary-color: #5BB2FF;
border: 3px solid #A78558;
--TwoWorldsWiki-tertiary-color: #21285A;
background-color: #426875;
--TwoWorldsWiki-border-color: #275178;
}
}


.TwoWorldsWiki td {
.TwoWorldsWiki,
background-color: #D9C790;
.templateTheme {
border: 3px solid var(--TwoWorldsWiki-border-color);
background-color: var(--TwoWorldsWiki-tertiary-color);
}
}


.TwoWorldsWiki th {
.TwoWorldsWiki th,
background-color: #6C97A8;
.templatePrimary {
background-color: var(--TwoWorldsWiki-secondary-color);
}
}


 
.TwoWorldsWiki td,
/* Sidebar */
.templateSecondary {
#mw-panel.collapsible-nav .portal h3 {
background-color: var(--TwoWorldsWiki-primary-color);
    padding: 4px 0 3px 1.5em;
    background-color: rgba(220, 198, 142, 5);
    margin-bottom: 0.25em;
}
 
#mw-panel.collapsible-nav .portal h3 a {
    font-variant-caps: petite-caps;
    font-weight: bold;
}
 
#mw-panel.collapsible-nav .portal .body ul li {
    padding: 0.25em 0 0.25em 0.5em;
    background: rgba(220, 198, 142, 5);
    margin-bottom: 0.25em;
    margin-right: 0.75em;
}
 
#mw-page-base {
    background: none;
}
 
/* Header logo placement */
.mw-body {
    position: relative;
    top: 9vw;
    background: #D9C790; /* page body foreground color and transparency */
    border: 1px solid;
}
}


#p-logo {
/* Site sub / Tagline settings */
    left: 30vw;
#siteSub {
    position: relative;
display: block;
/* banner
text-align: center;
    border: 1px solid #aeaeae;
font-size: calc(1em * 0.9);
    height: 120px;
    width: 510px;
 
    background: url(/w/images/2/2e/Shiren_1_DS_Background_-_Table_Mountain.png);
    background-size: 100%;
    background-position-x: 50%;
    background-position-y: 50%; */
}
}


#p-logo a {
body.page-Mystery_Dungeon_Franchise_Wiki.action-view #siteSub,
    margin-top: 45px;
body.page-Mystery_Dungeon_Franchise_Wiki.action-submit #siteSub {
    background-size: contain;
display: none;
    width: 33em;
    height: 100px;
}
}
#mw-head {
    position: absolute;
    top: 9vw;
}
.mw-footer {
    margin-top: 9vw;
    bottom: 0;
    position: relative;
}
/* This governs the Header placement */
h1 { text-align:center}
h2 { text-align:center}
h3 { text-align:center}
h4 { text-align:center}
h5 { text-align:center}
h6 { text-align:center}


/* This governs the sections on the Community portal */
/* This governs the sections on the Community portal */
.cpbox {
.cpbox {
    display: flex;
display: flex;
    flex-direction: row-reverse;
flex-direction: row-reverse;
    flex-wrap: wrap;
flex-wrap: wrap;
}
}


.cpbox #admins {
.cpbox #admins {
    box-sizing: border-box;
box-sizing: border-box;
    width: calc(33% - 10px);
width: calc(33% - 10px);
    margin: 5px;
margin: 5px;
    flex-grow: 1;
flex-grow: 1;
    min-width: 300px;
min-width: 300px;
}
}


.cpbox #help {
.cpbox #help {
    box-sizing: border-box;
box-sizing: border-box;
    width: calc(67% - 10px);
width: calc(67% - 10px);
    margin: 5px;
margin: 5px;
}
div#mw-panel div.portal li a[href="https://discord.gg/4dKnfpW"] {
    display: inline-block;
    position: relative;
    height: 20px;
    width: 119px
}
}


div#mw-panel div.portal li a[href="https://discord.gg/4dKnfpW"]::before {
/* This governs the page/section title placement */
    position: absolute;
h1,
    width: 100%;
h2,
    height: 100%;
h3,
    top: 0;
h4,
    left: 0;
h5,
    content: "";
h6 {
    background: url(https://discordapp.com/api/guilds/502973274125238284/embed.png) no-repeat;
text-align: center
}
}


/* Template documentation styles */
/* Template documentation styles
/* If modifying these styles, be sure to update the mobile skin! */
If modifying these styles, be sure to update the mobile skin! */
.doc {
.doc {
    margin: 0em auto 1em;
margin: 0 auto 1em;
    background-color: rgba(0, 0, 0, 0.1);
background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid #BDCAC3;
border: 2px solid #BDCAC3;
    border-radius: 1em;
padding: 1em;
    padding: 1em;
}
}


.doc-header {
.doc-header {
    padding-bottom: 3px;
padding-bottom: 3px;
    border-bottom: 1px solid #BDCAC3;
border-bottom: 1px solid #BDCAC3;
    margin-bottom: 1ex;
margin-bottom: 1ex;
}
}


.doc-footer {
.doc-footer {
    margin: 0;
margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid #BDCAC3;
border: 2px solid #BDCAC3;
    border-radius: 1em;
padding: 1em;
    padding: 1em;
}
}


/* Classes permitting setting of alignment on desktop only or differently on desktop and mobile */
/* Classes permitting setting of alignment on desktop only or differently on desktop and mobile  
/* (See .mobileleft, .mobilecenter, .mobileright in MediaWiki:Mobile.css for the mobile equivalents */
(See .mobileleft, .mobilecenter, .mobileright in MediaWiki:Mobile.css for the mobile equivalents */
.desktopleft {
.desktopleft {
    text-align: left;
text-align: left;
}
}


.desktopcenter {
.desktopcenter {
    text-align: center;
text-align: center;
}
}


.desktopright {
.desktopright {
    text-align: right;
text-align: right;
}
}


/* this CSS governs the responsive 2 column main page layout */
/* This CSS governs the responsive 2 column main page layout */
#fp-container {
#fp-container {
    display: grid;
display: grid;
    grid-template-areas: "a" "b" "c";
grid-template-areas: "a" "b" "c";
    grid-template-columns: 100%;
grid-template-columns: 100%;
}
}


#fp-container main .columns .leftcol,
#fp-container main .columns .leftcol,
#fp-container .columns .rightcol {
#fp-container .columns .rightcol {
    width: 100%;
width: 100%;
    margin: 0;
margin: 0;
    padding: 0;
padding: 0;
}
 
@media screen and (min-width:650px) {
    #fp-container .columns .leftcol {
        float: left;
        width: 50%;
    }
 
    #fp-container .columns .rightcol {
        float: right;
        width: 50%;
    }
}
@media screen and (min-width:990px) {
    #fp-container {
        grid-template-areas: "a b" "c c";
        grid-template-columns: 50% 50%;
    }
}
@media screen and (min-width:1350px) {
    #fp-container {
        grid-template-areas: "a b" "c b";
        grid-template-columns: auto 520px;
    }
}
}


.fp-section {
.fp-section {
    display: flex;
display: flex;
    flex-wrap: wrap;
flex-wrap: wrap;
}
}


#fp-top {
#fp-top {
    grid-area: a;
grid-template-areas: a;
}
}


#fp-flex {
#fp-flex {
    grid-area: b;
grid-template-areas: b;
}
}


#fp-bottom {
#fp-bottom {
    grid-area: c;
grid-template-areas: c;
}
 
/* Sidebar Discord embed */
 
#mw-panel .portal .body ul {
    min-width: calc(0.5em + 119px);
}
 
div#mw-panel div.portal li a[href="https://discord.gg/4dKnfpW"] {
    display: inline-block;
    position:relative;
    height: 20px;
    width: 119px;
}
 
div#mw-panel div.portal li a[href="https://discord.gg/4dKnfpW"]::before {
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    content:"";
    background:url(https://discordapp.com/api/guilds/502973274125238284/embed.png) no-repeat;
}
 
/* Classes from Gamepedia Help Wiki's Common.css */
 
.ambox {
    background-color: rgba(120,120,120,0.2);
    border-bottom-color: #383838;
    border-right-color: #383838;
    border-top-color: #383838;
    border-collapse: collapse;
    font-size: 95%;
    margin: 0 auto 2px auto;
    width: 80%;
}
}


.ambox-gray {
/* Misc */
    border-left-color: #383838;
}


.ambox.ambox-tiny {
/* Main page */
    font-size: 90%;
.mainPageHeader {
    margin: 2px 0;
color: black;
    width: auto;
font-size: 160%;
text-shadow: 0.3rem 0.3rem 0.3rem #0000004D;
}
}


.ambox + .ambox {
.mainPageBody {
    margin-top: -2px;
background-color: var(--TwoWorldsWiki-secondary-color);
}
}


.ambox-text {
.mainPageFooter {
    padding: 0.25em 0.5em;
font-size: 80%;
padding: 0.5rem 0.4rem;
}
}


.ambox-image {
.mainPageFlex {
    padding: 2px 0px 2px 0.5em;
display: flex;
    text-align: center;
    width: 60px;
}
}


.ambox-tiny .ambox-image {
.mainPageDiv {
    padding: 2px 0.5em;
padding: 0.25rem;
    text-align: left;
border: 5px solid var(--TwoWorldsWiki-border-color);
    width: auto;
background-color: var(--TwoWorldsWiki-primary-color);
margin: 0.5rem;
box-shadow: 0 0 0.5rem rgba(0, 0, 0, 1);
}
}


/* Ambox colors */
.mainPageContent {
.ambox-blue {
font-weight: bold;
    border-left: 10px solid #1e90ff;
text-align: center;
color: black;
background-color: var(--TwoWorldsWiki-secondary-color);
font-size: 120%;
border: 2px solid var(--TwoWorldsWiki-border-color);
padding: 0.5rem 0.4rem;
margin-bottom: 0.5rem;
box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
}
}


.ambox-red {
.mainPageContent > a,
    border-left: 10px solid #b22222;
.mainPageFooter > a,
.versiondiv > div > a {
color: black;
text-decoration: underline;
}
}


.ambox-orange {
.versiondiv {
    border-left: 10px solid #f28500;
background-color: var(--TwoWorldsWiki-secondary-color);
border: solid 2px var(--TwoWorldsWiki-border-color);
padding: 0.5rem;
font-weight: normal;
font-size: 80%;
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
}
}


.ambox-yellow {
.niwa {
    border-left: 10px solid #f4c430;
display: flex;
flex-flow: column wrap;
align-items: center;
justify-content: flex-start;
width: 75%;
margin: auto;
text-align: center;
}
}


.ambox-purple {
/* End Main page */
    border-left: 10px solid #9932cc;
}


.ambox-wiki {
.explain {
    border-left: 10px solid #454340;
text-decoration: underline dotted;
}
}


.ambox-gray {
/* If you want the tabs to be centered rather than left-justified with respect to the tab content */
    border-left: 10px solid #bba;
.tabber__header {
align-items: center;
}
}


.ambox-green {
.tabber__indicator {
    border-left: 10px solid #228b22;
align-self: stretch;
}
}


/* Infobox template style */
/* External links logos */
.infobox {
#content a[href^="https://www.youtube.com/"].external
    background-color: rgba(0, 0, 0, 0);
{
    border: 1px solid #505050;
background: url("https://upload.wikimedia.org/wikipedia/commons/0/09/YouTube_full-color_icon_%282017%29.svg") center right no-repeat;
    float: right;
background-size: 16px;
    font-size: 89%;  
padding-right: 18px;
    margin-bottom: 0.5em;
    padding: 0.2em;
    width: 300px;
}
}


.infobox td.infoboxlabel {
#content a[href^="https://twitter.com/"].external
    border: 2px solid inherit;  
{
    font-weight: bold;
background: url("https://upload.wikimedia.org/wikipedia/commons/c/ce/X_logo_2023.svg") center right no-repeat;
    padding: 0.5px 7px;
background-size: 16px;
    text-align: right;
padding-right: 18px;
}
}


.infoboxname {
#content a[href^="https://www.reddit.com/"].external
    background-color: #f58120;
{
    color: #000;
background: url("https://upload.wikimedia.org/wikipedia/commons/1/14/Ionicons_logo-reddit.svg") center right no-repeat;
    font-size: 110%;
background-size: 16px;
    font-weight: bold;
padding-right: 18px;
    padding: 0.5em;
}
}


.infoboxdescription {
/* hide potentially sensitive data on file pages */
    background-color: #f58120;
#mw_metadata .exif-gpslatitude,
    color: #000;
#mw_metadata .exif-gpslongitude,
#mw_metadata .exif-artist {
  display: none;
}
}


 
/* Sidebar Separator */
/* Table of Contents */
#n- {
.toc {
background: #a2a9b1;
    font-size: 95%;
font-size: 2px;
    border-radius: 10px;
margin: 2.2em 0;
    border: 3px solid #426875;
    background-color: #D9C790;
}
}


/*****************
/* Discord */
* Infobox styles *
#n-Discord a {
******************/
background: url(https://discord.com/api/guilds/502973274125238284/embed.png) no-repeat;
.infobox {
color: transparent !important;
  float: right;
display: inline-block;
  width: 23em;
height: 20px;
  margin-left: 1em;
width: 110px;
  margin-right: 1em;
  margin-bottom: 0.5em;
  padding: 4px;
  border:1px solid #aaaaaa;
  background-color:#f9f9f9
}
}


.infobox-table {
@media screen and (max-width: 550px) {
  width: 100%;
.mainPageFlex {
  padding: 0;
flex-flow: row wrap;
  background-color:transparent;
}
  border: 0;
.mainPageDiv,
.niwa {
width: -webkit-fill-available!important;
}
}
}


.infobox-header {
@media screen and (min-width: 650px) {
  font-size: 150%;
#fp-container .columns .leftcol {
  padding:0.4em;
float: left;
}
width: 50%;
 
}
.infobox-section {
  padding:0.05em 0.3em;
  text-align:center;
}
 
.infobox-header,
.infobox-section {
  font-weight:bold;
}
 
.infobox-centered {
  text-align: center;
}
 
.infobox-centered img {
  max-width:100%;
  height:auto;
}
 
.infobox-row {
  vertical-align: top;
}


.infobox-row-name {
#fp-container .columns .rightcol {
  text-align: left;
float: right;
  white-space: nowrap;
width: 50%;
  text-align:right;
}
  background:#ccc;
  padding: 0.1em 0.5em;
  width:40%;
}
}


.infobox-row-value {
@media screen and (min-width: 990px) {
  text-align:left
#fp-container {
grid-template-areas: "a b" "c c";
grid-template-columns: 50% 50%;
}
}
}


.infobox-spacer {
@media screen and (max-width: 1023px) {
  height: 0.5em;
.mainPageAbout {
max-height: 100vh;
overflow-y: scroll;
}
}
}
/*********************
* End infobox styles *
**********************/


.editOptions {
@media screen and (min-width: 1350px) {
  background-color:#FAE6CD;
#fp-container {
  border-color:#000
grid-template-areas: "a b" "c b";
grid-template-columns: auto 520px;
}
}
}


input,textarea {
@media screen and (max-width: 1439px) {
  background-color:#FAE6CD;
.mainPageDiv {
  border-color:#000; color:#000000
padding: 0.5rem;
}
}
}

Revision as of 20:53, November 30, 2023

/* CSS placed here will be applied to all skins */

:root {
	--TwoWorldsWiki-primary-color: #D2DDE3;
	--TwoWorldsWiki-secondary-color: #5BB2FF;
	--TwoWorldsWiki-tertiary-color: #21285A;
	--TwoWorldsWiki-border-color: #275178;
}

.TwoWorldsWiki,
.templateTheme {
	border: 3px solid var(--TwoWorldsWiki-border-color);
	background-color: var(--TwoWorldsWiki-tertiary-color);
}

.TwoWorldsWiki th,
.templatePrimary {
	background-color: var(--TwoWorldsWiki-secondary-color);
}

.TwoWorldsWiki td,
.templateSecondary {
	background-color: var(--TwoWorldsWiki-primary-color);
}

/* Site sub / Tagline settings */
#siteSub {
	display: block;
	text-align: center;
	font-size: calc(1em * 0.9);
}

body.page-Mystery_Dungeon_Franchise_Wiki.action-view #siteSub,
body.page-Mystery_Dungeon_Franchise_Wiki.action-submit #siteSub {
	display: none;
}

/* This governs the sections on the Community portal */
.cpbox {
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
}

.cpbox #admins {
	box-sizing: border-box;
	width: calc(33% - 10px);
	margin: 5px;
	flex-grow: 1;
	min-width: 300px;
}

.cpbox #help {
	box-sizing: border-box;
	width: calc(67% - 10px);
	margin: 5px;
}

/* This governs the page/section title placement */
h1,
h2,
h3,
h4,
h5,
h6 {
	text-align: center
}

/* Template documentation styles
If modifying these styles, be sure to update the mobile skin! */
.doc {
	margin: 0 auto 1em;
	background-color: rgba(0, 0, 0, 0.1);
	border: 2px solid #BDCAC3;
	padding: 1em;
}

.doc-header {
	padding-bottom: 3px;
	border-bottom: 1px solid #BDCAC3;
	margin-bottom: 1ex;
}

.doc-footer {
	margin: 0;
	background-color: rgba(0, 0, 0, 0.1);
	border: 2px solid #BDCAC3;
	padding: 1em;
}

/* Classes permitting setting of alignment on desktop only or differently on desktop and mobile 
(See .mobileleft, .mobilecenter, .mobileright in MediaWiki:Mobile.css for the mobile equivalents */
.desktopleft {
	text-align: left;
}

.desktopcenter {
	text-align: center;
}

.desktopright {
	text-align: right;
}

/* This CSS governs the responsive 2 column main page layout */
#fp-container {
	display: grid;
	grid-template-areas: "a" "b" "c";
	grid-template-columns: 100%;
}

#fp-container main .columns .leftcol,
#fp-container .columns .rightcol {
	width: 100%;
	margin: 0;
	padding: 0;
}

.fp-section {
	display: flex;
	flex-wrap: wrap;
}

#fp-top {
	grid-template-areas: a;
}

#fp-flex {
	grid-template-areas: b;
}

#fp-bottom {
	grid-template-areas: c;
}

/* Misc */

/* Main page */
.mainPageHeader {
	color: black;
	font-size: 160%;
	text-shadow: 0.3rem 0.3rem 0.3rem #0000004D;
}

.mainPageBody {
	background-color: var(--TwoWorldsWiki-secondary-color);
}

.mainPageFooter {
	font-size: 80%;
	padding: 0.5rem 0.4rem;
}

.mainPageFlex {
	display: flex;
}

.mainPageDiv {
	padding: 0.25rem;
	border: 5px solid var(--TwoWorldsWiki-border-color);
	background-color: var(--TwoWorldsWiki-primary-color);
	margin: 0.5rem;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 1);
}

.mainPageContent {
	font-weight: bold;
	text-align: center;
	color: black;
	background-color: var(--TwoWorldsWiki-secondary-color);
	font-size: 120%;
	border: 2px solid var(--TwoWorldsWiki-border-color);
	padding: 0.5rem 0.4rem;
	margin-bottom: 0.5rem;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
}

.mainPageContent > a,
.mainPageFooter > a,
.versiondiv > div > a {
	color: black;
	text-decoration: underline;
}

.versiondiv {
	background-color: var(--TwoWorldsWiki-secondary-color);
	border: solid 2px var(--TwoWorldsWiki-border-color);
	padding: 0.5rem;
	font-weight: normal;
	font-size: 80%;
	box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
}

.niwa {
	display: flex;
	flex-flow: column wrap;
	align-items: center;
	justify-content: flex-start;
	width: 75%;
	margin: auto;
	text-align: center;
}

/* End Main page */

.explain {
	text-decoration: underline dotted;
}

/* If you want the tabs to be centered rather than left-justified with respect to the tab content */
.tabber__header {
	align-items: center;
}

.tabber__indicator {
	align-self: stretch;
}

/* External links logos */
#content a[href^="https://www.youtube.com/"].external
{
	background: url("https://upload.wikimedia.org/wikipedia/commons/0/09/YouTube_full-color_icon_%282017%29.svg") center right no-repeat;
	background-size: 16px;
	padding-right: 18px;
}

#content a[href^="https://twitter.com/"].external
{
	background: url("https://upload.wikimedia.org/wikipedia/commons/c/ce/X_logo_2023.svg") center right no-repeat;
	background-size: 16px;
	padding-right: 18px;
}

#content a[href^="https://www.reddit.com/"].external
{
	background: url("https://upload.wikimedia.org/wikipedia/commons/1/14/Ionicons_logo-reddit.svg") center right no-repeat;
	background-size: 16px;
	padding-right: 18px;
}

/* hide potentially sensitive data on file pages */
#mw_metadata .exif-gpslatitude,
#mw_metadata .exif-gpslongitude,
#mw_metadata .exif-artist {
  display: none;
}

/* Sidebar Separator */
#n- {
	background: #a2a9b1;
	font-size: 2px;
	margin: 2.2em 0;
}

/* Discord */
#n-Discord a {
	background: url(https://discord.com/api/guilds/502973274125238284/embed.png) no-repeat;
	color: transparent !important;
	display: inline-block;
	height: 20px;
	width: 110px;
}

@media screen and (max-width: 550px) {
	.mainPageFlex {
		flex-flow: row wrap;
	}
	
	.mainPageDiv,
	.niwa {
		width: -webkit-fill-available!important;
	}
}

@media screen and (min-width: 650px) {
	#fp-container .columns .leftcol {
		float: left;
		width: 50%;
	}

	#fp-container .columns .rightcol {
		float: right;
		width: 50%;
	}
}

@media screen and (min-width: 990px) {
	#fp-container {
		grid-template-areas: "a b" "c c";
		grid-template-columns: 50% 50%;
	}
}

@media screen and (max-width: 1023px) {
	.mainPageAbout {
		max-height: 100vh;
		overflow-y: scroll;
	}
}

@media screen and (min-width: 1350px) {
	#fp-container {
		grid-template-areas: "a b" "c b";
		grid-template-columns: auto 520px;
	}
}

@media screen and (max-width: 1439px) {
	.mainPageDiv {
		padding: 0.5rem;
	}
}