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: Reverted
No edit summary
 
(51 intermediate revisions by the same user not shown)
Line 1: Line 1:
* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/* Wiki Font*/
:root {
@font-face {
--TwoWorldsWiki-primary-color: #D9C790;
  font-family: Alegrian;
--TwoWorldsWiki-secondary-color: #6C96A8;
  src: url(https://twoworldswiki.com//w/resources/assets/Alegrian.tff);
--TwoWorldsWiki-tertiary-color: #406A72;
--TwoWorldsWiki-border-color: #297999;
}
}


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


h1 {
.TwoWorldsWiki th,
    font-size:16pt;
.templatePrimary {
background-color: var(--TwoWorldsWiki-secondary-color);
}
}


/* This governs the sections on the Community portal */
.TwoWorldsWiki td,
 
.templateSecondary {
.cpbox {
background-color: var(--TwoWorldsWiki-primary-color);
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}
}


.cpbox #admins {
/* Wiki theme */
    box-sizing: border-box;
table.wikitable,
    width: calc(33% - 10px);
table.TwoWorldsWiki {
    margin: 5px;
background-color: var(--TwoWorldsWiki-tertiary-color);
    flex-grow: 1;
border: 3px solid var(--TwoWorldsWiki-border-color);
    min-width: 300px;
}
}


.cpbox #help {
table.wikitable {
    box-sizing: border-box;
margin: auto;
    width: calc(67% - 10px);
text-align: center;
    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 {
table.wikitable > * > tr > td,
    position: absolute;
table.wikitable > * > tr > th {
    width: 100%;
border: 3px solid var(--TwoWorldsWiki-border-color);
    height: 100%;
    top: 0;
    left: 0;
    content: "";
    background: url(https://discordapp.com/api/guilds/502973274125238284/embed.png) no-repeat;
}
}


/* This governs the page/section title placement */
table.wikitable > * > tr > th,
h1 { text-align:center}
table.TwoWorldsWiki > * > tr > th {
h2 { text-align:center}
background-color: var(--TwoWorldsWiki-secondary-color);
h3 { text-align:center}
h4 { text-align:center}
h5 { text-align:center}
h6 { text-align:center}
 
/* Template documentation styles */
/* If modifying these styles, be sure to update the mobile skin! */
.doc {
    margin: 0em auto 1em;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid #BDCAC3;
    border-radius: 1em;
    padding: 1em;
}
}


.doc-header {
table.wikitable > * > tr > td,
    padding-bottom: 3px;
table.TwoWorldsWiki > * > tr > td {
    border-bottom: 1px solid #BDCAC3;
background-color: var(--TwoWorldsWiki-primary-color);
    margin-bottom: 1ex;
}
}


.doc-footer {
.filehistory tr td:last-of-type {
    margin: 0;
word-break: break-word;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid #BDCAC3;
    border-radius: 1em;
    padding: 1em;
}
}


/* Classes permitting setting of alignment on desktop only or differently on desktop and mobile */
/* Site sub / Tagline settings */
/* (See .mobileleft, .mobilecenter, .mobileright in MediaWiki:Mobile.css for the mobile equivalents */
#siteSub {
.desktopleft {
display: block;
    text-align: left;
text-align: center;
font-size: calc(1em * 0.9);
}
}


.desktopcenter {
body.page-Two_Worlds_Wiki.action-view #siteSub,
    text-align: center;
body.page-Two_Worlds_Wiki.action-submit #siteSub {
display: none;
}
}


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


/* this CSS governs the responsive 2 column main page layout */
.cpbox #admins {
#fp-container {
box-sizing: border-box;
    display: grid;
width: calc(33% - 10px);
    grid-template-areas: "a" "b" "c";
margin: 5px;
    grid-template-columns: 100%;
flex-grow: 1;
min-width: 300px;
}
}


#fp-container main .columns .leftcol,
.cpbox #help {
#fp-container .columns .rightcol {
box-sizing: border-box;
    width: 100%;
