MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
m (Reverted edits by Ais (talk) to last revision by Tama07)
Tags: Rollback Reverted
mNo edit summary
 
(221 intermediate revisions by the same user not shown)
Line 1: Line 1:
.class { }/* needed for some reason for the @imports to work */
/* ============================================
  ALL @IMPORTS MUST BE AT THE VERY TOP
  ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
@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");


/* Imports caching */
/* ============================================
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
  CSS VARIABLES (FALLBACKS FOR MISSING IMPORTS)
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
  ============================================ */
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Modal.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");
 
/* ===== TERRARIA-STYLE WIKI THEME ===== */
/* Reset and base styles */
:root {
:root {
     --primary-color: #1e3a5f;
    /* Theme Colors - Fallbacks if Colors.css fails */
     --secondary-color: #2a4d7e;
     --theme-page-background-color: #0a0a1a;
     --accent-color: #4a9ae9;
     --theme-page-background-color--secondary: #16213e;
     --text-primary: #e0e0e0;
     --theme-page-text-color: #eaeef2;
     --text-secondary: #b0b0b0;
     --theme-link-color: #7c9eff;
     --background-dark: #121212;
     --theme-border-color: #2c3e50;
     --background-medium: #1a1a1a;
     --theme-border-color-rgb: 44, 62, 80;
     --background-light: #242424;
     --accent: #6c5ce7;
     --border-color: #333;
     --accent-light: #8c7cf5;
     --success-color: #4caf50;
     --gray-050: rgba(255, 255, 255, 0.05);
     --warning-color: #ff9800;
   
     --danger-color: #f44336;
    /* Main Page Layout Variables */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
     --main-page-layout--desktop: 'banner banner banner' 'about about updates' 'starts starts starts' 'items items items' 'characters characters characters' 'enemies enemies enemies' 'area area area';
     --main-page-layout--tablet: 'banner banner' 'about updates' 'starts starts' 'items items' 'characters characters' 'enemies enemies' 'area area';
     --main-page-layout--mobile: 'banner' 'about' 'updates' 'starts' 'items' 'characters' 'enemies' 'area';
}
}


/* Global body styling */
/* ============================================
body {
  BASE LAYOUT FIXES
     background-color: var(--background-dark);
  ============================================ */
     color: var(--text-primary);
.mw-body {
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     margin-top: -1px;
     line-height: 1.6;
     border: 1px solid azure;
    margin: 0;
     border-radius: 1px;
    padding: 0;
     background-color: transparent;
}
}


/* ===== HEADER RESTYLING ===== */
body.skin-vector,
#mw-page-base {
body.skin-vector-dark {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
    height: 60px;
}
}


#mw-head {
/* Hide default elements */
     position: relative;
.mobileHide, .mobile-only, .no-desktop {
    z-index: 1000;
     display: none !important;
}
}


#mw-head-base {
/* Fix for hidden H1 on main page */
     height: 60px;
body.page-Main_Page.action-view h1.firstHeading,
    background: transparent;
body.page-Main_Page.action-submit h1.firstHeading {
     display: none;
}
}


/* Header container */
/* ============================================
.mw-body, .parsoid-body {
  MAIN PAGE GRID LAYOUT
     margin: 0;
  ============================================ */
     padding: 0;
#mp-container {
     background: var(--background-dark);
     display: grid;
    gap: 2rem;
     padding: 1rem;
     max-width: 1400px;
    margin: 0 auto;
}
}


/* Logo area */
/* Desktop Layout */
#p-logo {
@media (min-width: 1024px) {
    position: absolute;
    #mp-container {
    left: 20px;
        grid-template-areas: var(--main-page-layout--desktop);
     top: 10px;
        grid-template-columns: repeat(3, 1fr);
     }
}
}


#p-logo a {
/* Tablet Layout */
    display: block;
@media (min-width: 768px) and (max-width: 1023px) {
    background: none;
    #mp-container {
     padding: 0;
        grid-template-areas: var(--main-page-layout--tablet);
        grid-template-columns: repeat(2, 1fr);
     }
}
}


