MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
mNo edit summary
 
(234 intermediate revisions by the same user not shown)
Line 1: Line 1:
.class { }/* needed for some reason for the @imports to work */
/* ============================================
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
  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");


/* 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");
:root {
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
    /* Theme Colors - Fallbacks if Colors.css fails */
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
    --theme-page-background-color: #0a0a1a;
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
    --theme-page-background-color--secondary: #16213e;
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css");
    --theme-page-text-color: #eaeef2;
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
    --theme-link-color: #7c9eff;
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
    --theme-border-color: #2c3e50;
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
    --theme-border-color-rgb: 44, 62, 80;
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
    --accent: #6c5ce7;
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
    --accent-light: #8c7cf5;
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
    --gray-050: rgba(255, 255, 255, 0.05);
@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");
    /* Main Page Layout Variables */
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/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://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/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';
}


/* ===== TERRARIA-STYLE WIKI THEME ===== */
/* ============================================
/* Reset and base styles */
  BASE LAYOUT FIXES
:root {
  ============================================ */
     --primary-color: #1e3a5f;
.mw-body {
     --secondary-color: #2a4d7e;
     margin-top: -1px;
     --accent-color: #4a9ae9;
     border: 1px solid azure;
     --text-primary: #e0e0e0;
     border-radius: 1px;
    --text-secondary: #b0b0b0;
     background-color: transparent;
    --background-dark: #121212;
}
    --background-medium: #1a1a1a;
 
    --background-light: #242424;
body.skin-vector,
    --border-color: #333;
body.skin-vector-dark {
    --success-color: #4caf50;
  background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
    --warning-color: #ff9800;
}
    --danger-color: #f44336;
 
     --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
/* Hide default elements */
.mobileHide, .mobile-only, .no-desktop {
     display: none !important;
}
}


/* Global body styling */
/* Fix for hidden H1 on main page */
body {
body.page-Main_Page.action-view h1.firstHeading,
    background-color: var(--background-dark);
body.page-Main_Page.action-submit h1.firstHeading {
    color: var(--text-primary);
     display: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
     padding: 0;
}
}


/* ===== FIX HEADER RESTYLING ===== */
/* ============================================
/* The site uses a different header structure */
  MAIN PAGE GRID LAYOUT
#mw-page-base {
  ============================================ */
     background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
#mp-container {
     height: 60px;
     display: grid;
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
     margin: 0 auto;
}
}


/* Target the actual header container */
/* Desktop Layout */
.mw-header {
@media (min-width: 1024px) {
     background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
     #mp-container {
    height: 60px;
        grid-template-areas: var(--main-page-layout--desktop);
    border-bottom: 1px solid var(--border-color);
        grid-template-columns: repeat(3, 1fr);
    }
}
}


/* Logo area - target the actual logo container */
/* Tablet Layout */
#p-logo {
@media (min-width: 768px) and (max-width: 1023px) {
     position: absolute !important;
     #mp-container {
    left: 20px !important;
        grid-template-areas: var(--main-page-layout--tablet);
    top: 10px !important;
        grid-template-columns: repeat(2, 1fr);
     z-index: 1000;
     }
}
}


#p-logo a {
/* Mobile Layout */
     display: block;
@media (max-width: 767px) {
    background: none !important;
     #mp-container {
    padding: 0 !important;
        grid-template-areas: var(--main-page-layout--mobile);
    width: auto !important;
        grid-template-columns: 1fr;
     height: auto !important;
        gap: 1rem;
     }
}
}


/* Search box - target the actual search container */
/* MP Box styling */
#mw-head #simpleSearch {
.mp-box {
     position: absolute !important;
     animation: fadeInUp 0.5s ease forwards;
     right: 200px !important;
     opacity: 0;
    top: 10px !important;
    width: 300px !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 1000;
}
}


#simpleSearch input#searchInput {
/* Staggered animations */
    width: 100% !important;
.mp-box:nth-child(1) { animation-delay: 0.05s; }
    padding: 10px 45px 10px 20px !important;
