MediaWiki:Common.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
(Undo revision 27367 by Tama07 (talk))
Tags: Undo Reverted
mNo edit summary
 
(239 intermediate revisions by 2 users not shown)
Line 1: Line 1:
.class { }/* needed for some reason for the @imports to work */
/* ============================================
  ALL @IMPORTS MUST BE AT THE VERY TOP
  ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css"); 
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:Modal.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/css");
@import url("https://mbwiki.stairwaygames.work/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");


/* Imports caching */
/* ============================================
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
  CSS VARIABLES (FALLBACKS FOR MISSING IMPORTS)
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
  ============================================ */
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Modal.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");
 
/* ===== GLOBAL STYLES ===== */
:root {
:root {
     --stardew-blue: #2c5aa0;
     /* Theme Colors - Fallbacks if Colors.css fails */
     --stardew-light-blue: #5a86c6;
    --theme-page-background-color: #0a0a1a;
     --stardew-gray: #f5f5f5;
    --theme-page-background-color--secondary: #16213e;
     --stardew-border: #e0e0e0;
     --theme-page-text-color: #eaeef2;
     --stardew-text: #333333;
     --theme-link-color: #7c9eff;
     --stardew-green: #4caf50;
     --theme-border-color: #2c3e50;
     --stardew-orange: #ff9800;
     --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';
}
}


body {
/* ============================================
     background-color: #ffffff;
  BASE LAYOUT FIXES
     color: #333333;
  ============================================ */
     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
.mw-body {
     line-height: 1.6;
     margin-top: -1px;
    margin: 0;
     border: 1px solid azure;
    padding: 0;
     border-radius: 1px;
     background-color: transparent;
}
}


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


#mw-head {
/* Hide default elements */
    background: #ffffff;
.mobileHide, .mobile-only, .no-desktop {
    border-bottom: 3px solid var(--stardew-blue);
     display: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     padding: 10px 0;
}
}


#p-logo {
/* Fix for hidden H1 on main page */
    text-align: center;
body.page-Main_Page.action-view h1.firstHeading,
     margin: 10px 0;
body.page-Main_Page.action-submit h1.firstHeading {
     display: none;
}
}


#p-logo a {
/* ============================================
     background: url('https://stardewvalleywiki.com/mediawiki/skins/stardew/images/logo.png') no-repeat center center;
  MAIN PAGE GRID LAYOUT
    background-size: contain;
  ============================================ */
     width: 300px;
#mp-container {
     height: 80px;
     display: grid;
     display: block;
     gap: 2rem;
     padding: 1rem;
     max-width: 1400px;
     margin: 0 auto;
     margin: 0 auto;
}
}


/* Custom logo if you want to keep MB logo */
/* Desktop Layout */
#p-logo a.mb-logo {
@media (min-width: 1024px) {
    background: url('/wiki/Logo.png') no-repeat center center;
    #mp-container {
    background-size: contain;
        grid-template-areas: var(--main-page-layout--desktop);
    width: 300px;
        grid-template-columns: repeat(3, 1fr);
     height: 80px;
     }
}
}


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


#simpleSearch {
/* Mobile Layout */
    border: 2px solid var(--stardew-blue);
@media (max-width: 767px) {
    border-radius: 25px;
    #mp-container {
    overflow: hidden;
        grid-template-areas: var(--main-page-layout--mobile);
     box-shadow: 0 2px 5px rgba(44, 90, 160, 0.1);
        grid-template-columns: 1fr;
        gap: 1rem;
     }
}
}


#searchInput {
/* MP Box styling */
     border: none;
.mp-box {
    padding: 12px 20px;
     animation: fadeInUp 0.5s ease forwards;
     font-size: 16px;
     opacity: 0;
    border-radius: 25px 0 0 25px;
}
}


#searchButton {
/* Staggered animations */
    background: var(--stardew-blue);
.mp-box:nth-child(1) { animation-delay: 0.05s; }
    border: none;
.mp-box:nth-child(2) { animation-delay: 0.1s; }
    color: white;
.mp-box:nth-child(3) { animation-delay: 0.15s; }
    padding: 12px 25px;
.mp-box:nth-child(4) { animation-delay: 0.2s; }
    border-radius: 0 25px 25px 0;
.mp-box:nth-child(5) { animation-delay: 0.25s; }
    cursor: pointer;
.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; }


/* ===== SIDEBAR REDESIGN ===== */
@keyframes fadeInUp {
#mw-panel {
    from {
    background: #f8f9fa;
        opacity: 0;
     border-right: 1px solid #e9ecef;
        transform: translateY(20px);
    padding: 20px 0;
     }
     width: 230px;
    to {
        opacity: 1;
        transform: translateY(0);
     }
}
}


