MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
mNo edit summary
Tag: Manual revert
Line 1: Line 1:
/* * MANA BREAK - OFFICIAL WIKI SKIN
.class { }/* needed for some reason for the @imports to work */
* Theme: Modern Adventure (Teal & Gold)
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
* Version: 2.0.0
*/


/* 1. IMPORTS
/* Imports caching */
  ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Montserrat:wght@400;500;600&display=swap');
/* Consolidated Wiki Modules */
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
/* ... other imports should be combined into a single ResourceLoader module for performance ... */
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Modal.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");


/* 2. VARIABLES & COLOR SYSTEM
.mw-body {
  ========================================================================== */
     margin-top: -1px;
:root {
     border: 1px solid azure;
     /* Primary Teal Palette (#1a6a7a) */
     border-radius: 1px;
    --primary-100: #e8f0f2;
}
     --primary-200: #b9d1d6;
body.skin-vector {
     --primary-300: #8ab2ba;
background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
    --primary-400: #5b939e;
}
    --primary-500: #1a6a7a; /* Base */
body.skin-vector-dark {
    --primary-600: #155562;
background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
    --primary-700: #10404a;
}
    --primary-800: #0a2a31;
    --primary-900: #051519;


    /* Accent Gold Palette (#eab759) */
.mobileHide, .mobile-only, .no-desktop {
    --gold-soft: #fdf6e9;
display: none!important;
    --gold-base: #eab759;
}
    --gold-dark: #c9932e;
 
/* || FIXES */
.wikiEditor-ui-text > .ui-resizable {
width: 100% !important;
max-width: 100%;
}
ul {
list-style: disc;
}


    /* Status Colors (WCAG AA Compliant) */
    --status-success: #2d8a57;
    --status-error: #c53030;
    --status-warning: #b7791f;
    --status-info: #2b6cb0;


    /* Light Theme Base */
h2 .mw-headline,
    --bg-page: #f8fafc;
h3 .mw-headline,
    --bg-content: #ffffff;
h4 .mw-headline {
    --bg-secondary: #f1f5f9;
font-weight: 500;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
}
}


/* Dark Theme Variables */
.vector-body h3 , .vector-body h4 , .vector-body h5 , .vector-body h6 {
.skin-vector-dark {
margin-bottom: 4px;
    --bg-page: #0f172a;
    --bg-content: #1e293b;
    --bg-secondary: #334155;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --primary-100: #0f2d33;
    --primary-500: #5eead4;
    --gold-soft: #2d261a;
}
}


/* 3. BASE ELEMENTS
a, a:visited, a:active,
  ========================================================================== */
.mw-parser-output a:is(.external, .external:visited, .external:active) {
body {
color: var(--theme-link-color);
    font-family: 'Cinzel', system-ui, -apple-system, sans-serif;
}
    background-color: var(--bg-page) !important;
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
    color: var(--text-main);
color: var(--theme-page-text-color);
    line-height: 1.6;
}
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
color: var(--theme-link-color);
}
}


h1, h2, h3, h4 {
.mw-parser-output a.external {
    font-family: 'Montserrat', sans-serif;
padding-right: 0;
    color: var(--primary-500);
font-size: inherit;
    font-weight: 600;
}
}


a {
.catlinks {
    color: var(--primary-500);
border-color: var(--theme-border-color);
    text-decoration: none;
border-radius: 6px;
    transition: color 0.2s ease;
background-color: var(--gray-050);
}
}


a:hover {
.CodeMirror-lines span {
    color: var(--primary-700);
font: 14px Consolas,Eupheima UCAS,Monaco,Menlo,monospace /* Source Editor */
    text-decoration: underline;
}
}


/* Focus States */
.wikiEditor-ui .ace_editor * {
a:focus-visible, button:focus-visible {
font-size: 13px;
    outline: 3px solid var(--primary-300);
font-family: monospace, monospace; /* Module */
    outline-offset: 2px;
    border-radius: 4px;
}
}


/* 4. WIKI COMPONENTS
.mw-input .mw-abusefilter-editor * {
  ========================================================================== */
font-size: 13px;
font-family: monospace, monospace;
}


/* Modernized Wikitable */
/* Hide default TOOLBOX nav section on sidebar */
.wikitable {
#mw-navigation > #mw-panel > #p-tb {
    width: 100% !important;
display: none;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden; /* Clips corners for radius */
    background: var(--bg-content);
}
}


