Jump to content

MediaWiki:Mobile.css

From Chrono Odyssey Wiki
Revision as of 10:57, 8 June 2025 by Chrono (talk | contribs)

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* All CSS here will be loaded for users of the mobile site */

/* Chrono Odyssey Wiki - Dark Fantasy Mobile Theme */
/* MediaWiki:Mobile.css - Version 1.43.0 Compatible */

/* ===== MOBILE VARIABLES ===== */
:root {
    --mobile-header-height: 50px;
    --mobile-padding: 15px;
    --touch-target-size: 44px;
}

/* ===== MOBILE BODY ===== */
body.skin-minerva {
    background: #0d0d0d;
    color: #c9c9c9;
}

/* ===== MOBILE HEADER ===== */
.header-container {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0f0f 100%);
    border-bottom: 2px solid #8b0000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.branding-box {
    background: none;
}

.header .branding-box h1 {
    color: #b89968;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 20px;
}

/* ===== MOBILE NAVIGATION ===== */
#mw-mf-main-menu-button {
    background: #1a0f0f;
    border: 1px solid #2a1515;
}

.navigation-drawer {
    background: #0d0d0d;
    border-right: 2px solid #8b0000;
}

.menu .hlist li a {
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    padding: 12px 15px;
    border-bottom: 1px solid #2a1515;
}

.menu .hlist li a:active {
    background: #1a0f0f;
    color: #b89968;
}

/* ===== MOBILE CONTENT ===== */
.content {
    background: #0d0d0d;
    padding: var(--mobile-padding);
}

.content h1, .content h2, .content h3 {
    color: #b89968;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #8b0000;
    padding-bottom: 8px;
}

.content h1 {
    font-size: 24px;
    text-align: center;
}

.content h2 {
    font-size: 20px;
}

.content h3 {
    font-size: 18px;
}

/* ===== MOBILE SECTIONS ===== */
.section-heading {
    background: #1a0f0f;
    border: 1px solid #2a1515;
    color: #b89968;
    padding: 12px 15px;
    margin: 0 -15px;
}

.section-heading .indicator {
    color: #8b0000;
}

/* ===== MOBILE LINKS ===== */
.content a {
    color: #b89968;
    text-decoration: none;
}

.content a:active {
    color: #d4af76;
}

.content a.new {
    color: #cc6666;
}

/* ===== MOBILE TABLES ===== */
.content table {
    background: #0d0d0d;
    border: 1px solid #2a1515;
    width: 100% !important;
    overflow-x: auto;
    display: block;
}

.content table th {
    background: #1a0f0f;
    color: #b89968;
    text-transform: uppercase;
    font-size: 12px;
    padding: 8px;
    border: 1px solid #2a1515;
}

.content table td {
    background: #0d0d0d;
    color: #999999;
    padding: 8px;
    border: 1px solid #2a1515;
}

/* ===== MOBILE INFOBOXES ===== */
.infobox {
    width: 100% !important;
    margin: 0 0 15px 0 !important;
    float: none !important;
    background: #0d0d0d;
    border: 2px solid #8b0000;
}

.infobox th {
    background: #1a0f0f;
    color: #b89968;
    font-size: 12px;
}

.infobox td {
    font-size: 13px;
}

/* ===== MOBILE IMAGES ===== */
.content .thumb {
    margin: 10px 0;
    width: 100% !important;
    background: #1a0f0f;
    border: 1px solid #2a1515;
}

.content .thumbinner {
    width: 100% !important;
}

.content .thumbimage {
    width: 100% !important;
    height: auto !important;
}

/* ===== MOBILE SEARCH ===== */
.search-overlay {
    background: #0d0d0d;
}

.search-overlay .search {
    background: #1a0f0f;
    border: 1px solid #2a1515;
    color: #c9c9c9;
}

.search-overlay .results {
    background: #0d0d0d;
}

.search-overlay .page-summary {
    color: #999999;
    border-bottom: 1px solid #2a1515;
}

.search-overlay .page-summary h3 {
    color: #b89968;
}

/* ===== MOBILE EDITOR ===== */
.editor-overlay {
    background: #0d0d0d;
}

.editor-overlay .wikitext-editor {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #2a1515;
}

.editor-overlay .summary-request {
    background: #1a0f0f;
    border: 1px solid #2a1515;
    color: #c9c9c9;
}