.portal {
/* ============================================
     margin: 0 0 25px 0;
  GAME INTRO CARDS
     padding: 0 15px;
  ============================================ */
.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%;
}
}


.portal h3 {
.game-intro-card:hover {
    font-size: 16px;
     transform: translateY(-2px);
     color: var(--stardew-blue);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
     border-bottom: 2px solid var(--stardew-blue);
    padding-bottom: 8px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
}


.portal .body {
.game-header {
     margin: 0;
     margin-bottom: 1rem;
     padding: 0;
     position: relative;
}
}


.portal .body ul {
.mana-text {
     list-style: none;
    font-family: 'Fredoka', sans-serif;
     margin: 0;
    font-size: 1.5rem;
     padding: 0;
    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;
}
}


.portal .body li {
.mana-text img {
     margin: 5px 0;
     vertical-align: middle;
     padding: 0;
     margin-left: 8px;
}
}


.portal .body li a {
.mana-line {
     color: #495057;
     height: 3px;
     text-decoration: none;
     background: linear-gradient(90deg, var(--accent), transparent);
     padding: 8px 12px;
     margin-top: 0.5rem;
    display: block;
     width: 100%;
    border-radius: 4px;
    transition: all 0.2s;
     font-size: 14px;
}
}


.portal .body li a:hover {
.game-content {
     background: var(--stardew-blue);
     color: var(--theme-page-text-color);
     color: white;
     line-height: 1.6;
    transform: translateX(5px);
}
}


/* ===== CONTENT AREA ===== */
/* ============================================
#content {
  HEADING STYLES
     background: #ffffff;
  ============================================ */
     border: none;
.heading-char {
     margin: 20px 20px 20px 250px;
     font-size: 1.1rem;
     padding: 30px;
     font-weight: 600;
     border-radius: 8px;
     color: var(--accent-light);
     box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
     margin: 1rem 0 0.5rem 0;
     padding-bottom: 0.25rem;
     border-bottom: 2px solid var(--accent);
    display: inline-block;
}
}


#firstHeading {
.heading-char a {
     color: var(--stardew-blue);
     color: var(--accent-light);
     font-size: 36px;
     text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--stardew-border);
}
}


/* ===== NAVIGATION BOXES (Stardew Style) ===== */
.heading-char a:hover {
.mb-navigation-box {
     text-decoration: underline;
     background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
}


.mb-navigation-box-header {
/* ============================================
     background: var(--stardew-blue);
  AUTO GRID LISTS
     color: white;
  ============================================ */
     padding: 12px 20px;
.auto-grid {
     margin: -20px -20px 20px -20px;
     display: grid;
     border-radius: 8px 8px 0 0;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    font-size: 18px;
     gap: 0.5rem;
    font-weight: 600;
     list-style: none;
     padding: 0;
     margin: 0.5rem 0;
}
}


.mb-navigation-grid {
.auto-grid li {
     display: grid;
     padding: 0.25rem 0;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
}


.mb-nav-item {
.auto-grid li a {
     background: white;
     color: var(--theme-link-color);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
     text-decoration: none;
     text-decoration: none;
     color: #333;
     transition: color 0.2s ease;
     display: block;
     display: inline-block;
}
}


.mb-nav-item:hover {
.auto-grid li a:hover {
     transform: translateY(-3px);
     color: var(--accent-light);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.1);
     text-decoration: underline;
     border-color: var(--stardew-blue);
}
}


.mb-nav-icon {
/* ============================================
     font-size: 24px;
  BANNER SECTION
     margin-bottom: 8px;
  ============================================ */
     color: var(--stardew-blue);
#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);
}
}


.mb-nav-title {
/* Social links */
     font-weight: 600;
.social {
     margin-bottom: 5px;
     display: flex;
     color: var(--stardew-blue);
     justify-content: center;
     gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
}


.mb-nav-desc {
.iconname {
     font-size: 13px;
    display: flex;
     color: #666;
    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;
}
}


/* ===== INFOBOX STYLING ===== */
.iconname:hover {
.infobox {
     background: rgba(108, 92, 231, 0.3);
     border: 2px solid var(--stardew-border);
     transform: translateY(-2px);
     border-radius: 8px;
    background: #f9f9f9;
    margin: 20px;
    float: right;
    width: 300px;
}
}


.infobox-title {
.iconname a {
    background: linear-gradient(to right, var(--stardew-blue), var(--stardew-light-blue));
     color: white !important;
     color: white;
     text-decoration: none;
     padding: 12px 15px;
     font-weight: 500;
    font-size: 18px;
     font-weight: bold;
    border-radius: 6px 6px 0 0;
}
}


.infobox-image {
/* ============================================
     padding: 15px;
  WIKI FIXES & IMPROVEMENTS
     text-align: center;
  ============================================ */
    border-bottom: 1px solid var(--stardew-border);
/* Editor fixes */
.wikiEditor-ui-text > .ui-resizable {
     width: 100% !important;
     max-width: 100%;
}
}


.infobox-data {
/* List styles */
     padding: 15px;
ul {
     list-style: disc;
}
}


.infobox-row {
/* Headings */
    display: flex;
h2 .mw-headline,
    border-bottom: 1px dashed #ddd;
h3 .mw-headline,
     padding: 8px 0;
h4 .mw-headline {
     font-weight: 500;
}
}


.infobox-row:last-child {
.vector-body h3,
     border-bottom: none;
.vector-body h4,
.vector-body h5,
.vector-body h6 {
     margin-bottom: 4px;
}
}


.infobox-label {
/* Link colors */
    font-weight: bold;
a, a:visited, a:active,
     color: var(--stardew-blue);
.mw-parser-output a:is(.external, .external:visited, .external:active) {
    min-width: 120px;
     color: var(--theme-link-color);
}
}


/* ===== MAIN PAGE SPECIFIC ===== */
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
.mainpage-welcome {
     color: var(--theme-page-text-color);
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
     border-left: 5px solid var(--stardew-blue);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}
}