width: calc(67% - 10px);
    margin: 0;
margin: 5px;
    padding: 0;
}
}


@media screen and (min-width:650px) {
/* This governs the page/section title placement */
    #fp-container .columns .leftcol {
h1,
        float: left;
h2,
        width: 50%;
h3,
    }
h4,
 
h5,
    #fp-container .columns .rightcol {
h6 {
        float: right;
text-align: center
        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 {
/* Template documentation styles
    display: flex;
If modifying these styles, be sure to update the mobile skin! */
    flex-wrap: wrap;
.doc {
margin: 0 auto 1em;
background-color: rgba(0, 0, 0, 0.1);
border: 2px solid #A78558;
padding: 1em;
}
}


#fp-top {
.doc-header {
    grid-area: a;
padding-bottom: 3px;
border-bottom: 1px solid #A78558;
margin-bottom: 1ex;
}
}


#fp-flex {
.doc-footer {
    grid-area: b;
margin: 0;
background-color: rgba(0, 0, 0, 0.1);
border: 2px solid #A78558;
padding: 1em;
}
}


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


/* Sidebar Discord embed */
.desktopcenter {
 
text-align: center;
#mw-panel .portal .body ul {
    min-width: calc(0.5em + 119px);
}
}


div#mw-panel div.portal li a[href="https://discord.gg/4dKnfpW"] {
.desktopright {
    display: inline-block;
text-align: right;
    position:relative;
    height: 20px;
    width: 119px;
}
}


div#mw-panel div.portal li a[href="https://discord.gg/4dKnfpW"]::before {
/* This CSS governs the responsive 2 column main page layout */
    position:absolute;
#fp-container {
    width:100%;
display: grid;
    height:100%;
grid-template-areas: "a" "b" "c";
    top:0;
grid-template-columns: 100%;
    left:0;
    content:"";
    background:url(https://discordapp.com/api/guilds/502973274125238284/embed.png) no-repeat;
}
}


/* Classes from Gamepedia Help Wiki's Common.css */
#fp-container main .columns .leftcol,
 
#fp-container .columns .rightcol {
.ambox {
width: 100%;
    background-color: rgba(120,120,120,0.2);
margin: 0;
    border-bottom-color: #383838;
padding: 0;
    border-right-color: #383838;
    border-top-color: #383838;
    border-collapse: collapse;
    font-size: 95%;
    margin: 0 auto 2px auto;
    width: 80%;
}
}


.ambox-gray {
.fp-section {
    border-left-color: #383838;
display: flex;
flex-wrap: wrap;
}
}


.ambox.ambox-tiny {
#fp-top {
    font-size: 90%;
grid-template-areas: a;
    margin: 2px 0;
    width: auto;
}
}


.ambox + .ambox {
#fp-flex {
    margin-top: -2px;
grid-template-areas: b;
}
}


.ambox-text {
#fp-bottom {
    padding: 0.25em 0.5em;
grid-template-areas: c;
}
}


.ambox-image {
/* Misc */
    padding: 2px 0px 2px 0.5em;
    text-align: center;
    width: 60px;
}


.ambox-tiny .ambox-image {
/* Main page */
    padding: 2px 0.5em;
.mainPageHeader {
    text-align: left;
color: black;
    width: auto;
font-size: 160%;
text-shadow: 0.3rem 0.3rem 0.3rem #0000004D;
}
}


/* Ambox colors */
.mainPageBody {
.ambox-blue {
background-color: var(--TwoWorldsWiki-secondary-color);
    border-left: 10px solid #1e90ff;
}
}


.ambox-red {
.mainPageFooter {
    border-left: 10px solid #b22222;
font-size: 80%;
padding: 0.5rem 0.4rem;
}
}


.ambox-orange {
.mainPageFlex {
    border-left: 10px solid #f28500;
display: flex;
}
}


.ambox-yellow {
.mainPageDiv {
    border-left: 10px solid #f4c430;
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);
}
}


