MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
mNo edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
/**
/* ============================================
* MediaWiki common.css - RESTORED & ORGANIZED
  ALL @IMPORTS MUST BE AT THE VERY TOP
* This version preserves ALL original hex codes and game-specific classes.
  ============================================ */
* * TABLE OF CONTENTS:
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
* 1. EXTERNAL IMPORTS
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
* 2. UNIVERSAL VARIABLES (:root)
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
* 3. THEME DEFINITIONS (Light & Dark)
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
* 4. KEYFRAME ANIMATIONS
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
* 5. BASE TYPOGRAPHY & LINK STYLING
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
* 6. LAYOUT & STRUCTURE (Sidebar, Footer, Body)
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
* 7. TABLE SYSTEM (Wikitable, Schedule, Fish, Artisan)
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css"); 
* 8. INFOBOX SYSTEM (Portable, Weapon, Monster, Character)
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
* 9. MAIN PAGE COMPONENTS
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
* 10. GAME-SPECIFIC TEMPLATES (Letters, Recipes, Gifts)
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
* 11. CUSTOM UI (Navbox, Race System, Quotes, Tooltips)
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
* 12. ACCESSIBILITY & UTILITY
@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");


/* ==========================================================================
/* ============================================
  1. EXTERNAL IMPORTS
  CSS VARIABLES (FALLBACKS FOR MISSING IMPORTS)
  ========================================================================== */
  ============================================ */
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Module:Documentation.css");
:root {
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Documentation.css");
    /* Theme Colors - Fallbacks if Colors.css fails */
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Tables.css");
    --theme-page-background-color: #0a0a1a;
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:MessageBox.css");
    --theme-page-background-color--secondary: #16213e;
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:CustomTabs.css");
    --theme-page-text-color: #eaeef2;
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Navbox.css");
    --theme-link-color: #7c9eff;
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Icons.css");
    --theme-border-color: #2c3e50;
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Dialogue.css");
    --theme-border-color-rgb: 44, 62, 80;
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Cards.css");
    --accent: #6c5ce7;
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Tabbers.css");
    --accent-light: #8c7cf5;
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Mobile.css");
    --gray-050: rgba(255, 255, 255, 0.05);
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Recipe.css");
   
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:Modal.css");
    /* Main Page Layout Variables */
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:AceEditor.css");
    --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';
@import url("https://mbwiki.stairwaygames.work/wiki/MediaWiki:CodeMirror.css");
    --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;
}


/* ==========================================================================
/* ============================================
   2. UNIVERSAL VARIABLES (:root)
   WIKI FIXES & IMPROVEMENTS
   ========================================================================== */
   ============================================ */
:root {
/* Editor fixes */
--font-size: 16px;
.wikiEditor-ui-text > .ui-resizable {
--font-size-small: 14px;
    width: 100% !important;
--font-size-large: 18px;
    max-width: 100%;
--font-size-xlarge: 20px;
--font-size-h1: 32px;
--font-size-h2: 26px;
--font-size-h3: 22px;
--font-size-h4: 18px;
--line-height: 1.6;
--line-height-headings: 1.3;
--line-height-tight: 1.25;
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
--wiki-content-text-color: var(--theme-page-text-color, #1a2a2a);
--spacing-xs: 4px;
--spacing-sm: 8px;
--spacing-md: 16px;
--spacing-lg: 24px;
--spacing-xl: 32px;
--spacing-2xl: 48px;
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
--shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
--wiki-content-border-color: var(--theme-border-color, #a1e9dc);
--border-radius-sm: 4px;
--border-radius-md: 8px;
--border-radius-lg: 2px;
--border-radius-full: 9999px;
--border-width: 1px;
--border-width-thick: 2px;
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
--focus-ring-color: rgba(79, 209, 199, 0.6);
--gray-900: #1a202c; --gray-800: #2d3748; --gray-700: #4a5568; --gray-500: #a0aec0; --gray-300: #e2e8f0; --gray-050: #ffffff;
--teal-600: #2c7a7b; --teal-500: #319795; --teal-400: #38b2ac; --teal-300: #4fd1c7; --teal-200: #81e6d9; --teal-100: #b2f5ea; --teal-050: #e6fffa;
--theme-border-color: var(--wiki-content-border-color);
}
}


/* ==========================================================================
/* List styles */
  3. THEME DEFINITIONS (Light & Dark)
ul {
  ========================================================================== */
    list-style: disc;
}


/* Light Theme Styles */
/* Headings */
:root body:not(.skin-vector-dark) {
h2 .mw-headline,
--theme-page-text-color: #1a2a2a;
h3 .mw-headline,
--theme-page-background-color: #f5fdfb;
h4 .mw-headline {
--theme-page-background-color--secondary: #e8f5f3;
    font-weight: 500;
--theme-link-color: #007d7a;
--theme-accent-color: #38b2ac;
--theme-border-color: #a1e9dc;
--theme-alert-color: #d53f3f;
--theme-warning-color: #c05621;
--theme-success-color: #2e8b57;
--card-bg-main: #ffffff;
--card-bg-sub: #e6fffa;
--table-header-bg: #e6fffa;
--letter-bg: #f0fff4;
--letter-border: #c6f6d5;
}
}


/* Dark Theme Styles */
.vector-body h3,
:root .skin-vector-dark {
.vector-body h4,
--theme-page-text-color: #e6f7f5;
.vector-body h5,
--theme-page-background-color: rgba(22, 28, 36, 0.98);
.vector-body h6 {
--theme-page-background-color--secondary: #2a363d;
    margin-bottom: 4px;
--theme-link-color: #5fd9cf;
--theme-accent-color: #5fd9cf;
--theme-border-color: #4d6872;
--theme-alert-color: #fc8181;
--theme-warning-color: #f6ad55;
--theme-success-color: #68d391;
--card-bg-main: #2a363d;
--card-bg-sub: #3a464d;
--table-header-bg: #2d4a4d;
--letter-bg: #1a272b;
--letter-border: #2d4a3c;
}
}


/* ==========================================================================
/* Link colors */
  4. KEYFRAME ANIMATIONS
a, a:visited, a:active,
  ========================================================================== */
.mw-parser-output a:is(.external, .external:visited, .external:active) {
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
    color: var(--theme-link-color);
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }


/* ==========================================================================
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
  5. BASE TYPOGRAPHY & LINK STYLING
    color: var(--theme-page-text-color);
  ========================================================================== */
}
body { font-family: Helvetica, Arial, sans-serif !important; overflow-y: scroll; }
.mw-body-content { line-height: 1.6; font-size: var(--font-size); }
h1, h2, h3, h4 { color: var(--theme-page-text-color); }


/* Links */
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
.mw-body a, .mw-body-content a { text-decoration: none; transition: color var(--transition-fast) ease; }
    color: var(--theme-link-color);
.mw-body a:hover { text-decoration: underline; }
}
 