.wikitable th {
/* Column template fix */
    background-color: var(--primary-500) !important;
.columntemplate ul,
    color: #ffffff !important;
.columntemplate ol {
    padding: 12px 15px !important;
margin-top: 0;
    font-weight: 600;
    text-align: left;
}
}


.wikitable td {
/* RC */
    padding: 10px 15px;
.mw-changeslist table {
    border-bottom: 1px solid var(--border-color);
width: unset;
}
}


.wikitable tr:last-child td { border-bottom: none; }
.gift-table .icon-list-container {
width: auto;
}


.wikitable tr:nth-child(even) { background-color: var(--bg-page); }
/* Quote template */
.quotetable {
width: auto;
}


.wikitable tr:hover { background-color: var(--primary-100); }
.Bug6200 {
margin-bottom: 0.75em;
}


/* Responsive Table Wrapper */
/* Code block */
@media (max-width: 768px) {
code, pre {
    .mw-parser-output { overflow-x: auto; }
background-color: var(--theme-page-background-color--secondary);
    .wikitable { min-width: 600px; }
color: var(--theme-page-text-color);
border: 1px solid var(--theme-border-color);
border-radius: 2px;
padding: 1px 4px;
font-family: Consolas,Eupheima UCAS,Monaco,Menlo,monospace;
}
}


/* Modern Navbox (Chip Style) */
code.code-block-table {
.navbox {
display: table;
    background: var(--bg-content) !important;
line-height: 21px;
    border: 1px solid var(--primary-500) !important;
padding:8px;
    border-radius: var(--radius-md);
    padding: 5px;
}
}


.navbox-title {
.code-block-table * {
    background: var(--primary-500) !important;
font: 14px Consolas,Eupheima UCAS,Monaco,Menlo,monospace;
    color: white !important;
    border-radius: 6px 6px 0 0;
    padding: 8px !important;
}
}


.navbox-group {
.code-block {
    background: var(--primary-100) !important;
display: inline-block;
    color: var(--primary-700) !important;
line-height: 21px;
    font-weight: 600 !important;
    width: 15%;
}
}


.navbox-list ul {
/* || MAIN PAGE */
    display: flex;
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }
    flex-wrap: wrap;
body.page-Main_Page.action-view .main-page-top {
    gap: 8px;
background-image: url(https://mbwiki.stairwaygames.work/w/images/c/c2/441Cover_image_only.png);
    list-style: none !important;
background-repeat: no-repeat;
    margin: 0 !important;
background-size: cover;
    padding: 10px !important;
width: 100%;
display: flex;
flex-direction: column;
gap: 4px;
color: rgb(67, 64, 61); /*fixed color due to bg image*/
text-align: center;
align-items: center;
}
}


.navbox-list li {
 
    background: var(--bg-secondary);
/* ||TABLE OF CONTENTS */
    padding: 4px 12px;
.toc {
    border-radius: 20px;
padding: 8px 12px;
    font-size: 0.9em;
border-radius: 4px;
    border: 1px solid var(--border-color);
background-color: var(--theme-page-background-color--secondary);
border: 1px solid var(--theme-border-color);
margin-top: 16px;
}
.toctogglelabel {
color: var(--theme-link-color);
}
.tocnumber {
color: var(--theme-page-text-color);
}
}


/* Table of Contents */
.vector-body .toc h2 {
.toc {
font-family: Fredoka, sans-serif;
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px !important;
    box-shadow: var(--shadow-sm);
}
}


.toc h2 {
/* TOC hide headings */
    font-size: 1.2rem;
.toclimit-2 .toclevel-1 ul,
    margin-bottom: 10px;
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
display: none;
}
}


/* 5. INFOBOXES & PORTABLE INFOBOXES
/* For Template:Changelist */
  ========================================================================== */
.changelist-header {
.portable-infobox, .infobox {
display: flex;
    float: right;
justify-content: space-between;
    clear: right;
align-items: center;
    width: 300px;
font-size: 88%;
    margin: 0 0 1rem 1rem;
margin: 0.3em 0;
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
}


.pi-title {
.changelist-content {
    background: var(--primary-500);
overflow: auto;
    color: #fff;
max-height: 384px;
    padding: 15px;
padding: 1em;
    text-align: center;
box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
-moz-box-sizing: border-box;
    font-size: 1.4rem;
-moz-border-radius-topleft: 0.5em;
background: transparent;
border-radius: 6px;
}
}


.pi-item {
.changelist-border {
    display: flex;
border: 1px solid var(--theme-border-color);
    justify-content: space-between;
border-left: 6px solid var(--accent);
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-color);
}
}


