MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* * MANA BREAK - OFFICIAL WIKI SKIN
/* ============================================
* Theme: Modern Adventure (Teal & Gold)
  ALL @IMPORTS MUST BE AT THE VERY TOP
* Version: 2.0.0
  ============================================ */
*/
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
 
/* 1. IMPORTS
  ========================================================================== */
@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
/* ============================================
  ========================================================================== */
  CSS VARIABLES (FALLBACKS FOR MISSING IMPORTS)
  ============================================ */
:root {
:root {
     /* Primary Teal Palette (#1a6a7a) */
     /* Theme Colors - Fallbacks if Colors.css fails */
     --primary-100: #e8f0f2;
     --theme-page-background-color: #0a0a1a;
     --primary-200: #b9d1d6;
     --theme-page-background-color--secondary: #16213e;
     --primary-300: #8ab2ba;
     --theme-page-text-color: #eaeef2;
     --primary-400: #5b939e;
     --theme-link-color: #7c9eff;
     --primary-500: #1a6a7a; /* Base */
     --theme-border-color: #2c3e50;
     --primary-600: #155562;
     --theme-border-color-rgb: 44, 62, 80;
     --primary-700: #10404a;
    --accent: #6c5ce7;
     --primary-800: #0a2a31;
     --accent-light: #8c7cf5;
     --primary-900: #051519;
    --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';
}


    /* Accent Gold Palette (#eab759) */
/* ============================================
     --gold-soft: #fdf6e9;
  BASE LAYOUT FIXES
     --gold-base: #eab759;
  ============================================ */
     --gold-dark: #c9932e;
.mw-body {
     margin-top: -1px;
    border: 1px solid azure;
     border-radius: 1px;
     background-color: transparent;
}


    /* Status Colors (WCAG AA Compliant) */
body.skin-vector,
    --status-success: #2d8a57;
body.skin-vector-dark {
    --status-error: #c53030;
  background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
    --status-warning: #b7791f;
}
    --status-info: #2b6cb0;


    /* Light Theme Base */
/* Hide default elements */
    --bg-page: #f8fafc;
.mobileHide, .mobile-only, .no-desktop {
    --bg-content: #ffffff;
     display: none !important;
    --bg-secondary: #f1f5f9;
    --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 */
/* Fix for hidden H1 on main page */
.skin-vector-dark {
body.page-Main_Page.action-view h1.firstHeading,
    --bg-page: #0f172a;
body.page-Main_Page.action-submit h1.firstHeading {
    --bg-content: #1e293b;
     display: none;
     --bg-secondary: #334155;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --primary-100: #0f2d33;
    --primary-500: #5eead4;
    --gold-soft: #2d261a;
}
}


/* 3. BASE ELEMENTS
/* ============================================
  ========================================================================== */
  MAIN PAGE GRID LAYOUT
body {
  ============================================ */
     font-family: 'Cinzel', system-ui, -apple-system, sans-serif;
#mp-container {
     background-color: var(--bg-page) !important;
    display: grid;
     color: var(--text-main);
    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;
     line-height: 1.6;
}
}


h1, h2, h3, h4 {
/* ============================================
     font-family: 'Montserrat', sans-serif;
  HEADING STYLES
    color: var(--primary-500);
  ============================================ */
.heading-char {
     font-size: 1.1rem;
     font-weight: 600;
     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;
}
}


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


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


/* Focus States */
/* ============================================
a:focus-visible, button:focus-visible {
  BANNER SECTION
     outline: 3px solid var(--primary-300);
  ============================================ */
     outline-offset: 2px;
#mp-box-banner .mp-body {
     border-radius: 4px;
    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);
}
}


/* 4. WIKI COMPONENTS
.iconname a {
  ========================================================================== */
    color: white !important;
    text-decoration: none;
    font-weight: 500;
}


/* Modernized Wikitable */
/* ============================================
.wikitable {
  WIKI FIXES & IMPROVEMENTS
  ============================================ */
/* Editor fixes */
.wikiEditor-ui-text > .ui-resizable {
     width: 100% !important;
     width: 100% !important;
     margin: 1.5rem 0;
     max-width: 100%;
    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 {
/* List styles */
     background-color: var(--primary-500) !important;
ul {
    color: #ffffff !important;
     list-style: disc;
    padding: 12px 15px !important;
}
     font-weight: 600;
 
    text-align: left;
/* Headings */
h2 .mw-headline,
h3 .mw-headline,
h4 .mw-headline {
     font-weight: 500;
}
}


.wikitable td {
.vector-body h3,
     padding: 10px 15px;
.vector-body h4,
    border-bottom: 1px solid var(--border-color);
.vector-body h5,
.vector-body h6 {
     margin-bottom: 4px;
}
}


.wikitable tr:last-child td { border-bottom: none; }
/* Link colors */
a, a:visited, a:active,
.mw-parser-output a:is(.external, .external:visited, .external:active) {
    color: var(--theme-link-color);
}


.wikitable tr:nth-child(even) { background-color: var(--bg-page); }
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
    color: var(--theme-page-text-color);
}