.mw-parser-output a.external {
    padding-right: 0;
    font-size: inherit;
}


/* New Link Styling (Teal) */
/* Categories */
.mw-body a.new, .mw-body-content a.new {
.catlinks {
color: var(--new-link-color, #00a3a3) !important;
    border-color: var(--theme-border-color);
font-weight: var(--font-weight-semibold) !important;
    border-radius: 6px;
border-bottom: 1px dashed rgba(0, 163, 163, 0.4) !important;
    background-color: var(--gray-050);
background-color: rgba(0, 163, 163, 0.08) !important;
padding: 1px 3px !important;
border-radius: var(--border-radius-sm) !important;
}
}


/* Code & Pre */
/* Code blocks */
code, pre {
code, pre {
background-color: var(--theme-page-background-color--secondary);
    background-color: var(--theme-page-background-color--secondary);
color: var(--theme-page-text-color);
    color: var(--theme-page-text-color);
border: 1px solid var(--theme-border-color);
    border: 1px solid var(--theme-border-color);
padding: 1px 4px; font-family: monospace; font-size: 13px;
    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 {
  6. LAYOUT & STRUCTURE
    color: var(--theme-page-text-color);
  ========================================================================== */
}
.mw-body {
 
margin-left: 11em; padding: 1.25em 1.5em;
.vector-body .toc h2 {
background-color: var(--theme-page-background-color) !important;
    font-family: 'Fredoka', sans-serif;
border-left: 3px solid var(--teal-400);
}
 
/* 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;
}
}


#mw-panel { padding-left: 0.5em; width: 10em; }
/* Gallery */
#mw-panel .sidebar-section-title {
.gallerytext {
background: linear-gradient(90deg, var(--teal-700), var(--teal-900));
    text-align: center;
color: white; padding: 5px 10px; border-radius: 4px;
    font-size: 100%;
}
}


.mw-footer { margin-left: 11em; padding: 1.25em; background: white; border-radius: 5px; }
/* Changelist */
.changelist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 88%;
    margin: 0.3em 0;
}


/* ==========================================================================
.changelist-content {
  7. TABLE SYSTEM
    overflow: auto;
  ========================================================================== */
    max-height: 384px;
.wikitable, .scheduletable, .fishtable {
    padding: 1em;
width: 100%; margin: 1.5em 0; border-collapse: separate; border-spacing: 0;
    box-sizing: border-box;
border: 1px solid var(--theme-border-color); background-color: var(--card-bg-main);
    border-radius: 6px;
border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
}
}


.wikitable th, .scheduletable th {
.changelist-border {
background: linear-gradient(135deg, var(--teal-600), var(--teal-700)) !important;
    border: 1px solid var(--theme-border-color);
color: white !important; font-weight: 600; padding: 0.75rem 1rem !important;
    border-left: 6px solid var(--accent);
}
}


.wikitable td, .scheduletable td { padding: 0.75rem 1rem !important; border-bottom: 1px solid var(--theme-border-color--subtle, #e2e8f0); }
/* Chat wrapper */
.chat-wrapper {
    display: flex;
    flex-direction: column;
}


/* Artisan/Specific Table Overrides */
.chat-player,
.artisan-table { width: 60%; margin: 15px; border: 1px solid gray; }
.chat-npc {
.artisan-table th { background-color: #e7c361 !important; }
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}


/* ==========================================================================
.chat-player-speaker {
  8. INFOBOX SYSTEM
    white-space: nowrap;
  ========================================================================== */
    min-width: 70px;
.portable-infobox {
    color: rgb(105, 172, 82);
float: right; width: 300px; margin: 0 0 15px 15px;
border: 1px solid var(--theme-border-color); border-radius: 8px;
background-color: var(--gray-050); font-size: 14px;
}
}
.pi-title { background: var(--teal-600); color: white; padding: 8px 10px; text-align: center; border-radius: 8px 8px 0 0; }
.pi-item { display: flex; justify-content: space-between; padding: 5px 8px; border-bottom: 1px dotted var(--gray-300); }


/* Weapon/Monster/Character Variants */
.chat-npc-speaker {
.weapon-infobox { border-color: #1a6a7a; } .weapon-header { background: #1a6a7a; }
    white-space: nowrap;
.monster-infobox { border-color: #7a1a1a; } .monster-header { background: #7a1a1a; }
    min-width: 70px;
    color: rgb(237, 123, 103);
}


/* ==========================================================================
/* ============================================
   9. MAIN PAGE COMPONENTS
   RESPONSIVE IMPROVEMENTS
   ========================================================================== */
   ============================================ */
#mp-container { display: grid; gap: 20px; margin: 20px 0; }
@media (max-width: 768px) {
.game-intro-card { background: var(--card-bg-main); border: 1px solid var(--theme-border-color); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
    .auto-grid {
.game-header { background: linear-gradient(90deg, var(--teal-700), var(--teal-900)); padding: var(--spacing-md); color: white; }
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
.social { display: flex; justify-content: center; gap: 15px; background: var(--theme-page-background-color--secondary); padding: 15px; border-radius: 12px; border: 1px solid var(--theme-border-color); }
    }
   
    .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;
    }
}


/* ==========================================================================
/* ============================================
   10. GAME-SPECIFIC TEMPLATES
   CUSTOM SCROLLBAR
   ========================================================================== */
   ============================================ */
/* Letter/Recipe Styles */
::-webkit-scrollbar {
.ci-letter-wrapper { background: #faf3ea; border-radius: 20px; padding: 20px; max-width: 35em; font-weight: 700; }
    width: 10px;
.ci-recipe-timed { border: 1px solid #e7c361; border-radius: 5px; text-align: center; width: 100px; }
    height: 10px;
.ci-recipe-yield { border: 1px solid #e7c361; padding: 8px; text-align: center; position: relative; }
}
.heart { margin-left: -7px; margin-bottom: 5px; }


/* Element Infoboxes */
::-webkit-scrollbar-track {
.element-fire { border-left: 4px solid #cc3333; }
    background: var(--theme-page-background-color--secondary);
.element-water { border-left: 4px solid #3366cc; }
    border-radius: 5px;
.element-wind { border-left: 4px solid #33cccc; }
}
 
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}
 
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}


/* ==========================================================================
/* ============================================
   11. CUSTOM UI (Navbox, Race System, Quotes)
   UTILITY CLASSES
   ========================================================================== */
   ============================================ */
/* Race System Tooltips */
.text-center {
.race-tooltip {
    text-align: center;
visibility: hidden; width: 250px; background-color: #2c3e50; color: #ecf0f1;
padding: 12px; border-radius: 8px; position: absolute; z-index: 1000;
top: 50%; right: 100%; opacity: 0; transition: opacity 0.3s;
}
}
.race-tooltip-container:hover .race-tooltip { visibility: visible; opacity: 0.98; }


/* Quotes Box */
.mt-2 {
.quotes-box {
    margin-top: 0.5rem;
border-left: 8px solid #eab759 !important; padding: 15px; margin: 1em auto;
font-style: italic; background: rgba(255, 255, 255, 0.05); display: flex;
}
}


/* ==========================================================================
.mb-2 {
  12. ACCESSIBILITY & UTILITY
    margin-bottom: 0.5rem;
  ========================================================================== */
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; border: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


/* Mobile Adaptations */
.p-2 {
@media screen and (max-width: 768px) {
    padding: 0.5rem;
.mw-body { margin-left: 0; margin-top: 10%; }
#mw-panel { display: none; }
.portable-infobox { float: none; width: 100%; margin-left: 0; }
}
}

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