/* Search box */
/* Mobile Layout */
#simpleSearch {
@media (max-width: 767px) {
     position: absolute;
     #mp-container {
    right: 200px;
        grid-template-areas: var(--main-page-layout--mobile);
    top: 15px;
        grid-template-columns: 1fr;
    width: 300px;
        gap: 1rem;
    border-radius: 20px;
     }
    overflow: hidden;
     box-shadow: var(--shadow);
}
}


#searchInput {
/* MP Box styling */
    width: 100%;
.mp-box {
    padding: 10px 45px 10px 20px;
     animation: fadeInUp 0.5s ease forwards;
    background: var(--background-medium);
     opacity: 0;
     border: 2px solid var(--accent-color);
    color: var(--text-primary);
    font-size: 14px;
    border-radius: 20px;
     transition: all 0.3s ease;
}
}


#searchInput:focus {
/* Staggered animations */
    outline: none;
.mp-box:nth-child(1) { animation-delay: 0.05s; }
    border-color: var(--accent-color);
.mp-box:nth-child(2) { animation-delay: 0.1s; }
    box-shadow: 0 0 0 3px rgba(74, 154, 233, 0.3);
.mp-box:nth-child(3) { animation-delay: 0.15s; }
.mp-box:nth-child(4) { animation-delay: 0.2s; }
.mp-box:nth-child(5) { animation-delay: 0.25s; }
.mp-box:nth-child(6) { animation-delay: 0.3s; }
.mp-box:nth-child(7) { animation-delay: 0.35s; }
.mp-box:nth-child(8) { animation-delay: 0.4s; }
 
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
}


#searchButton, #mw-searchButton {
/* ============================================
     position: absolute;
  GAME INTRO CARDS
     right: 0;
  ============================================ */
     top: 0;
.game-intro-card {
     background: var(--theme-page-background-color--secondary);
     border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--theme-border-color);
     transition: transform 0.2s ease, box-shadow 0.2s ease;
     height: 100%;
     height: 100%;
    width: 40px;
    background: var(--accent-color);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 0 20px 20px 0;
    transition: background 0.3s ease;
}
}


#searchButton:hover, #mw-searchButton:hover {
.game-intro-card:hover {
     background: #3a89d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
 
.game-header {
    margin-bottom: 1rem;
    position: relative;
}
 
.mana-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
     background: linear-gradient(135deg, var(--accent), #a8c0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    letter-spacing: 0.5px;
    margin: 0 !important;
}
}


/* ===== SIDEBAR (LEFT NAVIGATION) ===== */
.mana-text img {
#mw-panel {
     vertical-align: middle;
     background: var(--background-medium);
     margin-left: 8px;
    border-right: 1px solid var(--border-color);
    width: 220px;
    padding-top: 80px;
     box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}
}


.portal {
.mana-line {
     margin: 0;
    height: 3px;
     padding: 15px 0;
    background: linear-gradient(90deg, var(--accent), transparent);
     border-bottom: 1px solid var(--border-color);
     margin-top: 0.5rem;
     width: 100%;
}
 
.game-content {
     color: var(--theme-page-text-color);
    line-height: 1.6;
}
}


.portal h3 {
/* ============================================
     font-size: 16px;
  HEADING STYLES
    color: var(--accent-color);
  ============================================ */
    margin: 0 0 10px 15px;
.heading-char {
    padding: 0;
     font-size: 1.1rem;
     font-weight: 600;
     font-weight: 600;
     text-transform: uppercase;
     color: var(--accent-light);
     letter-spacing: 0.5px;
    margin: 1rem 0 0.5rem 0;
     padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
 
.heading-char a {
    color: var(--accent-light);
    text-decoration: none;
}
}


.portal .body {
.heading-char a:hover {
     margin: 0;
     text-decoration: underline;
    padding: 0;
}
}


.portal .body ul {
/* ============================================
  AUTO GRID LISTS
  ============================================ */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
     list-style: none;
     list-style: none;
    margin: 0;
     padding: 0;
     padding: 0;
    margin: 0.5rem 0;
}
}


.portal .body li {
.auto-grid li {
     margin: 0;
     padding: 0.25rem 0;
    padding: 0;
}
}