.wikitable tr:hover { background-color: var(--primary-100); }
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
    color: var(--theme-link-color);
}


/* Responsive Table Wrapper */
.mw-parser-output a.external {
@media (max-width: 768px) {
    padding-right: 0;
    .mw-parser-output { overflow-x: auto; }
     font-size: inherit;
     .wikitable { min-width: 600px; }
}
}


/* Modern Navbox (Chip Style) */
/* Categories */
.navbox {
.catlinks {
     background: var(--bg-content) !important;
     border-color: var(--theme-border-color);
     border: 1px solid var(--primary-500) !important;
     border-radius: 6px;
     border-radius: var(--radius-md);
     background-color: var(--gray-050);
    padding: 5px;
}
}


.navbox-title {
/* Code blocks */
     background: var(--primary-500) !important;
code, pre {
     color: white !important;
     background-color: var(--theme-page-background-color--secondary);
     border-radius: 6px 6px 0 0;
     color: var(--theme-page-text-color);
     padding: 8px !important;
    border: 1px solid var(--theme-border-color);
     border-radius: 2px;
     padding: 1px 4px;
    font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
}


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


.navbox-list ul {
.code-block-table * {
     display: flex;
     font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    margin: 0 !important;
    padding: 10px !important;
}
}


.navbox-list li {
.code-block {
     background: var(--bg-secondary);
     display: inline-block;
    padding: 4px 12px;
     line-height: 21px;
    border-radius: 20px;
     font-size: 0.9em;
    border: 1px solid var(--border-color);
}
}


/* Table of Contents */
/* Table of Contents */
.toc {
.toc {
     background: var(--bg-content);
     padding: 8px 12px;
     border: 1px solid var(--border-color);
    border-radius: 4px;
     border-radius: var(--radius-md);
     background-color: var(--theme-page-background-color--secondary);
     padding: 15px !important;
     border: 1px solid var(--theme-border-color);
    box-shadow: var(--shadow-sm);
     margin-top: 16px;
}
}


.toc h2 {
.toctogglelabel {
     font-size: 1.2rem;
     color: var(--theme-link-color);
    margin-bottom: 10px;
}
}


/* 5. INFOBOXES & PORTABLE INFOBOXES
.tocnumber {
  ========================================================================== */
     color: var(--theme-page-text-color);
.portable-infobox, .infobox {
     float: right;
    clear: right;
    width: 300px;
    margin: 0 0 1rem 1rem;
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
}


.pi-title {
.vector-body .toc h2 {
    background: var(--primary-500);
    color: #fff;
    padding: 15px;
    text-align: center;
     font-family: 'Fredoka', sans-serif;
     font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
}
}


.pi-item {
/* Hatnote */
     display: flex;
.hatnote {
     justify-content: space-between;
     border-left: 4px solid var(--theme-border-color);
     padding: 8px 15px;
     padding: 6px 12px;
     border-bottom: 1px solid var(--border-color);
     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;
}
}


.pi-data-label { font-weight: 600; color: var(--text-muted); }
/* Variables styling */
span.variable {
    opacity: 0.65;
}


@media (max-width: 768px) {
span.variable::after {
     .portable-infobox, .infobox {
     opacity: 0.65;
        float: none;
    content: ">";
        width: 100%;
        margin: 1rem 0;
    }
}
}


/* 6. MAIN PAGE LAYOUT (#mp-container)
span.variable::before {
  ========================================================================== */
     opacity: 0.65;
.mp-grid {
     content: "<";
     display: grid;
    gap: 20px;
     margin: 20px 0;
}
}


.game-intro-card {
/* Pull quotes */
     background: var(--bg-content);
.pull-quote {
    border: 1px solid var(--border-color);
     font-style: italic;
    border-radius: var(--radius-lg);
     margin: 0;
     overflow: hidden;
     padding: 0 30px 8px !important;
     transition: transform 0.2s ease, box-shadow 0.2s ease;
}
}


.game-intro-card:hover {
.pull-quote::before {
     transform: translateY(-4px);
     color: var(--accent);
     box-shadow: var(--shadow-md);
     content: "“";
     border-color: var(--primary-300);
    display: block;
    font-size: 96px;
    font-style: normal;
    line-height: 72px;
     margin: 4px 0 -45px -5px;
}
}


.game-header {
.pull-quote__source::before {
     background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
     content: "— ";
    color: white;
     margin-bottom: 8px;
     padding: 15px 20px;
}
}