.pi-data-label { font-weight: 600; color: var(--text-muted); }


@media (max-width: 768px) {
/* For Template:Chat */
    .portable-infobox, .infobox {
.chat-wrapper {
        float: none;
display: flex;
        width: 100%;
flex-direction: column;
        margin: 1rem 0;
    }
}
}


/* 6. MAIN PAGE LAYOUT (#mp-container)
.chat-player,
  ========================================================================== */
.chat-npc {
.mp-grid {
display: flex;
    display: grid;
flex-direction: row;
    gap: 20px;
gap: 0.5em;
    margin: 20px 0;
}
}


.game-intro-card {
.chat-player-speaker {
    background: var(--bg-content);
white-space: nowrap;
    border: 1px solid var(--border-color);
min-width: 70px;
    border-radius: var(--radius-lg);
color: rgb(105, 172, 82);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
}


.game-intro-card:hover {
.chat-npc-speaker {
    transform: translateY(-4px);
white-space: nowrap;
    box-shadow: var(--shadow-md);
min-width: 70px;
    border-color: var(--primary-300);
color: rgb(237, 123, 103);
}
}


.game-header {
/* Hatnote */
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
.hatnote {
    color: white;
border-left: 4px solid var(--theme-border-color);
    padding: 15px 20px;
padding: 6px 12px;
border-radius: 4px;
background: linear-gradient(145deg, rgba(var(--theme-border-color-rgb),0.30) 0%, rgba(var(--theme-border-color-rgb),0) 100%);%);
margin: 8px 0;
}
}


.mana-line {
/* For [[Module:Formatting]] */
    height: 3px;
code.code-block {
    width: 50px;
display: inline-block;
    background: var(--gold-base);
line-height: 21px;
    margin-top: 8px;
    border-radius: 2px;
}
}
 
code.code-block-table {
/* Social Links Layout */
display: table;
.social-container {
line-height: 21px;
    display: flex;
}
    flex-wrap: wrap;
span.variable {
    justify-content: center;
opacity: 0.65;
    gap: 15px;
}
    margin-top: -30px; /* Overlap effect */
span.variable::after {
    position: relative;
opacity: 0.65;
    z-index: 10;
content: ">";
}
}
 
span.variable::before {
.social-pill {
opacity: 0.65;
    background: var(--bg-content);
content: "<";
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
}
}


/* 7. UTILITIES & ANIMATIONS
/* Quote */
  ========================================================================== */
.text-primary { color: var(--primary-500) !important; }
.bg-primary { background-color: var(--primary-500) !important; color: white; }
.text-gold { color: var(--gold-base) !important; }
.bg-gold-soft { background-color: var(--gold-soft) !important; }


.shadow-lg { box-shadow: var(--shadow-md); }
.pull-quote {
.rounded-full { border-radius: 9999px; }
font-style: italic;
margin: 0;
padding: 0 30px 8px !important
}


/* Animations */
.pull-quote::before {
@media (prefers-reduced-motion: no-preference) {
color: var(--accent);
    .animate-fade-in {
content: "“";
        animation: fadeIn 0.5s ease-out forwards;
display: block;
    }
font-size: 96px;
font-style: normal;
line-height: 72px;
margin: 4px 0 -45px -5px;;
}
}


@keyframes fadeIn {
.pull-quote__source::before {
    from { opacity: 0; transform: translateY(10px); }
content: "— ";
    to { opacity: 1; transform: translateY(0); }
margin-bottom:8px;
}
}