.mainpage-section {
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
     margin: 40px 0;
     color: var(--theme-link-color);
}
}


.mainpage-section-title {
.mw-parser-output a.external {
    color: var(--stardew-blue);
     padding-right: 0;
    border-bottom: 2px solid var(--stardew-border);
     font-size: inherit;
     padding-bottom: 10px;
    margin-bottom: 20px;
     font-size: 24px;
}
}


/* Featured Content */
/* Categories */
.featured-grid {
.catlinks {
     display: grid;
     border-color: var(--theme-border-color);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     border-radius: 6px;
     gap: 20px;
     background-color: var(--gray-050);
     margin: 20px 0;
}
}


.featured-card {
/* Code blocks */
     background: white;
code, pre {
     border: 1px solid var(--stardew-border);
     background-color: var(--theme-page-background-color--secondary);
     border-radius: 8px;
    color: var(--theme-page-text-color);
     overflow: hidden;
     border: 1px solid var(--theme-border-color);
     transition: transform 0.3s;
     border-radius: 2px;
     padding: 1px 4px;
     font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
}


.featured-card:hover {
code.code-block-table {
     transform: translateY(-5px);
     display: table;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    line-height: 21px;
     padding: 8px;
}
}


.featured-image {
.code-block-table * {
     height: 180px;
     font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
    overflow: hidden;
}
}


.featured-image img {
.code-block {
     width: 100%;
     display: inline-block;
     height: 100%;
     line-height: 21px;
    object-fit: cover;
    transition: transform 0.5s;
}
}


.featured-card:hover .featured-image img {
/* Table of Contents */
     transform: scale(1.05);
.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;
}
}


.featured-content {
.toctogglelabel {
     padding: 20px;
     color: var(--theme-link-color);
}
}


.featured-title {
.tocnumber {
     color: var(--stardew-blue);
     color: var(--theme-page-text-color);
    font-size: 18px;
    margin: 0 0 10px 0;
}
}


.featured-desc {
.vector-body .toc h2 {
    color: #666;
     font-family: 'Fredoka', sans-serif;
     font-size: 14px;
    line-height: 1.5;
}
}


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