.mp-box:nth-child(2) { animation-delay: 0.1s; }
    background: var(--background-medium) !important;
.mp-box:nth-child(3) { animation-delay: 0.15s; }
    border: 2px solid var(--accent-color) !important;
.mp-box:nth-child(4) { animation-delay: 0.2s; }
    color: var(--text-primary) !important;
.mp-box:nth-child(5) { animation-delay: 0.25s; }
     font-size: 14px !important;
.mp-box:nth-child(6) { animation-delay: 0.3s; }
    border-radius: 20px !important;
.mp-box:nth-child(7) { animation-delay: 0.35s; }
     transition: all 0.3s ease;
.mp-box:nth-child(8) { animation-delay: 0.4s; }
     box-sizing: border-box !important;
 
@keyframes fadeInUp {
     from {
        opacity: 0;
        transform: translateY(20px);
     }
    to {
        opacity: 1;
        transform: translateY(0);
     }
}
}


#simpleSearch input#searchInput:focus {
/* ============================================
     outline: none !important;
  GAME INTRO CARDS
     border-color: var(--accent-color) !important;
  ============================================ */
     box-shadow: 0 0 0 3px rgba(74, 154, 233, 0.3) !important;
.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%;
}
}


#simpleSearch #searchButton {
.game-intro-card:hover {
     position: absolute !important;
     transform: translateY(-2px);
    right: 0 !important;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    top: 0 !important;
    height: 100% !important;
    width: 40px !important;
    background: var(--accent-color) !important;
    border: none !important;
     color: white !important;
    cursor: pointer;
    border-radius: 0 20px 20px 0 !important;
    transition: background 0.3s ease;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
}


#simpleSearch #searchButton:hover {
.game-header {
     background: #3a89d9 !important;
    margin-bottom: 1rem;
     position: relative;
}
}


/* Hide default search icon and add accessible label */
.mana-text {
#searchButton .search-icon {
    font-family: 'Fredoka', sans-serif;
     display: none !important;
    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;
}
}


#searchButton::before {
.mana-text img {
     content: "🔍";
     vertical-align: middle;
     font-size: 16px;
     margin-left: 8px;
}
}


#searchButton::after {
.mana-line {
    content: "Search";
     height: 3px;
    position: absolute;
     background: linear-gradient(90deg, var(--accent), transparent);
    width: 1px;
     margin-top: 0.5rem;
     height: 1px;
     width: 100%;
     padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
     white-space: nowrap;
     border: 0;
}
}


/* ===== FIX SIDEBAR (LEFT NAVIGATION) ===== */
.game-content {
/* Target the actual sidebar containers */
     color: var(--theme-page-text-color);
#mw-panel {
     line-height: 1.6;
     background: var(--background-medium) !important;
    border-right: 1px solid var(--border-color) !important;
     width: 220px !important;
    padding-top: 80px !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}
}


.portal {
/* ============================================
     margin: 0 !important;
  HEADING STYLES
     padding: 15px 0 !important;
  ============================================ */
     border-bottom: 1px solid var(--border-color) !important;
.heading-char {
     background: transparent !important;
    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;
}
}


.portal h3 {
.heading-char a {
    font-size: 16px !important;
     color: var(--accent-light);
     color: var(--accent-color) !important;
     text-decoration: none;
    margin: 0 0 10px 15px !important;
    padding: 0 !important;
    font-weight: 600 !important;
     text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent !important;
    border: none !important;
}
}


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


.portal .body ul {
/* ============================================
     list-style: none !important;
  AUTO GRID LISTS
     margin: 0 !important;
  ============================================ */
     padding: 0 !important;
.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;
}
}


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


.portal .body li a {
.auto-grid li a {
    display: block !important;
     color: var(--theme-link-color);
    padding: 8px 20px !important;
     text-decoration: none;
     color: var(--text-secondary) !important;
     transition: color 0.2s ease;
     text-decoration: none !important;
     display: inline-block;
     transition: all 0.3s ease;
     font-size: 14px !important;
    border-left: 3px solid transparent !important;
    background: transparent !important;
}
}