/* ===== MOBILE BUTTONS ===== */
.mw-ui-button {
    background: #8b0000;
    border: 1px solid #2a1515;
    color: white;
    text-transform: uppercase;
    min-height: var(--touch-target-size);
}

.mw-ui-button:active {
    background: #a00000;
}

.mw-ui-progressive {
    background: #8b0000;
}

/* ===== MOBILE FOOTER ===== */
.footer {
    background: #0a0a0a;
    border-top: 2px solid #8b0000;
    color: #666666;
    padding: 20px 15px;
}

.footer a {
    color: #b89968;
}

/* ===== MOBILE NOTIFICATIONS ===== */
.mw-notification {
    background: #1a0f0f;
    border: 2px solid #8b0000;
    color: #c9c9c9;
}

/* ===== MOBILE PAGE ACTIONS ===== */
.page-actions-menu {
    background: #1a0f0f;
    border: 1px solid #2a1515;
}

.page-actions-menu a {
    color: #999999;
}

/* ===== MOBILE OVERLAYS ===== */
.overlay {
    background: #0d0d0d;
}

.overlay-header {
    background: #1a0f0f;
    border-bottom: 1px solid #8b0000;
}

/* ===== MOBILE CATEGORIES ===== */
.catlinks {
    background: #1a0f0f;
    border: 1px solid #2a1515;
    padding: 10px;
    margin: 15px 0;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media screen and (max-width: 480px) {
    .content h1 {
        font-size: 20px;
    }
    
    .content h2 {
        font-size: 18px;
    }
    
    .content h3 {
        font-size: 16px;
    }
    
    .infobox {
        font-size: 12px;
    }
}

/* ===== DARK MODE OVERRIDES ===== */
@media (prefers-color-scheme: dark) {
    .skin-minerva .header,
    .skin-minerva .overlay-header {
        background: linear-gradient(180deg, #0a0a0a 0%, #1a0f0f 100%);
    }
}

/* ===== CUSTOM MOBILE CLASSES ===== */
.mobile-gothic-header {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0f0f 100%);
    border-bottom: 2px solid #8b0000;
    padding: 20px 15px;
    text-align: center;
    color: #b89968;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 22px;
    margin: -15px -15px 20px -15px;
}

.mobile-blood-button {
    background: #8b0000;
    border: 1px solid #2a1515;
    color: white;
    text-transform: uppercase;
    padding: 12px 20px;
    text-align: center;
    display: block;
    margin: 10px 0;
    letter-spacing: 1px;
}

/* ===== MOBILE MENU STYLING ===== */
.menu {
    background: #0d0d0d;
}

.menu ul {
    border-top: 1px solid #2a1515;
}

.menu ul li {
    border-bottom: 1px solid #2a1515;
}

.menu ul li a {
    color: #999999;
    padding: 15px;
    display: block;
}

.menu ul li a:active {
    background: #1a0f0f;
}

/* ===== FIX WHITE BACKGROUNDS ===== */
.skin-minerva .page-summary,
.skin-minerva .list-thumb,
.skin-minerva .content,
.skin-minerva body {
    background: #0d0d0d !important;
    color: #c9c9c9 !important;
}

/* ===== COMPREHENSIVE DARK THEME OVERRIDES ===== */
/* Force dark background on all elements */
.skin-minerva * {
    background-color: transparent;
}

/* Main containers */
html,
body,
.mw-body,
#mw-mf-page-center,
.overlay-enabled,
#mw-mf-viewport {
    background: #0d0d0d !important;
    color: #c9c9c9 !important;
}

/* Header elements */
.header-container,
.header,
.header-chrome {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0f0f 100%) !important;
    color: #c9c9c9 !important;
}

/* Fix any white backgrounds */
[style*="background: white"],
[style*="background:white"],
[style*="background-color: white"],
[style*="background-color:white"],
[style*="background: #fff"],
[style*="background:#fff"],
[style*="background-color: #fff"],
[style*="background-color:#fff"],
[style*="background: #ffffff"],
[style*="background:#ffffff"],
[style*="background-color: #ffffff"],
[style*="background-color:#ffffff"] {
    background: #0d0d0d !important;
}

/* Ensure readable text */
[style*="color: black"],
[style*="color:black"],
[style*="color: #000"],
[style*="color:#000"],
[style*="color: #000000"],
[style*="color:#000000"] {
    color: #c9c9c9 !important;
}


/* Mobile and Desktop views */
@media (max-width: 768px) {
  /* Show/hide appropriate views */
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }

} /* End of @media (max-width: 768px) */