.wikitable th {
/* Variables styling */
     background: linear-gradient(to bottom, #f0f7ff, #e3f2fd);
span.variable {
    color: var(--stardew-blue);
     opacity: 0.65;
    border: 1px solid var(--stardew-border);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}
}


.wikitable td {
span.variable::after {
     border: 1px solid var(--stardew-border);
     opacity: 0.65;
    padding: 10px 15px;
     content: ">";
     background: white;
}
}


.wikitable tr:nth-child(even) td {
span.variable::before {
     background: #f9f9f9;
     opacity: 0.65;
    content: "<";
}
}


.wikitable tr:hover td {
/* Pull quotes */
     background: #f0f7ff;
.pull-quote {
    font-style: italic;
    margin: 0;
     padding: 0 30px 8px !important;
}
}


/* ===== BUTTONS ===== */
.pull-quote::before {
.mb-button {
     color: var(--accent);
     display: inline-block;
     content: "“";
    background: linear-gradient(to bottom, var(--stardew-blue), #1e4a8a);
     display: block;
     color: white;
     font-size: 96px;
     padding: 10px 20px;
     font-style: normal;
     border-radius: 5px;
     line-height: 72px;
     text-decoration: none;
     margin: 4px 0 -45px -5px;
     font-weight: 600;
    border: none;
    cursor: pointer;
     transition: all 0.3s;
    font-size: 14px;
}
}


.mb-button:hover {
.pull-quote__source::before {
     background: linear-gradient(to bottom, #1e4a8a, #163b6d);
     content: "— ";
     transform: translateY(-2px);
     margin-bottom: 8px;
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}
}


.mb-button-secondary {
.pull-quote__text {
     background: linear-gradient(to bottom, #6c757d, #545b62);
     margin-bottom: 4px;
}
}


.mb-button-success {
/* Gallery */
     background: linear-gradient(to bottom, var(--stardew-green), #3d8b40);
.gallerytext {
     text-align: center;
    font-size: 100%;
}
}


/* ===== FOOTER ===== */
/* Changelist */
#footer {
.changelist-header {
     background: #2c3e50;
     display: flex;
     color: white;
     justify-content: space-between;
     padding: 30px 0;
     align-items: center;
     margin-top: 50px;
     font-size: 88%;
     border-top: 5px solid var(--stardew-blue);
     margin: 0.3em 0;
}
}


.footer-content {
.changelist-content {
     max-width: 1200px;
     overflow: auto;
     margin: 0 auto;
     max-height: 384px;
     padding: 0 20px;
     padding: 1em;
     display: grid;
     box-sizing: border-box;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     border-radius: 6px;
     gap: 30px;
}
}


.footer-section h3 {
.changelist-border {
     color: var(--stardew-light-blue);
     border: 1px solid var(--theme-border-color);
     border-bottom: 2px solid rgba(255, 255, 255, 0.1);
     border-left: 6px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
}


.footer-links {
/* Chat wrapper */
     list-style: none;
.chat-wrapper {
     padding: 0;
     display: flex;
     flex-direction: column;
}
}


.footer-links li {
.chat-player,
     margin: 8px 0;
.chat-npc {
     display: flex;
    flex-direction: row;
    gap: 0.5em;
}
}


.footer-links a {
.chat-player-speaker {
     color: #bdc3c7;
     white-space: nowrap;
     text-decoration: none;
     min-width: 70px;
     transition: color 0.3s;
     color: rgb(105, 172, 82);
}
}


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


/* ===== MOBILE RESPONSIVENESS ===== */
/* ============================================
  RESPONSIVE IMPROVEMENTS
  ============================================ */
@media (max-width: 768px) {
@media (max-width: 768px) {
     #mw-panel {
     .auto-grid {
         display: none;
         grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
     }
     }
      
      
     #content {
     .game-intro-card {
        margin: 10px;
         padding: 1rem;
         padding: 15px;
     }
     }
      
      
     #p-logo a {
     .mana-text {
         width: 200px;
         font-size: 1.25rem;
        height: 60px;
     }
     }
      
      
     .mb-navigation-grid {
     .social {
         grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
         gap: 0.5rem;
     }
     }
      
      
     .featured-grid {
     .iconname {
         grid-template-columns: 1fr;
         padding: 0.35rem 0.75rem;
        font-size: 0.9rem;
     }
     }
      
      
     .infobox {
     #mp-box-banner .mp-body {
         float: none;
         padding: 1rem;
        width: 100%;
        margin: 20px 0;
     }
     }
}
}


/* ===== TOOLTIPS ===== */
/* ============================================
.tooltip {
  CUSTOM SCROLLBAR
    position: relative;
  ============================================ */
    display: inline-block;
::-webkit-scrollbar {
     border-bottom: 1px dotted var(--stardew-blue);
     width: 10px;
     cursor: help;
     height: 10px;
}
}


.tooltip .tooltiptext {
::-webkit-scrollbar-track {
    visibility: hidden;
     background: var(--theme-page-background-color--secondary);
    width: 200px;
     border-radius: 5px;
     background-color: var(--stardew-blue);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
     opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}
}


.tooltip:hover .tooltiptext {
::-webkit-scrollbar-thumb {
     visibility: visible;
     background: var(--accent);
     opacity: 1;
     border-radius: 5px;
}
}


/* ===== CODE BLOCKS ===== */
::-webkit-scrollbar-thumb:hover {
pre, code {
     background: var(--accent-light);
     background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
}


pre {
/* ============================================
    padding: 15px;
  UTILITY CLASSES
    overflow-x: auto;
  ============================================ */
}
.text-center {
 
     text-align: center;
code {
    padding: 2px 6px;
    color: #d63384;
}
 
/* ===== ALERTS AND NOTICES ===== */
.notice {
     background: #e3f2fd;
    border-left: 4px solid var(--stardew-blue);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}
}


.notice-success {
.mt-2 {
     background: #e8f5e9;
     margin-top: 0.5rem;
    border-left-color: var(--stardew-green);
}
}


.notice-warning {
.mb-2 {
     background: #fff3cd;
     margin-bottom: 0.5rem;
    border-left-color: #ffc107;
}
}


.notice-error {
.p-2 {
     background: #f8d7da;
     padding: 0.5rem;
    border-left-color: #dc3545;
}
}

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