/* Loading Skeletons */
.pull-quote__text {
.skeleton {
margin-bottom:4px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
}


@keyframes skeleton-loading {
/* Gallery */
    0% { background-position: 200% 0; }
.gallerytext {
    100% { background-position: -200% 0; }
text-align: center;
font-size:100%;
}
}


/* 8. MESSAGE BOXES (Hatnotes)
/* Fix to Template Data */
  ========================================================================== */
.mw-templatedata-doc-params > * > tr > th {
.messagebox {
width: 150px;
    margin: 1rem 0;
    padding: 15px 20px;
    border-left: 5px solid;
    border-radius: 4px;
    background: var(--bg-secondary);
}
}


.messagebox-success { border-color: var(--status-success); color: var(--status-success); }
.mw-templatedata-doc-params {
.messagebox-error { border-color: var(--status-error); color: var(--status-error); }
width: auto;
.messagebox-warning { border-color: var(--status-warning); background: var(--gold-soft); }
max-width: 100%;
}


/* 9. PRINT STYLES
/* Space sidebar arrows properly */
  ========================================================================== */
#mw-panel.collapsible-nav .portal:is(.collapsed, .expanded) .vector-menu-heading {
@media print {
background-position: 95% center;
    #mw-panel, #p-personal, #p-search, #footer, .social-container {
        display: none !important;
    }
    .mw-body {
        margin: 0 !important;
        border: none !important;
    }
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
}


/* 10. VECTOR OVERRIDES (Personal Tools, Search)
/* Theme toggle */
  ========================================================================== */
.wds-icon {
#p-personal {
align-self: center;
    top: 5px !important;
margin: 0 6px;
    right: 15px !important;
pointer-events: none;
fill: currentColor;
}
}
 
.wds-icon-small {
#p-personal li a {
height: 18px;
    color: var(--primary-500) !important;
min-width: 18px;
    font-weight: 500;
width: 18px;
}
#p-personal .vector-menu-content-list,
#p-personal .mw-list-item > a {
display: flex;
align-items: center;
}
}
 
.cols {
.vector-search-box-input {
background-color: var(--theme-page-background-color--secondary);
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    background-color: var(--bg-secondary) !important;
}
}
 
#pagehistory li.selected {
/* 11. CSS-ONLY THEME TOGGLE CONCEPT
  background-color: var(--theme-page-background-color--secondary);
  (Note: Full persistence requires JS, but this styles the UI) */
  color: var(--theme-page-text-color);
#pt-theme a {
  outline: 1px dashed var(--theme-border-color);
    background: var(--primary-500) !important;
    color: white !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    margin-top: 5px;
}
}

Revision as of 15:04, 29 March 2026

.class { }/* needed for some reason for the @imports to work */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');

/* Imports caching */
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Modal.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");

.mw-body {
    margin-top: -1px;
    border: 1px solid azure;
    border-radius: 1px;
}
body.skin-vector {
	background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
}
body.skin-vector-dark {
	background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
}

.mobileHide, .mobile-only, .no-desktop {
	display: none!important;
}

/* || FIXES */
.wikiEditor-ui-text > .ui-resizable {
	width: 100% !important;
	max-width: 100%;
}
ul {
	list-style: disc;
}


h2 .mw-headline,
h3 .mw-headline,
h4 .mw-headline {
	font-weight: 500;
}

.vector-body h3 , .vector-body h4 , .vector-body h5 , .vector-body h6 {
	margin-bottom: 4px;
}

a, a:visited, a:active,
.mw-parser-output a:is(.external, .external:visited, .external:active) {
	color: var(--theme-link-color);
}
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
	color: var(--theme-page-text-color);
}
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
	color: var(--theme-link-color);
}

.mw-parser-output a.external {
	padding-right: 0;
	font-size: inherit;
}

.catlinks {
	border-color: var(--theme-border-color);
	border-radius: 6px;
	background-color: var(--gray-050);
}

.CodeMirror-lines span {
	font: 14px Consolas,Eupheima UCAS,Monaco,Menlo,monospace /* Source Editor */
}

.wikiEditor-ui .ace_editor * {
	font-size: 13px;
	font-family: monospace, monospace; /* Module */
}

.mw-input .mw-abusefilter-editor *	{
	font-size: 13px;
	font-family: monospace, monospace;
}

/* Hide default TOOLBOX nav section on sidebar */
#mw-navigation > #mw-panel > #p-tb {
	display: none;
}

/* Column template fix */
.columntemplate ul,
.columntemplate ol {
	margin-top: 0;
}

/* RC */
.mw-changeslist table {
	width: unset;
}

.gift-table .icon-list-container {
	width: auto;
}

/* Quote template */
.quotetable {
	width: auto;
}

.Bug6200 {
	margin-bottom: 0.75em;
}

/* Code block */
code, pre {
	background-color: var(--theme-page-background-color--secondary);
	color: var(--theme-page-text-color);
	border: 1px solid var(--theme-border-color);
	border-radius: 2px;
	padding: 1px 4px;
	font-family: Consolas,Eupheima UCAS,Monaco,Menlo,monospace;
}