.ambox-purple {
.mainPageContent {
    border-left: 10px solid #9932cc;
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);
}
}


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


.ambox-gray {
.versiondiv {
    border-left: 10px solid #bba;
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-green {
/* End Main page */
    border-left: 10px solid #228b22;
}


/* Infobox template style */
.w-100 {
.infobox {
width: 100%;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #505050;
    float: right;
    font-size: 89%;
    margin-bottom: 0.5em;
    padding: 0.2em;
    width: 300px;
}
}


.infobox td.infoboxlabel {
.w-75 {
    border: 2px solid inherit;
width: 75%;
    font-weight: bold;
    padding: 0.5px 7px;
    text-align: right;
}
}


.infoboxname {
.w-67 {
    background-color: #f58120;
width: 67%;
    color: #000;
    font-size: 110%;
    font-weight: bold;
    padding: 0.5em;
}
}


.infoboxdescription {
.w-50 {
    background-color: #f58120;
width: 50%;
    color: #000;
}
}


/* Template themes
.w-33 {
The following themes are applied to templates who are present in a huge amount of pages */
width: 33%;
 
/* Torneko 1 theme */
.torneko1 {
border-radius: 10px;
border: 3px solid #be6512;
background-color: #7b4712;
}
}


.torneko1 td {
.w-25 {
background-color: #eeeeed;
width: 25%;
}
}


.torneko1 th {
.explain {
background-color: #dc9915;
text-decoration: underline dotted;
}
}


/* Torneko 2 theme */
/* If you want the tabs to be centered rather than left-justified with respect to the tab content */
.torneko2 {
ul.tabbernav {
border-radius: 10px;
    text-align:center;
border: 3px solid #334a69;
background-color: #286dae;
}
}


.torneko2 td {
/* External links logos */
background-color: #cef9ff;
#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;
}
}


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


/* Torneko 3 theme */
#content a[href^="https://www.reddit.com/"].external
.torneko3 {
{
border-radius: 10px;
background: url("https://upload.wikimedia.org/wikipedia/commons/1/14/Ionicons_logo-reddit.svg") center right no-repeat;
border: 3px solid #0870A8;
background-size: 16px;
background-color: #000000;
padding-right: 18px;
}
}


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


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


/* Young Yangus theme */
/* Discord */
.youngyangus {
#n-Discord a {
border-radius: 10px;
background: url(https://discord.com/api/guilds/824318577380950046/embed.png) no-repeat;
border: 3px solid #7B2306;
color: transparent !important;
background-color: #58763F;
display: inline-block;
height: 20px;
width: 110px;
}
}


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


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


/* Shiren 1 theme */
#fp-container .columns .rightcol {
.shiren1 {
float: right;
border-radius: 10px;
width: 50%;
border: 3px solid #52639c;
}
background-color: #31427b;
}
}


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


.shiren1 th {
@media screen and (max-width: 1023px) {
background-color: #7b8cc6;
.mainPageAbout {
max-height: 100vh;
overflow-y: scroll;
}
}
}


/* Shiren 2 theme */
@media screen and (min-width: 1350px) {
 
#fp-container {
/* Shiren 3 theme */
grid-template-areas: "a b" "c b";
.shiren3 {
grid-template-columns: auto 520px;
border-radius: 10px;
}
border: 3px solid #63755B;
background-color: #3A552D;
color: #FFF;
}
}


.shiren3 td {
@media screen and (max-width: 1439px) {
background-color: #C6C3BC;
.mainPageDiv {
color: #000;
padding: 0.5rem;
}
}
}


.shiren3 th {
/* Classes from Gamepedia Help Wiki's Common.css */
background-color: #638F53;
color: #FFF;
}


/* working, but changes the color of all links
.ambox {
.shiren3 a:link {
    background-color: rgba(120,120,120,0.2);
color: #44B999;
    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%;
}
}


.shiren3 a:visited {
.ambox-gray {
color: #1C8E00;
    border-left-color: #383838;
}
}
*/