.portal .body li a {
.auto-grid li a {
    display: block;
     color: var(--theme-link-color);
    padding: 8px 20px;
     color: var(--text-secondary);
     text-decoration: none;
     text-decoration: none;
     transition: all 0.3s ease;
     transition: color 0.2s ease;
     font-size: 14px;
     display: inline-block;
     border-left: 3px solid transparent;
}
 
.auto-grid li a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}
 
/* ============================================
  BANNER SECTION
  ============================================ */
#mp-box-banner .mp-body {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
     border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}
}


.portal .body li a:hover {
/* Social links */
     background: rgba(74, 154, 233, 0.1);
.social {
     color: var(--accent-color);
    display: flex;
     border-left-color: var(--accent-color);
     justify-content: center;
     padding-left: 25px;
     gap: 1rem;
     flex-wrap: wrap;
     margin-top: 2rem;
}
}


.portal .body li a:active {
.iconname {
     background: rgba(74, 154, 233, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
     background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
}


/* ===== MAIN CONTENT AREA ===== */
.iconname:hover {
#content {
     background: rgba(108, 92, 231, 0.3);
     margin-left: 240px;
     transform: translateY(-2px);
    margin-right: 0;
     padding: 20px 40px;
    max-width: none;
    background: var(--background-dark);
}
}


.mw-body {
.iconname a {
     border: none;
     color: white !important;
     margin: 0;
    text-decoration: none;
     font-weight: 500;
}
}


.mw-body .firstHeading {
/* ============================================
    font-size: 36px;
  WIKI FIXES & IMPROVEMENTS
    color: var(--accent-color);
  ============================================ */
    margin: 0 0 20px 0;
/* Editor fixes */
    padding-bottom: 15px;
.wikiEditor-ui-text > .ui-resizable {
    border-bottom: 3px solid var(--accent-color);
     width: 100% !important;
     font-weight: 700;
     max-width: 100%;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
}


/* Content styling */
/* List styles */
.mw-body-content {
ul {
     font-size: 16px;
     list-style: disc;
    line-height: 1.7;
}
}


.mw-body-content p {
/* Headings */
     margin: 15px 0;
h2 .mw-headline,
h3 .mw-headline,
h4 .mw-headline {
     font-weight: 500;
}
}


.mw-body-content h2 {
.vector-body h3,
    color: var(--text-primary);
.vector-body h4,
    border-bottom: 2px solid var(--accent-color);
.vector-body h5,
    padding-bottom: 8px;
.vector-body h6 {
     margin: 30px 0 20px 0;
     margin-bottom: 4px;
    font-size: 24px;
    font-weight: 600;
}
}


.mw-body-content h3 {
/* Link colors */
     color: var(--accent-color);
a, a:visited, a:active,
    margin: 25px 0 15px 0;
.mw-parser-output a:is(.external, .external:visited, .external:active) {
    font-size: 20px;
     color: var(--theme-link-color);
    font-weight: 600;
}
}


.mw-body-content h4 {
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
     color: var(--text-secondary);
     color: var(--theme-page-text-color);
    margin: 20px 0 10px 0;
    font-size: 18px;
}
}


/* Links */
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
.mw-body-content a {
     color: var(--theme-link-color);
     color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-color);
    transition: all 0.3s ease;
}
}


.mw-body-content a:hover {
.mw-parser-output a.external {
     color: #7ab8ff;
     padding-right: 0;
     border-bottom: 1px solid #7ab8ff;
     font-size: inherit;
}
}


.mw-body-content a:visited {
/* Categories */
     color: #9d6cd8;
.catlinks {
    border-color: var(--theme-border-color);
    border-radius: 6px;
     background-color: var(--gray-050);
}
}


/* ===== FOOTER ===== */
/* Code blocks */
#footer {
code, pre {
     background: var(--background-medium);
     background-color: var(--theme-page-background-color--secondary);
     border-top: 3px solid var(--accent-color);
    color: var(--theme-page-text-color);
     margin: 40px 0 0 240px;
     border: 1px solid var(--theme-border-color);
     padding: 30px 40px;
     border-radius: 2px;
     color: var(--text-secondary);
     padding: 1px 4px;
     font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
}