.portal .body li a:hover {
.auto-grid li a:hover {
    background: rgba(74, 154, 233, 0.1) !important;
     color: var(--accent-light);
     color: var(--accent-color) !important;
     text-decoration: underline;
    border-left-color: var(--accent-color) !important;
     padding-left: 25px !important;
}
}


.portal .body li a:active {
/* ============================================
     background: rgba(74, 154, 233, 0.2) !important;
  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);
}
}


/* ===== FIX MAIN CONTENT AREA ===== */
/* Social links */
#content {
.social {
     margin-left: 240px !important;
     display: flex;
     margin-right: 0 !important;
     justify-content: center;
     padding: 20px 40px !important;
     gap: 1rem;
     max-width: none !important;
     flex-wrap: wrap;
     background: var(--background-dark) !important;
     margin-top: 2rem;
}
}


.mw-body {
.iconname {
     border: none !important;
     display: flex;
     margin: 0 !important;
    align-items: center;
     background: var(--background-dark) !important;
     gap: 0.5rem;
     padding: 0 !important;
     background: rgba(255, 255, 255, 0.1);
     padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
}


.mw-body .firstHeading {
.iconname:hover {
     font-size: 36px !important;
     background: rgba(108, 92, 231, 0.3);
    color: var(--accent-color) !important;
     transform: translateY(-2px);
    margin: 0 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid var(--accent-color) !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
     background: transparent !important;
}
}


/* Content styling */
.iconname a {
.mw-body-content {
     color: white !important;
     font-size: 16px !important;
     text-decoration: none;
     line-height: 1.7 !important;
     font-weight: 500;
     color: var(--text-primary) !important;
    background: transparent !important;
}
}


.mw-body-content p {
/* ============================================
     margin: 15px 0 !important;
  WIKI FIXES & IMPROVEMENTS
     color: var(--text-primary) !important;
  ============================================ */
/* Editor fixes */
.wikiEditor-ui-text > .ui-resizable {
     width: 100% !important;
     max-width: 100%;
}
}


.mw-body-content h2 {
/* List styles */
     color: var(--text-primary) !important;
ul {
    border-bottom: 2px solid var(--accent-color) !important;
     list-style: disc;
    padding-bottom: 8px !important;
    margin: 30px 0 20px 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    background: transparent !important;
}
}


.mw-body-content h3 {
/* Headings */
    color: var(--accent-color) !important;
h2 .mw-headline,
    margin: 25px 0 15px 0 !important;
h3 .mw-headline,
    font-size: 20px !important;
h4 .mw-headline {
     font-weight: 600 !important;
     font-weight: 500;
    background: transparent !important;
}
}


.mw-body-content h4 {
.vector-body h3,
    color: var(--text-secondary) !important;
.vector-body h4,
     margin: 20px 0 10px 0 !important;
.vector-body h5,
    font-size: 18px !important;
.vector-body h6 {
    background: transparent !important;
     margin-bottom: 4px;
}
}


/* Links */
/* Link colors */
.mw-body-content a {
a, a:visited, a:active,
     color: var(--accent-color) !important;
.mw-parser-output a:is(.external, .external:visited, .external:active) {
    text-decoration: none !important;
     color: var(--theme-link-color);
    border-bottom: 1px dashed var(--accent-color) !important;
    transition: all 0.3s ease;
    background: transparent !important;
}
}


.mw-body-content a:hover {
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
     color: #7ab8ff !important;
     color: var(--theme-page-text-color);
    border-bottom: 1px solid #7ab8ff !important;
}
}


.mw-body-content a:visited {
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
     color: #9d6cd8 !important;
     color: var(--theme-link-color);
}
}


/* ===== FIX FOOTER ===== */
.mw-parser-output a.external {
#footer {
     padding-right: 0;
    background: var(--background-medium) !important;
     font-size: inherit;
     border-top: 3px solid var(--accent-color) !important;
    margin: 40px 0 0 240px !important;
     padding: 30px 40px !important;
    color: var(--text-secondary) !important;
}
}