code.code-block-table {
	display: table;
	line-height: 21px;
	padding:8px;
}

.code-block-table * {
	font: 14px Consolas,Eupheima UCAS,Monaco,Menlo,monospace;
}

.code-block {
	display: inline-block;
	line-height: 21px;
}

/* || MAIN PAGE */
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }
body.page-Main_Page.action-view .main-page-top {
	background-image: url(https://mbwiki.stairwaygames.work/w/images/c/c2/441Cover_image_only.png);
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: rgb(67, 64, 61); /*fixed color due to bg image*/
	text-align: center;
	align-items: center;
}


/* ||TABLE OF CONTENTS */
.toc {
	padding: 8px 12px;
	border-radius: 4px;
	background-color: var(--theme-page-background-color--secondary);
	border: 1px solid var(--theme-border-color);
	margin-top: 16px;
}
.toctogglelabel {
	color: var(--theme-link-color);
}
.tocnumber {
	color: var(--theme-page-text-color);
}

.vector-body .toc h2 {
	font-family: Fredoka, sans-serif;
}

/* TOC hide headings */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
	display: none;
}

/* For Template:Changelist */
.changelist-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 88%;
	margin: 0.3em 0;
}

.changelist-content {
	overflow: auto;
	max-height: 384px;
	padding: 1em;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-moz-border-radius-topleft: 0.5em;
	background: transparent;
	border-radius: 6px;
}

.changelist-border {
	border: 1px solid var(--theme-border-color);
	border-left: 6px solid var(--accent);
}


/* For Template:Chat */
.chat-wrapper {
	display: flex;
	flex-direction: column;
}

.chat-player,
.chat-npc {
	display: flex;
	flex-direction: row;
	gap: 0.5em;
}

.chat-player-speaker {
	white-space: nowrap;
	min-width: 70px;
	color: rgb(105, 172, 82);
}

.chat-npc-speaker {
	white-space: nowrap;
	min-width: 70px;
	color: rgb(237, 123, 103);
}

/* Hatnote */
.hatnote {
		border-left: 4px solid var(--theme-border-color);
	padding: 6px 12px;
	border-radius: 4px;
	background: linear-gradient(145deg, rgba(var(--theme-border-color-rgb),0.30) 0%, rgba(var(--theme-border-color-rgb),0) 100%);%);
	margin: 8px 0;
}

/* For [[Module:Formatting]] */
code.code-block {
	display: inline-block;
	line-height: 21px;
}
code.code-block-table {
	display: table;
	line-height: 21px;
}
span.variable {
	opacity: 0.65;
}
span.variable::after {
	opacity: 0.65;
	content: ">";
}
span.variable::before {
	opacity: 0.65;
	content: "<";
}

/* Quote */

.pull-quote {
	font-style: italic;
	margin: 0;
	padding: 0 30px 8px !important
}

.pull-quote::before {
	color: var(--accent);
	content: "“";
	display: block;
	font-size: 96px;
	font-style: normal;
	line-height: 72px;
	margin: 4px 0 -45px -5px;;
}

.pull-quote__source::before {
	content: "— ";
	margin-bottom:8px;
}

.pull-quote__text {
	margin-bottom:4px;
}

/* Gallery */
.gallerytext {
	text-align: center;
	font-size:100%;
}

/* Fix to Template Data */
.mw-templatedata-doc-params > * > tr > th {
	width: 150px;
}

.mw-templatedata-doc-params {
	width: auto;
	max-width: 100%;
}

/* Space sidebar arrows properly */
#mw-panel.collapsible-nav .portal:is(.collapsed, .expanded) .vector-menu-heading {
	background-position: 95% center;
}

/* Theme toggle */
.wds-icon {
	align-self: center;
	margin: 0 6px;
	pointer-events: none;
	fill: currentColor;
}
.wds-icon-small {
	height: 18px;
	min-width: 18px;
	width: 18px;
}
#p-personal .vector-menu-content-list,
#p-personal .mw-list-item > a {
	display: flex;
	align-items: center;
}
.cols {
	background-color: var(--theme-page-background-color--secondary);
}
#pagehistory li.selected {
  background-color: var(--theme-page-background-color--secondary);
  color: var(--theme-page-text-color);
  outline: 1px dashed var(--theme-border-color);
}