.footer-icons {
code.code-block-table {
     text-align: center;
     display: table;
     margin-bottom: 20px;
    line-height: 21px;
     padding: 8px;
}
}


.footer-places, .footer-info {
.code-block-table * {
     display: flex;
     font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 15px 0;
}
}


.footer-places li, .footer-info li {
.code-block {
     list-style: none;
     display: inline-block;
     margin: 5px 0;
     line-height: 21px;
}
}


.footer-places a, .footer-info a {
/* Table of Contents */
    color: var(--text-secondary);
.toc {
    text-decoration: none;
     padding: 8px 12px;
     padding: 5px 10px;
     border-radius: 4px;
     border-radius: 4px;
     transition: all 0.3s ease;
     background-color: var(--theme-page-background-color--secondary);
    border: 1px solid var(--theme-border-color);
    margin-top: 16px;
}
}


.footer-places a:hover, .footer-info a:hover {
.toctogglelabel {
     color: var(--accent-color);
     color: var(--theme-link-color);
    background: rgba(74, 154, 233, 0.1);
}
}


/* ===== TABLES ===== */
.tocnumber {
.mw-body-content table {
     color: var(--theme-page-text-color);
     width: 100%;
}
    border-collapse: collapse;
 
    margin: 20px 0;
.vector-body .toc h2 {
    background: var(--background-light);
     font-family: 'Fredoka', sans-serif;
    border-radius: 8px;
     overflow: hidden;
    box-shadow: var(--shadow);
}
}


.mw-body-content table.wikitable {
/* Hatnote */
     border: 1px solid var(--border-color);
.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;
}
}


.mw-body-content table.wikitable > tr > th,
/* Variables styling */
.mw-body-content table.wikitable > * > tr > th {
span.variable {
     background: var(--primary-color);
     opacity: 0.65;
    color: white;
    font-weight: 600;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}
}


.mw-body-content table.wikitable > tr > td,
span.variable::after {
.mw-body-content table.wikitable > * > tr > td {
     opacity: 0.65;
     border: 1px solid var(--border-color);
     content: ">";
     padding: 10px 15px;
    color: var(--text-primary);
}
}


.mw-body-content table.wikitable > tr:nth-child(even) {
span.variable::before {
     background: rgba(255, 255, 255, 0.05);
     opacity: 0.65;
    content: "<";
}
}


.mw-body-content table.wikitable > tr:hover {
/* Pull quotes */
     background: rgba(74, 154, 233, 0.1);
.pull-quote {
    font-style: italic;
    margin: 0;
     padding: 0 30px 8px !important;
}
}


/* ===== CODE & PRE ===== */
.pull-quote::before {
.mw-body-content pre,
     color: var(--accent);
.mw-body-content code {
     content: "“";
     background: var(--background-light);
    display: block;
     border: 1px solid var(--border-color);
    font-size: 96px;
     border-radius: 6px;
    font-style: normal;
     font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
     line-height: 72px;
     margin: 4px 0 -45px -5px;
}
}


.mw-body-content pre {
.pull-quote__source::before {
     padding: 15px;
     content: "— ";
     overflow-x: auto;
     margin-bottom: 8px;
    margin: 20px 0;
}
}


.mw-body-content code {
.pull-quote__text {
     padding: 2px 6px;
     margin-bottom: 4px;
    font-size: 14px;
}
}


/* ===== NAVBOXES & TEMPLATES ===== */
/* Gallery */
.navbox {
.gallerytext {
     background: var(--background-light);
     text-align: center;
    border: 1px solid var(--border-color);
     font-size: 100%;
    border-radius: 8px;
    margin: 20px 0;
    padding: 15px;
     box-shadow: var(--shadow);
}
}


.navbox-title {
/* Changelist */
     background: var(--primary-color);
.changelist-header {
     color: white;
     display: flex;
     padding: 10px 15px;
     justify-content: space-between;
     margin: -15px -15px 15px -15px;
     align-items: center;
     border-radius: 8px 8px 0 0;
     font-size: 88%;
    font-weight: 600;
     margin: 0.3em 0;
}
}