.mana-line {
.pull-quote__text {
    height: 3px;
     margin-bottom: 4px;
    width: 50px;
    background: var(--gold-base);
     margin-top: 8px;
    border-radius: 2px;
}
}


/* Social Links Layout */
/* Gallery */
.social-container {
.gallerytext {
     display: flex;
     text-align: center;
    flex-wrap: wrap;
     font-size: 100%;
    justify-content: center;
     gap: 15px;
    margin-top: -30px; /* Overlap effect */
    position: relative;
    z-index: 10;
}
}


.social-pill {
/* Changelist */
    background: var(--bg-content);
.changelist-header {
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
     display: flex;
     display: flex;
    justify-content: space-between;
     align-items: center;
     align-items: center;
     gap: 10px;
     font-size: 88%;
     border: 1px solid var(--border-color);
     margin: 0.3em 0;
}
}


/* 7. UTILITIES & ANIMATIONS
.changelist-content {
  ========================================================================== */
    overflow: auto;
.text-primary { color: var(--primary-500) !important; }
    max-height: 384px;
.bg-primary { background-color: var(--primary-500) !important; color: white; }
    padding: 1em;
.text-gold { color: var(--gold-base) !important; }
    box-sizing: border-box;
.bg-gold-soft { background-color: var(--gold-soft) !important; }
    border-radius: 6px;
 
}
.shadow-lg { box-shadow: var(--shadow-md); }
.rounded-full { border-radius: 9999px; }


/* Animations */
.changelist-border {
@media (prefers-reduced-motion: no-preference) {
    border: 1px solid var(--theme-border-color);
     .animate-fade-in {
     border-left: 6px solid var(--accent);
        animation: fadeIn 0.5s ease-out forwards;
    }
}
}


@keyframes fadeIn {
/* Chat wrapper */
     from { opacity: 0; transform: translateY(10px); }
.chat-wrapper {
     to { opacity: 1; transform: translateY(0); }
     display: flex;
     flex-direction: column;
}
}


/* Loading Skeletons */
.chat-player,
.skeleton {
.chat-npc {
     background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
     display: flex;
     background-size: 200% 100%;
     flex-direction: row;
     animation: skeleton-loading 1.5s infinite;
     gap: 0.5em;
}
}


@keyframes skeleton-loading {
.chat-player-speaker {
     0% { background-position: 200% 0; }
     white-space: nowrap;
     100% { background-position: -200% 0; }
     min-width: 70px;
    color: rgb(105, 172, 82);
}
}


/* 8. MESSAGE BOXES (Hatnotes)
.chat-npc-speaker {
  ========================================================================== */
     white-space: nowrap;
.messagebox {
     min-width: 70px;
     margin: 1rem 0;
     color: rgb(237, 123, 103);
    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); }
/* ============================================
.messagebox-error { border-color: var(--status-error); color: var(--status-error); }
  RESPONSIVE IMPROVEMENTS
.messagebox-warning { border-color: var(--status-warning); background: var(--gold-soft); }
  ============================================ */
 
@media (max-width: 768px) {
/* 9. PRINT STYLES
     .auto-grid {
  ========================================================================== */
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
@media print {
    }
     #mw-panel, #p-personal, #p-search, #footer, .social-container {
   
         display: none !important;
    .game-intro-card {
        padding: 1rem;
    }
   
    .mana-text {
        font-size: 1.25rem;
    }
   
    .social {
         gap: 0.5rem;
     }
     }
     .mw-body {
   
         margin: 0 !important;
     .iconname {
         border: none !important;
         padding: 0.35rem 0.75rem;
         font-size: 0.9rem;
     }
     }
     a::after {
      
         content: " (" attr(href) ")";
    #mp-box-banner .mp-body {
        font-size: 0.8em;
         padding: 1rem;
     }
     }
}
}


/* 10. VECTOR OVERRIDES (Personal Tools, Search)
/* ============================================
  ========================================================================== */
  CUSTOM SCROLLBAR
#p-personal {
  ============================================ */
     top: 5px !important;
::-webkit-scrollbar {
     right: 15px !important;
    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;
}
}


#p-personal li a {
.mt-2 {
     color: var(--primary-500) !important;
     margin-top: 0.5rem;
    font-weight: 500;
}
}


.vector-search-box-input {
.mb-2 {
     border: 1px solid var(--border-color) !important;
     margin-bottom: 0.5rem;
    border-radius: 20px !important;
    background-color: var(--bg-secondary) !important;
}
}


/* 11. CSS-ONLY THEME TOGGLE CONCEPT
.p-2 {
  (Note: Full persistence requires JS, but this styles the UI) */
     padding: 0.5rem;
#pt-theme a {
    background: var(--primary-500) !important;
    color: white !important;
     padding: 5px 15px !important;
    border-radius: 20px !important;
    margin-top: 5px;
}
}

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