/* not working, attempt at changing the color of red links
.ambox.ambox-tiny {
.shiren3 a:new {
    font-size: 90%;
color: red;
    margin: 2px 0;
    width: auto;
}
}


.shiren3 a:new:visited {
.ambox + .ambox {
color: brown;
    margin-top: -2px;
}
}
*/


.shiren3underground {
.ambox-text {
border-radius: 10px;
    padding: 0.25em 0.5em;
border: 3px solid #313131;
background: #3C2F19;
}
}


.shiren3underground td {
.ambox-image {
background-color: #D8D7D0;
    padding: 2px 0px 2px 0.5em;
    text-align: center;
    width: 60px;
}
}


.shiren3underground th {
.ambox-tiny .ambox-image {
background-color: #6F6B45;
    padding: 2px 0.5em;
color: #FFF;
    text-align: left;
    width: auto;
}
}


.shiren3surface {
/* Ambox colors */
border-radius: 10px;
.ambox-blue {
border: 3px solid #313131;
    border-left: 10px solid #1e90ff;
background: #313131;
}
}


.shiren3surface td {
.ambox-red {
background-color: #D8D7D0;
    border-left: 10px solid #b22222;
}
}


.shiren3surface th {
.ambox-orange {
background-color: #639B5A;
    border-left: 10px solid #f28500;
}
}


.shiren3past {
.ambox-yellow {
border-radius: 10px;
    border-left: 10px solid #f4c430;
border: 3px solid #313131;
background: #343B3B;
}
}


.shiren3past td {
.ambox-purple {
background-color: #D8D7D0;
    border-left: 10px solid #9932cc;
}
}


.shiren3past th {
.ambox-wiki {
background-color: #5A9B9B;
    border-left: 10px solid #454340;
}
}


/* Shiren 4 theme */
.ambox-gray {
 
    border-left: 10px solid #bba;
/* Shiren 5 theme */
.shiren5 {
border-radius: 10px;
border: 3px solid #785894;
background-color: #372a2d;
}
}