/* ===== BUTTONS ===== */
.changelist-content {
.mw-ui-button {
     overflow: auto;
     background: var(--accent-color);
     max-height: 384px;
     color: white;
     padding: 1em;
     border: none;
     box-sizing: border-box;
     padding: 8px 20px;
     border-radius: 6px;
     border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
}


.mw-ui-button:hover {
.changelist-border {
     background: #3a89d9;
     border: 1px solid var(--theme-border-color);
     transform: translateY(-2px);
     border-left: 6px solid var(--accent);
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
 
/* Chat wrapper */
.chat-wrapper {
    display: flex;
     flex-direction: column;
}
 
.chat-player,
.chat-npc {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}
}


.mw-ui-button:active {
.chat-player-speaker {
     transform: translateY(0);
    white-space: nowrap;
    min-width: 70px;
     color: rgb(105, 172, 82);
}
}


/* ===== SPECIAL PAGES ===== */
.chat-npc-speaker {
.catlinks {
     white-space: nowrap;
     background: var(--background-light);
     min-width: 70px;
    border: 1px solid var(--border-color);
     color: rgb(237, 123, 103);
     border-radius: 8px;
     padding: 15px;
    margin: 20px 0;
}
}


/* ===== MEDIA QUERIES ===== */
/* ============================================
@media (max-width: 1024px) {
  RESPONSIVE IMPROVEMENTS
     #mw-panel {
  ============================================ */
         width: 200px;
@media (max-width: 768px) {
     .auto-grid {
         grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
     }
     }
      
      
     #content {
     .game-intro-card {
         margin-left: 220px;
         padding: 1rem;
     }
     }
      
      
     #footer {
     .mana-text {
         margin-left: 220px;
         font-size: 1.25rem;
    }
}
 
@media (max-width: 768px) {
    #mw-panel {
        display: none;
     }
     }
      
      
     #content {
     .social {
         margin-left: 0;
         gap: 0.5rem;
        padding: 15px;
     }
     }
      
      
     #footer {
     .iconname {
         margin-left: 0;
         padding: 0.35rem 0.75rem;
         padding: 20px 15px;
         font-size: 0.9rem;
     }
     }
      
      
     #simpleSearch {
     #mp-box-banner .mp-body {
         right: 15px;
         padding: 1rem;
        width: 200px;
     }
     }
}
}


@media (max-width: 480px) {
/* ============================================
     .mw-body .firstHeading {
  CUSTOM SCROLLBAR
        font-size: 28px;
  ============================================ */
    }
::-webkit-scrollbar {
   
    width: 10px;
    #simpleSearch {
    height: 10px;
        width: 150px;
}
     }
 
::-webkit-scrollbar-track {
    background: var(--theme-page-background-color--secondary);
    border-radius: 5px;
}
 
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}
 
::-webkit-scrollbar-thumb:hover {
     background: var(--accent-light);
}
 
/* ============================================
  UTILITY CLASSES
  ============================================ */
.text-center {
    text-align: center;
}
 
.mt-2 {
    margin-top: 0.5rem;
}
 
.mb-2 {
    margin-bottom: 0.5rem;
}
 
.p-2 {
     padding: 0.5rem;
}
}

Latest revision as of 12:05, 30 March 2026

/* ============================================
   ALL @IMPORTS MUST BE AT THE VERY TOP
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
@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");

/* ============================================
   CSS VARIABLES (FALLBACKS FOR MISSING IMPORTS)
   ============================================ */
:root {
    /* Theme Colors - Fallbacks if Colors.css fails */
    --theme-page-background-color: #0a0a1a;
    --theme-page-background-color--secondary: #16213e;
    --theme-page-text-color: #eaeef2;
    --theme-link-color: #7c9eff;
    --theme-border-color: #2c3e50;
    --theme-border-color-rgb: 44, 62, 80;
    --accent: #6c5ce7;
    --accent-light: #8c7cf5;
    --gray-050: rgba(255, 255, 255, 0.05);
    
    /* Main Page Layout Variables */
    --main-page-layout--desktop: 'banner banner banner' 'about about updates' 'starts starts starts' 'items items items' 'characters characters characters' 'enemies enemies enemies' 'area area area';
    --main-page-layout--tablet: 'banner banner' 'about updates' 'starts starts' 'items items' 'characters characters' 'enemies enemies' 'area area';
    --main-page-layout--mobile: 'banner' 'about' 'updates' 'starts' 'items' 'characters' 'enemies' 'area';
}

