MediaWiki:Common.css

From MB Wiki
Revision as of 11:10, 9 December 2025 by Tama07 (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
.class { }/* needed for some reason for the @imports to work */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');

/* Imports caching */
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@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 {
    --stardew-blue: #2c5aa0;
    --stardew-light-blue: #5a86c6;
    --stardew-gray: #f5f5f5;
    --stardew-border: #e0e0e0;
    --stardew-text: #333333;
    --stardew-green: #4caf50;
    --stardew-orange: #ff9800;
}

body {
    background-color: #ffffff;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ===== HEADER RESTYLING ===== */
#mw-page-base {
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
    height: auto;
    min-height: 60px;
}

#mw-head {
    background: #ffffff;
    border-bottom: 3px solid var(--stardew-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

#p-logo {
    text-align: center;
    margin: 10px 0;
}

#p-logo a {
    background: url('https://stardewvalleywiki.com/mediawiki/skins/stardew/images/logo.png') no-repeat center center;
    background-size: contain;
    width: 300px;
    height: 80px;
    display: block;
    margin: 0 auto;
}

/* Custom logo if you want to keep MB logo */
#p-logo a.mb-logo {
    background: url('/wiki/Logo.png') no-repeat center center;
    background-size: contain;
    width: 300px;
    height: 80px;
}

#p-search {
    margin: 20px auto;
    max-width: 500px;
}

#simpleSearch {
    border: 2px solid var(--stardew-blue);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(44, 90, 160, 0.1);
}

#searchInput {
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 25px 0 0 25px;
}

#searchButton {
    background: var(--stardew-blue);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

/* ===== SIDEBAR REDESIGN ===== */
#mw-panel {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 20px 0;
    width: 230px;
}

.portal {
    margin: 0 0 25px 0;
    padding: 0 15px;
}

.portal h3 {
    font-size: 16px;
    color: var(--stardew-blue);
    border-bottom: 2px solid var(--stardew-blue);
    padding-bottom: 8px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal .body {
    margin: 0;
    padding: 0;
}

.portal .body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal .body li {
    margin: 5px 0;
    padding: 0;
}

.portal .body li a {
    color: #495057;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.portal .body li a:hover {
    background: var(--stardew-blue);
    color: white;
    transform: translateX(5px);
}

/* ===== CONTENT AREA ===== */
#content {
    background: #ffffff;
    border: none;
    margin: 20px 20px 20px 250px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

#firstHeading {
    color: var(--stardew-blue);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--stardew-border);
}

/* ===== NAVIGATION BOXES (Stardew Style) ===== */
.mb-navigation-box {
    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);
    color: white;
    padding: 12px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    font-weight: 600;
}

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

.mb-nav-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: block;
}

.mb-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.1);
    border-color: var(--stardew-blue);
}

.mb-nav-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--stardew-blue);
}

.mb-nav-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--stardew-blue);
}

.mb-nav-desc {
    font-size: 13px;
    color: #666;
}

/* ===== INFOBOX STYLING ===== */
.infobox {
    border: 2px solid var(--stardew-border);
    border-radius: 8px;
    background: #f9f9f9;
    margin: 20px;
    float: right;
    width: 300px;
}

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

.infobox-image {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--stardew-border);
}

.infobox-data {
    padding: 15px;
}

.infobox-row {
    display: flex;
    border-bottom: 1px dashed #ddd;
    padding: 8px 0;
}

.infobox-row:last-child {
    border-bottom: none;
}

.infobox-label {
    font-weight: bold;
    color: var(--stardew-blue);
    min-width: 120px;
}

/* ===== MAIN PAGE SPECIFIC ===== */
.mainpage-welcome {
    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 {
    margin: 40px 0;
}

.mainpage-section-title {
    color: var(--stardew-blue);
    border-bottom: 2px solid var(--stardew-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Featured Content */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.featured-card {
    background: white;
    border: 1px solid var(--stardew-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.featured-image {
    height: 180px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 20px;
}

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

.featured-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== TABLES ===== */
.wikitable {
    border: 1px solid var(--stardew-border);
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

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

.wikitable td {
    border: 1px solid var(--stardew-border);
    padding: 10px 15px;
    background: white;
}

.wikitable tr:nth-child(even) td {
    background: #f9f9f9;
}

.wikitable tr:hover td {
    background: #f0f7ff;
}

/* ===== BUTTONS ===== */
.mb-button {
    display: inline-block;
    background: linear-gradient(to bottom, var(--stardew-blue), #1e4a8a);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

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

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

.mb-button-success {
    background: linear-gradient(to bottom, var(--stardew-green), #3d8b40);
}

/* ===== FOOTER ===== */
#footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 5px solid var(--stardew-blue);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    #mw-panel {
        display: none;
    }
    
    #content {
        margin: 10px;
        padding: 15px;
    }
    
    #p-logo a {
        width: 200px;
        height: 60px;
    }
    
    .mb-navigation-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .infobox {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
}

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

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    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 {
    visibility: visible;
    opacity: 1;
}

/* ===== CODE BLOCKS ===== */
pre, code {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

pre {
    padding: 15px;
    overflow-x: auto;
}

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 {
    background: #e8f5e9;
    border-left-color: var(--stardew-green);
}

.notice-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.notice-error {
    background: #f8d7da;
    border-left-color: #dc3545;
}