.shiren5 td {
.ambox-green {
background-color: #ebe2d6;
    border-left: 10px solid #228b22;
}
 
.shiren5 th {
background-color: #c191b7;
}
 
/* Satellaview Shiren theme */
.satellaviewshiren {
border-radius: 10px;
border: 3px solid #000000;
background-color: #31280B; color:white;
}
 
.satellaviewshiren td {
background-color: #CCCEC0; color:black;
}
 
.satellaviewshiren th {
background-color: #8A7442;
}
 
/* Moonlit Village GB theme */
.moonlitvillagegb {
border-radius: 10px;
border: 3px solid #202909;
background-color: #526950; color:202909;
}
 
.moonlitvillagegb td {
background-color: #D0D0C0; color:black;
}
 
.moonlitvillagegb th {
background-color: #98AA69;
}
 
/* Magic Castle theme */
.magiccastle {
border-radius: 10px;
border: 3px solid #3C1790;
background-color: #3C1790; color:white;
}
 
.magiccastle td {
background-color: #D6B573; color:black;
}
 
.magiccastle th {
background-color: #A58CBD;
}
 
/* Asuka Arrives theme */
 
/* Chocobo MD1 theme */
 
/* Chocobo MD2 theme */
 
/* Chocobo MD3 theme */
.chocobo3 {
border-radius: 10px;
border: 3px solid #403a08;
background-color: #403a08;
}
 
.chocobo3 td {
background-color: #f7f6d4;
}
 
.chocobo3 th {
background-color: #f5ec42;
}
 
/* Red Rescue Team theme */
.rescueteam {
border-radius: 10px;
border: 3px solid #e83f25;
background-color: #8b3153;
}
 
.rescueteam td {
background-color: #f0f2f5;
}
 
.rescueteam th {
background-color: #d884a1;
}
 
/* Blue Rescue Team theme */
.rescueteamb {
border-radius: 10px;
border: 3px solid #275178;
background-color: #21285a;
}
 
.rescueteamb td {
background-color: #e3ebf0;
}
 
.rescueteamb th {
background-color: #30afd9;
}
 
/* Rescue Team DX theme */
.rescueteamdx {
border-radius: 10px;
border: 3px solid #451113;
background-color: #451113;
}
 
.rescueteamdx td {
background-color: #F2EAED;
}
 
.rescueteamdx th {
background-color: #DE4030;
}
 
/* Explorers of Time theme */
.explorerstime {
border-radius: 10px;
border: 3px solid #2e77b1;
background-color: #0f2d68;
}
 
.explorerstime td {
background-color: #e1e9ec;
}
 
.explorerstime th {
background-color: #57aade;
}
 
/* Explorers of Darkness theme */
.explorersdark {
border-radius: 10px;
border: 3px solid #9c2922;
background-color: #221b1e;
}
 
.explorersdark td {
background-color: #ddd9dd;
}
 
.explorersdark th {
background-color: #b74454;
}
 
/* Explorers of Sky theme */
.explorerssky {
border-radius: 10px;
border: 3px solid #326d4c;
background-color: #292921;
}
 
.explorerssky td {
background-color: #e1e8e4;
}
 
.explorerssky th {
background-color: #50a559;
}
 
/* Gates theme */
.gates {
    border-radius: 10px;
    border: 3px solid #0036a5;
    background-color: #0036a5;
}
 
.gates td {
    background-color: #d8d8c0;
}
 
.gates th {
    background-color: #656565;
    color: #FFF;
}
 
/* Super theme */
 
/* Etrian MD1 theme */
 
/* Etrian MD2 theme */
 
/* Shiren types theme */
 
/* Pokémon types theme */
 
td.pnormaltype {
    background-color: #E1F5D8;
}
}


td.pgrasstype {
    background-color: #C0F860;
}


td.pfiretype {
/* Widen Body */
    background-color: #F8D030;
.mw-body {
  padding: 1.25em 0em 0.5em 0em;
}
}


td.pwatertype {
.mw-body {
    background-color: #98D8D8;
padding: 1.25em 0em 0.5em 0em;
}
}


td.pelectrictype {
/* Fixes background of /w/api.php */
    background-color: #F8F878;
.mw-special-ApiHelp {
background: white;
}
}


td.picetype {
/* Hides the title and tagline on the given pages */
    background-color: #D0F8E8;
.page-Two_Worlds_Wiki.action-view h1,
.page-Two_Worlds_Wiki.action-view #siteSub,
.page-Two_Worlds_Wiki.action-submit h1,
.page-Two_Worlds_Wiki.action-submit #siteSub,
.page-Meta_Two_Worlds h1,
.page-Meta_Two_Worlds #siteSub
{
display: none;
}
}
td.pfightingtype {
    background-color: #F08030;
}
td.ppoisontype {
    background-color: #D880B8;
}
td.pgroundtype {
    background-color: #FFDE8C;
}
td.pflyingtype {
    background-color: #C8C0F8;
}
td.ppsychictype {
    background-color: #F8C0B0;
}
td.pbugtype {
    background-color: #D8E030;
}
td.procktype {
    background-color: #E0C068;
}
td.pghosttype {
    background-color: #A890F0;
}
td.pdragontype {
    background-color: #B8A0F8;
}
td.pdarktype {
    background-color: #A8A878;
}
td.psteeltype {
    background-color: #D5D5ED;
}
td.punknowntype {
    background-color: #E0E1D9;
}
td.pfairytype {
    background-color: #FF7CC0;
}
/* Wiki Theme */
.MDWiki {
border-radius: 10px;
border: 3px solid #000000;
background-color: #454340;
}
.MDWiki td {
background-color: #B5B6BB;
}
.MDWiki th {
background-color: #928F95;
}
/*****************
* Infobox styles *
******************/
.infobox {
  float: right;
  width: 23em;
  margin-left: 1em;
  margin-right: 1em;
  margin-bottom: 0.5em;
  padding: 4px;
  border:1px solid #aaaaaa;
  background-color:#f9f9f9
}
.infobox-table {
  width: 100%;
  padding: 0;
  background-color:transparent;
  border: 0;
}
.infobox-header {
  font-size: 150%;
  padding:0.4em;
}
.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 {
  text-align: left;
  white-space: nowrap;
  text-align:right;
  background:#ccc;
  padding: 0.1em 0.5em;
  width:40%;
}
.infobox-row-value {
  text-align:left
}
.infobox-spacer {
  height: 0.5em;
}
/*********************
* End infobox styles *
**********************/
/* Namespace themes
The following themes are applied to templates who are present in a huge amount of pages */
/* Namespace Background Colors */
/* .ns-3020 #content, .ns-3021 #content { background-color: rgba(0,0,0,0); } */
/* .ns-3020 div.thumb, .ns-3021 div.thumb { border-color: rgba(0,0,0,0); } */