/* ============================================
   BASE LAYOUT FIXES
   ============================================ */
.mw-body {
    margin-top: -1px;
    border: 1px solid azure;
    border-radius: 1px;
    background-color: transparent;
}

body.skin-vector,
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;
}

/* Hide default elements */
.mobileHide, .mobile-only, .no-desktop {
    display: none !important;
}

/* Fix for hidden H1 on main page */
body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-submit h1.firstHeading {
    display: none;
}

/* ============================================
   MAIN PAGE GRID LAYOUT
   ============================================ */
#mp-container {
    display: grid;
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Desktop Layout */
@media (min-width: 1024px) {
    #mp-container {
        grid-template-areas: var(--main-page-layout--desktop);
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1023px) {
    #mp-container {
        grid-template-areas: var(--main-page-layout--tablet);
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    #mp-container {
        grid-template-areas: var(--main-page-layout--mobile);
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* MP Box styling */
.mp-box {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Staggered animations */
.mp-box:nth-child(1) { animation-delay: 0.05s; }
.mp-box:nth-child(2) { animation-delay: 0.1s; }
.mp-box:nth-child(3) { animation-delay: 0.15s; }
.mp-box:nth-child(4) { animation-delay: 0.2s; }
.mp-box:nth-child(5) { animation-delay: 0.25s; }
.mp-box:nth-child(6) { animation-delay: 0.3s; }
.mp-box:nth-child(7) { animation-delay: 0.35s; }
.mp-box:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   GAME INTRO CARDS
   ============================================ */
.game-intro-card {
    background: var(--theme-page-background-color--secondary);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--theme-border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.game-intro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-header {
    margin-bottom: 1rem;
    position: relative;
}

.mana-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), #a8c0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    letter-spacing: 0.5px;
    margin: 0 !important;
}

.mana-text img {
    vertical-align: middle;
    margin-left: 8px;
}

.mana-line {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 0.5rem;
    width: 100%;
}

.game-content {
    color: var(--theme-page-text-color);
    line-height: 1.6;
}

/* ============================================
   HEADING STYLES
   ============================================ */
.heading-char {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.heading-char a {
    color: var(--accent-light);
    text-decoration: none;
}

.heading-char a:hover {
    text-decoration: underline;
}

/* ============================================
   AUTO GRID LISTS
   ============================================ */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.auto-grid li {
    padding: 0.25rem 0;
}

.auto-grid li a {
    color: var(--theme-link-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.auto-grid li a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ============================================
   BANNER SECTION
   ============================================ */
#mp-box-banner .mp-body {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Social links */
.social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.iconname {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.iconname:hover {
    background: rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.iconname a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
}

/* ============================================
   WIKI FIXES & IMPROVEMENTS
   ============================================ */
/* Editor fixes */
.wikiEditor-ui-text > .ui-resizable {
    width: 100% !important;
    max-width: 100%;
}

/* List styles */
ul {
    list-style: disc;
}

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

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

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

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

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

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

/* Variables styling */
span.variable {
    opacity: 0.65;
}

span.variable::after {
    opacity: 0.65;
    content: ">";
}

span.variable::before {
    opacity: 0.65;
    content: "<";
}

/* Pull quotes */
.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%;
}

/* 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;
    border-radius: 6px;
}

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

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

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
    .auto-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .game-intro-card {
        padding: 1rem;
    }
    
    .mana-text {
        font-size: 1.25rem;
    }
    
    .social {
        gap: 0.5rem;
    }
    
    .iconname {
        padding: 0.35rem 0.75rem;
        font-size: 0.9rem;
    }
    
    #mp-box-banner .mp-body {
        padding: 1rem;
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--theme-page-background-color--secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.p-2 {
    padding: 0.5rem;
}