.footer-icons {
/* Categories */
     text-align: center;
.catlinks {
     margin-bottom: 20px;
    border-color: var(--theme-border-color);
     border-radius: 6px;
     background-color: var(--gray-050);
}
}


.footer-places, .footer-info {
/* Code blocks */
     display: flex !important;
code, pre {
     flex-wrap: wrap !important;
     background-color: var(--theme-page-background-color--secondary);
     gap: 20px !important;
     color: var(--theme-page-text-color);
     justify-content: center !important;
     border: 1px solid var(--theme-border-color);
     margin: 15px 0 !important;
     border-radius: 2px;
     background: transparent !important;
     padding: 1px 4px;
     font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
}


.footer-places li, .footer-info li {
code.code-block-table {
     list-style: none !important;
     display: table;
     margin: 5px 0 !important;
     line-height: 21px;
     background: transparent !important;
     padding: 8px;
}
}


.footer-places a, .footer-info a {
.code-block-table * {
     color: var(--text-secondary) !important;
     font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
    text-decoration: none !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
    background: transparent !important;
}
}


.footer-places a:hover, .footer-info a:hover {
.code-block {
     color: var(--accent-color) !important;
     display: inline-block;
     background: rgba(74, 154, 233, 0.1) !important;
     line-height: 21px;
}
}


/* ===== FIX TABLES ===== */
/* Table of Contents */
.mw-body-content table {
.toc {
     width: 100% !important;
     padding: 8px 12px;
     border-collapse: collapse !important;
     border-radius: 4px;
    margin: 20px 0 !important;
     background-color: var(--theme-page-background-color--secondary);
     background: var(--background-light) !important;
     border: 1px solid var(--theme-border-color);
     border-radius: 8px !important;
     margin-top: 16px;
     overflow: hidden !important;
    box-shadow: var(--shadow) !important;
}
}


.mw-body-content table.wikitable {
.toctogglelabel {
     border: 1px solid var(--border-color) !important;
     color: var(--theme-link-color);
}
}


.mw-body-content table.wikitable > tr > th,
.tocnumber {
.mw-body-content table.wikitable > * > tr > th {
     color: var(--theme-page-text-color);
     background: var(--primary-color) !important;
    color: white !important;
    font-weight: 600 !important;
    border: 1px solid var(--border-color) !important;
    padding: 12px 15px !important;
    text-align: left !important;
}
}


.mw-body-content table.wikitable > tr > td,
.vector-body .toc h2 {
.mw-body-content table.wikitable > * > tr > td {
     font-family: 'Fredoka', sans-serif;
     border: 1px solid var(--border-color) !important;
    padding: 10px 15px !important;
    color: var(--text-primary) !important;
}
}


.mw-body-content table.wikitable > tr:nth-child(even) {
/* Hatnote */
     background: rgba(255, 255, 255, 0.05) !important;
.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:hover {
/* Variables styling */
     background: rgba(74, 154, 233, 0.1) !important;
span.variable {
     opacity: 0.65;
}
}


/* ===== FIX CODE & PRE ===== */
span.variable::after {
.mw-body-content pre,
     opacity: 0.65;
.mw-body-content code {
     content: ">";
    background: var(--background-light) !important;
    border: 1px solid var(--border-color) !important;
     border-radius: 6px !important;
     font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
}
}


.mw-body-content pre {
span.variable::before {
     padding: 15px !important;
     opacity: 0.65;
     overflow-x: auto !important;
     content: "<";
    margin: 20px 0 !important;
}
}


.mw-body-content code {
/* Pull quotes */
     padding: 2px 6px !important;
.pull-quote {
     font-size: 14px !important;
    font-style: italic;
     margin: 0;
     padding: 0 30px 8px !important;
}
}


/* ===== FIX NAVBOXES & TEMPLATES ===== */
.pull-quote::before {
.navbox {
     color: var(--accent);
     background: var(--background-light) !important;
     content: "“";
     border: 1px solid var(--border-color) !important;
    display: block;
     border-radius: 8px !important;
     font-size: 96px;
     margin: 20px 0 !important;
     font-style: normal;
     padding: 15px !important;
     line-height: 72px;
     box-shadow: var(--shadow) !important;
     margin: 4px 0 -45px -5px;
}
}


.navbox-title {
.pull-quote__source::before {
     background: var(--primary-color) !important;
     content: "— ";
     color: white !important;
     margin-bottom: 8px;
    padding: 10px 15px !important;
}
    margin: -15px -15px 15px -15px !important;
 
    border-radius: 8px 8px 0 0 !important;
.pull-quote__text {
     font-weight: 600 !important;
     margin-bottom: 4px;
}
}


/* ===== FIX BUTTONS ===== */
/* Gallery */
.mw-ui-button {
.gallerytext {
     background: var(--accent-color) !important;
     text-align: center;
    color: white !important;
     font-size: 100%;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    cursor: pointer;
     font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}
}


.mw-ui-button:hover {
/* Changelist */
     background: #3a89d9 !important;
.changelist-header {
     transform: translateY(-2px);
     display: flex;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     justify-content: space-between;
    align-items: center;
     font-size: 88%;
    margin: 0.3em 0;
}
}


.mw-ui-button:active {
.changelist-content {
     transform: translateY(0);
    overflow: auto;
    max-height: 384px;
    padding: 1em;
    box-sizing: border-box;
     border-radius: 6px;
}
}


/* ===== FIX SPECIAL PAGES ===== */
.changelist-border {
.catlinks {
     border: 1px solid var(--theme-border-color);
     background: var(--background-light) !important;
     border-left: 6px solid var(--accent);
     border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 20px 0 !important;
}
}


/* ===== FIX EXISTING WIKI ELEMENTS ===== */
/* Chat wrapper */
/* Main page content containers */
.chat-wrapper {
.main-page-tagline,
     display: flex;
.mainpage-box,
     flex-direction: column;
#mainpage-box,
.mp-box {
     background: var(--background-light) !important;
     border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    box-shadow: var(--shadow) !important;
}
}


/* Fix any white backgrounds that might be overriding */
.chat-player,
.mw-parser-output > * {
.chat-npc {
     background: transparent !important;
    display: flex;
    flex-direction: row;
     gap: 0.5em;
}
}


/* Ensure content area has proper background */
.chat-player-speaker {
#mw-content-text {
    white-space: nowrap;
     background: transparent !important;
    min-width: 70px;
     color: rgb(105, 172, 82);
}
}


/* ===== MEDIA QUERIES ===== */
.chat-npc-speaker {
@media (max-width: 1024px) {
     white-space: nowrap;
     #mw-panel {
     min-width: 70px;
        width: 200px !important;
     color: rgb(237, 123, 103);
     }
   
    #content {
        margin-left: 220px !important;
     }
   
    #footer {
        margin-left: 220px !important;
    }
}
}


/* ============================================
  RESPONSIVE IMPROVEMENTS
  ============================================ */
@media (max-width: 768px) {
@media (max-width: 768px) {
     #mw-panel {
     .auto-grid {
         display: none !important;
         grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
     }
     }
      
      
     #content {
     .game-intro-card {
        margin-left: 0 !important;
         padding: 1rem;
         padding: 15px !important;
     }
     }
      
      
     #footer {
     .mana-text {
         margin-left: 0 !important;
         font-size: 1.25rem;
        padding: 20px 15px !important;
     }
     }
      
      
     #mw-head #simpleSearch {
     .social {
         right: 15px !important;
         gap: 0.5rem;
        width: 200px !important;
        top: 15px !important;
     }
     }
      
      
     #p-logo {
     .iconname {
         left: 15px !important;
         padding: 0.35rem 0.75rem;
         top: 15px !important;
         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;
}
}


@media (max-width: 480px) {
.p-2 {
    .mw-body .firstHeading {
     padding: 0.5rem;
        font-size: 28px !important;
    }
      
    #mw-head #simpleSearch {
        width: 150px !important;
    }
}
}

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