Latest revision as of 23:27, January 1, 2025

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

:root {
	--TwoWorldsWiki-primary-color: #D9C790;
	--TwoWorldsWiki-secondary-color: #6C96A8;
	--TwoWorldsWiki-tertiary-color: #406A72;
	--TwoWorldsWiki-border-color: #297999;
}

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

/* Wiki theme */
table.wikitable,
table.TwoWorldsWiki {
	background-color: var(--TwoWorldsWiki-tertiary-color);
	border: 3px solid var(--TwoWorldsWiki-border-color);
}

table.wikitable {
	margin: auto;
	text-align: center;
}

table.wikitable > * > tr > td,
table.wikitable > * > tr > th {
	border: 3px solid var(--TwoWorldsWiki-border-color);
}

table.wikitable > * > tr > th,
table.TwoWorldsWiki > * > tr > th {
	background-color: var(--TwoWorldsWiki-secondary-color);
}

table.wikitable > * > tr > td,
table.TwoWorldsWiki > * > tr > td {
	background-color: var(--TwoWorldsWiki-primary-color);
}

.filehistory tr td:last-of-type {
	word-break: break-word;
}

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

body.page-Two_Worlds_Wiki.action-view #siteSub,
body.page-Two_Worlds_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 #A78558;
	padding: 1em;
}

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

.doc-footer {
	margin: 0;
	background-color: rgba(0, 0, 0, 0.1);
	border: 2px solid #A78558;
	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);
}

/* End Main page */

.w-100 {
	width: 100%;
}

.w-75 {
	width: 75%;
}

.w-67 {
	width: 67%;
}

.w-50 {
	width: 50%;
}

.w-33 {
	width: 33%;
}

.w-25 {
	width: 25%;
}

.explain {
	text-decoration: underline dotted;
}

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

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

/* 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 {
    border-left-color: #383838;
}

.ambox.ambox-tiny {
    font-size: 90%;
    margin: 2px 0;
    width: auto;
}

.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-wiki {
     border-left: 10px solid #454340;
}

.ambox-gray {
     border-left: 10px solid #bba;
}

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


/* Widen Body */
.mw-body {
  padding: 1.25em 0em 0.5em 0em;
}

.mw-body {
	padding: 1.25em 0em 0.5em 0em;
}

/* Fixes background of /w/api.php */
.mw-special-ApiHelp {
	background: white;
}

/* Hides the title and tagline on the given pages */
.page-Two_Worlds_Wiki.action-view h1,
.page-Two_Worlds_Wiki.action-view #siteSub,
.page-Two_Worlds_Wiki.action-submit h1,
.page-Two_Worlds_Wiki.action-submit #siteSub,
.page-Meta_Two_Worlds h1,
.page-Meta_Two_Worlds #siteSub
{
	display: none;
}