MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary Tag: Reverted |
mNo edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
.class { }/* needed for some reason for the @imports to work */ | .class { }/* needed for some reason for the @imports to work */ | ||
@import url('https://fonts.googleapis.com/css2?family= | @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'); | ||
/* Imports caching */ | /* Imports caching */ | ||
| Line 49: | Line 49: | ||
} | } | ||
/* ===== HEADER RESTYLING ===== */ | /* ===== FIX HEADER RESTYLING ===== */ | ||
/* The site uses a different header structure */ | |||
#mw-page-base { | #mw-page-base { | ||
background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color)); | background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color)); | ||
| Line 55: | Line 56: | ||
} | } | ||
/* Target the actual header container */ | |||
.mw-header { | |||
background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color)); | |||
height: 60px; | height: 60px; | ||
border-bottom: 1px solid var(--border-color); | |||
} | } | ||
/* Logo area */ | /* Logo area - target the actual logo container */ | ||
#p-logo { | #p-logo { | ||
position: absolute; | position: absolute !important; | ||
left: 20px; | left: 20px !important; | ||
top: 10px; | top: 10px !important; | ||
z-index: 1000; | |||
} | } | ||
#p-logo a { | #p-logo a { | ||
display: block; | display: block; | ||
background: none; | background: none !important; | ||
padding: 0; | padding: 0 !important; | ||
width: auto !important; | |||
height: auto !important; | |||
} | } | ||
/* Search box */ | /* Search box - target the actual search container */ | ||
#simpleSearch { | #mw-head #simpleSearch { | ||
position: absolute; | position: absolute !important; | ||
right: 200px; | right: 200px !important; | ||
top: | top: 10px !important; | ||
width: 300px; | width: 300px !important; | ||
border-radius: 20px; | border-radius: 20px !important; | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: var(--shadow); | box-shadow: var(--shadow); | ||
z-index: 1000; | |||
} | } | ||
#searchInput { | #simpleSearch input#searchInput { | ||
width: 100%; | width: 100% !important; | ||
padding: 10px 45px 10px 20px; | padding: 10px 45px 10px 20px !important; | ||
background: var(--background-medium); | background: var(--background-medium) !important; | ||
border: 2px solid var(--accent-color); | border: 2px solid var(--accent-color) !important; | ||
color: var(--text-primary); | color: var(--text-primary) !important; | ||
font-size: 14px; | font-size: 14px !important; | ||
border-radius: 20px; | border-radius: 20px !important; | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
box-sizing: border-box !important; | |||
} | |||
#simpleSearch input#searchInput:focus { | |||
outline: none !important; | |||
border-color: var(--accent-color) !important; | |||
box-shadow: 0 0 0 3px rgba(74, 154, 233, 0.3) !important; | |||
} | } | ||
# | #simpleSearch #searchButton { | ||
position: absolute !important; | |||
right: 0 !important; | |||
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; | |||
} | } | ||
#searchButton:: | #simpleSearch #searchButton:hover { | ||
# | background: #3a89d9 !important; | ||
} | |||
/* Hide default search icon and add accessible label */ | |||
#searchButton .search-icon { | |||
display: none !important; | |||
} | |||
#searchButton::before { | |||
content: "🔍"; | |||
font-size: 16px; | |||
} | |||
#searchButton::after { | |||
content: "Search"; | content: "Search"; | ||
position: absolute; | position: absolute; | ||
| Line 127: | Line 154: | ||
} | } | ||
/* ===== FIX SIDEBAR (LEFT NAVIGATION) ===== */ | |||
/* Target the actual sidebar containers */ | |||
/* ===== SIDEBAR (LEFT NAVIGATION) ===== */ | |||
#mw-panel { | #mw-panel { | ||
background: var(--background-medium); | background: var(--background-medium) !important; | ||
border-right: 1px solid var(--border-color); | border-right: 1px solid var(--border-color) !important; | ||
width: 220px; | width: 220px !important; | ||
padding-top: 80px; | padding-top: 80px !important; | ||
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); | box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); | ||
} | } | ||
.portal { | .portal { | ||
margin: 0; | margin: 0 !important; | ||
padding: 15px 0; | padding: 15px 0 !important; | ||
border-bottom: 1px solid var(--border-color); | border-bottom: 1px solid var(--border-color) !important; | ||
background: transparent !important; | |||
} | } | ||
.portal h3 { | .portal h3 { | ||
font-size: 16px; | font-size: 16px !important; | ||
color: var(--accent-color); | color: var(--accent-color) !important; | ||
margin: 0 0 10px 15px; | margin: 0 0 10px 15px !important; | ||
padding: 0; | padding: 0 !important; | ||
font-weight: 600; | font-weight: 600 !important; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
letter-spacing: 0.5px; | letter-spacing: 0.5px; | ||
background: transparent !important; | |||
border: none !important; | |||
} | } | ||
.portal .body { | .portal .body { | ||
margin: 0; | margin: 0 !important; | ||
padding: 0; | padding: 0 !important; | ||
} | } | ||
.portal .body ul { | .portal .body ul { | ||
list-style: none; | list-style: none !important; | ||
margin: 0; | margin: 0 !important; | ||
padding: 0; | padding: 0 !important; | ||
} | } | ||
.portal .body li { | .portal .body li { | ||
margin: 0; | margin: 0 !important; | ||
padding: 0; | padding: 0 !important; | ||
} | } | ||
.portal .body li a { | .portal .body li a { | ||
display: block; | display: block !important; | ||
padding: 8px 20px; | padding: 8px 20px !important; | ||
color: var(--text-secondary); | color: var(--text-secondary) !important; | ||
text-decoration: none; | text-decoration: none !important; | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
font-size: 14px; | font-size: 14px !important; | ||
border-left: 3px solid transparent; | border-left: 3px solid transparent !important; | ||
background: transparent !important; | |||
} | } | ||
.portal .body li a:hover { | .portal .body li a:hover { | ||
background: rgba(74, 154, 233, 0.1); | background: rgba(74, 154, 233, 0.1) !important; | ||
color: var(--accent-color); | color: var(--accent-color) !important; | ||
border-left-color: var(--accent-color); | border-left-color: var(--accent-color) !important; | ||
padding-left: 25px; | padding-left: 25px !important; | ||
} | } | ||
.portal .body li a:active { | .portal .body li a:active { | ||
background: rgba(74, 154, 233, 0.2); | background: rgba(74, 154, 233, 0.2) !important; | ||
} | } | ||
/* ===== MAIN CONTENT AREA ===== */ | /* ===== FIX MAIN CONTENT AREA ===== */ | ||
#content { | #content { | ||
margin-left: 240px; | margin-left: 240px !important; | ||
margin-right: 0; | margin-right: 0 !important; | ||
padding: 20px 40px; | padding: 20px 40px !important; | ||
max-width: none; | max-width: none !important; | ||
background: var(--background-dark); | background: var(--background-dark) !important; | ||
} | } | ||
.mw-body { | .mw-body { | ||
border: none; | border: none !important; | ||
margin: 0; | margin: 0 !important; | ||
background: var(--background-dark) !important; | |||
padding: 0 !important; | |||
} | } | ||
.mw-body .firstHeading { | .mw-body .firstHeading { | ||
font-size: 36px; | font-size: 36px !important; | ||
color: var(--accent-color); | color: var(--accent-color) !important; | ||
margin: 0 0 20px 0; | margin: 0 0 20px 0 !important; | ||
padding-bottom: 15px; | padding-bottom: 15px !important; | ||
border-bottom: 3px solid var(--accent-color); | border-bottom: 3px solid var(--accent-color) !important; | ||
font-weight: 700; | font-weight: 700 !important; | ||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); | text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); | ||
background: transparent !important; | |||
} | } | ||
/* Content styling */ | /* Content styling */ | ||
.mw-body-content { | .mw-body-content { | ||
font-size: 16px; | font-size: 16px !important; | ||
line-height: 1.7; | line-height: 1.7 !important; | ||
color: var(--text-primary) !important; | |||
background: transparent !important; | |||
} | } | ||
.mw-body-content p { | .mw-body-content p { | ||
margin: 15px 0; | margin: 15px 0 !important; | ||
color: var(--text-primary) !important; | |||
} | } | ||
.mw-body-content h2 { | .mw-body-content h2 { | ||
color: var(--text-primary); | color: var(--text-primary) !important; | ||
border-bottom: 2px solid var(--accent-color); | border-bottom: 2px solid var(--accent-color) !important; | ||
padding-bottom: 8px; | padding-bottom: 8px !important; | ||
margin: 30px 0 20px 0; | margin: 30px 0 20px 0 !important; | ||
font-size: 24px; | font-size: 24px !important; | ||
font-weight: 600; | font-weight: 600 !important; | ||
background: transparent !important; | |||
} | } | ||
.mw-body-content h3 { | .mw-body-content h3 { | ||
color: var(--accent-color); | color: var(--accent-color) !important; | ||
margin: 25px 0 15px 0; | margin: 25px 0 15px 0 !important; | ||
font-size: 20px; | font-size: 20px !important; | ||
font-weight: 600; | font-weight: 600 !important; | ||
background: transparent !important; | |||
} | } | ||
.mw-body-content h4 { | .mw-body-content h4 { | ||
color: var(--text-secondary); | color: var(--text-secondary) !important; | ||
margin: 20px 0 10px 0; | margin: 20px 0 10px 0 !important; | ||
font-size: 18px; | font-size: 18px !important; | ||
background: transparent !important; | |||
} | } | ||
/* Links */ | /* Links */ | ||
.mw-body-content a { | .mw-body-content a { | ||
color: var(--accent-color); | color: var(--accent-color) !important; | ||
text-decoration: none; | text-decoration: none !important; | ||
border-bottom: 1px dashed var(--accent-color); | border-bottom: 1px dashed var(--accent-color) !important; | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
background: transparent !important; | |||
} | } | ||
.mw-body-content a:hover { | .mw-body-content a:hover { | ||
color: #7ab8ff; | color: #7ab8ff !important; | ||
border-bottom: 1px solid #7ab8ff; | border-bottom: 1px solid #7ab8ff !important; | ||
} | } | ||
.mw-body-content a:visited { | .mw-body-content a:visited { | ||
color: #9d6cd8; | color: #9d6cd8 !important; | ||
} | } | ||
/* ===== FOOTER ===== */ | /* ===== FIX FOOTER ===== */ | ||
#footer { | #footer { | ||
background: var(--background-medium); | background: var(--background-medium) !important; | ||
border-top: 3px solid var(--accent-color); | border-top: 3px solid var(--accent-color) !important; | ||
margin: 40px 0 0 240px; | margin: 40px 0 0 240px !important; | ||
padding: 30px 40px; | padding: 30px 40px !important; | ||
color: var(--text-secondary); | color: var(--text-secondary) !important; | ||
} | } | ||
| Line 281: | Line 319: | ||
.footer-places, .footer-info { | .footer-places, .footer-info { | ||
display: flex; | display: flex !important; | ||
flex-wrap: wrap; | flex-wrap: wrap !important; | ||
gap: 20px; | gap: 20px !important; | ||
justify-content: center; | justify-content: center !important; | ||
margin: 15px 0; | margin: 15px 0 !important; | ||
background: transparent !important; | |||
} | } | ||
.footer-places li, .footer-info li { | .footer-places li, .footer-info li { | ||
list-style: none; | list-style: none !important; | ||
margin: 5px 0; | margin: 5px 0 !important; | ||
background: transparent !important; | |||
} | } | ||
.footer-places a, .footer-info a { | .footer-places a, .footer-info a { | ||
color: var(--text-secondary); | color: var(--text-secondary) !important; | ||
text-decoration: none; | text-decoration: none !important; | ||
padding: 5px 10px; | padding: 5px 10px !important; | ||
border-radius: 4px; | border-radius: 4px !important; | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
background: transparent !important; | |||
} | } | ||
.footer-places a:hover, .footer-info a:hover { | .footer-places a:hover, .footer-info a:hover { | ||
color: var(--accent-color); | color: var(--accent-color) !important; | ||
background: rgba(74, 154, 233, 0.1); | background: rgba(74, 154, 233, 0.1) !important; | ||
} | } | ||
/* ===== TABLES ===== */ | /* ===== FIX TABLES ===== */ | ||
.mw-body-content table { | .mw-body-content table { | ||
width: 100%; | width: 100% !important; | ||
border-collapse: collapse; | border-collapse: collapse !important; | ||
margin: 20px 0; | margin: 20px 0 !important; | ||
background: var(--background-light); | background: var(--background-light) !important; | ||
border-radius: 8px; | border-radius: 8px !important; | ||
overflow: hidden; | overflow: hidden !important; | ||
box-shadow: var(--shadow); | box-shadow: var(--shadow) !important; | ||
} | } | ||
.mw-body-content table.wikitable { | .mw-body-content table.wikitable { | ||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color) !important; | ||
} | } | ||
.mw-body-content table.wikitable > tr > th, | .mw-body-content table.wikitable > tr > th, | ||
.mw-body-content table.wikitable > * > tr > th { | .mw-body-content table.wikitable > * > tr > th { | ||
background: var(--primary-color); | background: var(--primary-color) !important; | ||
color: white; | color: white !important; | ||
font-weight: 600; | font-weight: 600 !important; | ||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color) !important; | ||
padding: 12px 15px; | padding: 12px 15px !important; | ||
text-align: left; | text-align: left !important; | ||
} | } | ||
.mw-body-content table.wikitable > tr > td, | .mw-body-content table.wikitable > tr > td, | ||
.mw-body-content table.wikitable > * > tr > td { | .mw-body-content table.wikitable > * > tr > td { | ||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color) !important; | ||
padding: 10px 15px; | padding: 10px 15px !important; | ||
color: var(--text-primary); | color: var(--text-primary) !important; | ||
} | } | ||
.mw-body-content table.wikitable > tr:nth-child(even) { | .mw-body-content table.wikitable > tr:nth-child(even) { | ||
background: rgba(255, 255, 255, 0.05); | background: rgba(255, 255, 255, 0.05) !important; | ||
} | } | ||
.mw-body-content table.wikitable > tr:hover { | .mw-body-content table.wikitable > tr:hover { | ||
background: rgba(74, 154, 233, 0.1); | background: rgba(74, 154, 233, 0.1) !important; | ||
} | } | ||
/* ===== CODE & PRE ===== */ | /* ===== FIX CODE & PRE ===== */ | ||
.mw-body-content pre, | .mw-body-content pre, | ||
.mw-body-content code { | .mw-body-content code { | ||
background: var(--background-light); | background: var(--background-light) !important; | ||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color) !important; | ||
border-radius: 6px; | border-radius: 6px !important; | ||
font-family: 'Consolas', 'Monaco', 'Courier New', monospace; | font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important; | ||
} | } | ||
.mw-body-content pre { | .mw-body-content pre { | ||
padding: 15px; | padding: 15px !important; | ||
overflow-x: auto; | overflow-x: auto !important; | ||
margin: 20px 0; | margin: 20px 0 !important; | ||
} | } | ||
.mw-body-content code { | .mw-body-content code { | ||
padding: 2px 6px; | padding: 2px 6px !important; | ||
font-size: 14px; | font-size: 14px !important; | ||
} | } | ||
/* ===== NAVBOXES & TEMPLATES ===== */ | /* ===== FIX NAVBOXES & TEMPLATES ===== */ | ||
.navbox { | .navbox { | ||
background: var(--background-light); | background: var(--background-light) !important; | ||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color) !important; | ||
border-radius: 8px; | border-radius: 8px !important; | ||
margin: 20px 0; | margin: 20px 0 !important; | ||
padding: 15px; | padding: 15px !important; | ||
box-shadow: var(--shadow); | box-shadow: var(--shadow) !important; | ||
} | } | ||
.navbox-title { | .navbox-title { | ||
background: var(--primary-color); | background: var(--primary-color) !important; | ||
color: white; | color: white !important; | ||
padding: 10px 15px; | padding: 10px 15px !important; | ||
margin: -15px -15px 15px -15px; | margin: -15px -15px 15px -15px !important; | ||
border-radius: 8px 8px 0 0; | border-radius: 8px 8px 0 0 !important; | ||
font-weight: 600; | font-weight: 600 !important; | ||
} | } | ||
/* ===== BUTTONS ===== */ | /* ===== FIX BUTTONS ===== */ | ||
.mw-ui-button { | .mw-ui-button { | ||
background: var(--accent-color); | background: var(--accent-color) !important; | ||
color: white; | color: white !important; | ||
border: none; | border: none !important; | ||
padding: 8px 20px; | padding: 8px 20px !important; | ||
border-radius: 6px; | border-radius: 6px !important; | ||
cursor: pointer; | cursor: pointer; | ||
font-size: 14px; | font-size: 14px !important; | ||
font-weight: 600; | font-weight: 600 !important; | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
} | } | ||
.mw-ui-button:hover { | .mw-ui-button:hover { | ||
background: #3a89d9; | background: #3a89d9 !important; | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | ||
| Line 408: | Line 449: | ||
} | } | ||
/* ===== SPECIAL PAGES ===== */ | /* ===== FIX SPECIAL PAGES ===== */ | ||
.catlinks { | .catlinks { | ||
background: var(--background-light); | background: var(--background-light) !important; | ||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color) !important; | ||
border-radius: 8px; | border-radius: 8px !important; | ||
padding: 15px; | padding: 15px !important; | ||
margin: 20px 0; | margin: 20px 0 !important; | ||
} | |||
/* ===== FIX EXISTING WIKI ELEMENTS ===== */ | |||
/* Main page content containers */ | |||
.main-page-tagline, | |||
.mainpage-box, | |||
#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 */ | |||
.mw-parser-output > * { | |||
background: transparent !important; | |||
} | |||
/* Ensure content area has proper background */ | |||
#mw-content-text { | |||
background: transparent !important; | |||
} | } | ||
| Line 420: | Line 485: | ||
@media (max-width: 1024px) { | @media (max-width: 1024px) { | ||
#mw-panel { | #mw-panel { | ||
width: 200px; | width: 200px !important; | ||
} | } | ||
#content { | #content { | ||
margin-left: 220px; | margin-left: 220px !important; | ||
} | } | ||
#footer { | #footer { | ||
margin-left: 220px; | margin-left: 220px !important; | ||
} | } | ||
} | } | ||
| Line 434: | Line 499: | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
#mw-panel { | #mw-panel { | ||
display: none; | display: none !important; | ||
} | } | ||
#content { | #content { | ||
margin-left: 0; | margin-left: 0 !important; | ||
padding: 15px; | padding: 15px !important; | ||
} | } | ||
#footer { | #footer { | ||
margin-left: 0; | margin-left: 0 !important; | ||
padding: 20px 15px; | padding: 20px 15px !important; | ||
} | |||
#mw-head #simpleSearch { | |||
right: 15px !important; | |||
width: 200px !important; | |||
top: 15px !important; | |||
} | } | ||
# | #p-logo { | ||
left: 15px !important; | |||
top: 15px !important; | |||
} | } | ||
} | } | ||
| Line 455: | Line 526: | ||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
.mw-body .firstHeading { | .mw-body .firstHeading { | ||
font-size: 28px; | font-size: 28px !important; | ||
} | } | ||
#simpleSearch { | #mw-head #simpleSearch { | ||
width: 150px; | width: 150px !important; | ||
} | } | ||
} | } | ||
Revision as of 06:35, 10 December 2025
.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');
/* 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");
/* ===== TERRARIA-STYLE WIKI THEME ===== */
/* Reset and base styles */
:root {
--primary-color: #1e3a5f;
--secondary-color: #2a4d7e;
--accent-color: #4a9ae9;
--text-primary: #e0e0e0;
--text-secondary: #b0b0b0;
--background-dark: #121212;
--background-medium: #1a1a1a;
--background-light: #242424;
--border-color: #333;
--success-color: #4caf50;
--warning-color: #ff9800;
--danger-color: #f44336;
--shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
/* Global body styling */
body {
background-color: var(--background-dark);
color: var(--text-primary);
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 */
#mw-page-base {
background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
height: 60px;
}
/* Target the actual header container */
.mw-header {
background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
height: 60px;
border-bottom: 1px solid var(--border-color);
}
/* Logo area - target the actual logo container */
#p-logo {
position: absolute !important;
left: 20px !important;
top: 10px !important;
z-index: 1000;
}
#p-logo a {
display: block;
background: none !important;
padding: 0 !important;
width: auto !important;
height: auto !important;
}
/* Search box - target the actual search container */
#mw-head #simpleSearch {
position: absolute !important;
right: 200px !important;
top: 10px !important;
width: 300px !important;
border-radius: 20px !important;
overflow: hidden;
box-shadow: var(--shadow);
z-index: 1000;
}
#simpleSearch input#searchInput {
width: 100% !important;
padding: 10px 45px 10px 20px !important;
background: var(--background-medium) !important;
border: 2px solid var(--accent-color) !important;
color: var(--text-primary) !important;
font-size: 14px !important;
border-radius: 20px !important;
transition: all 0.3s ease;
box-sizing: border-box !important;
}
#simpleSearch input#searchInput:focus {
outline: none !important;
border-color: var(--accent-color) !important;
box-shadow: 0 0 0 3px rgba(74, 154, 233, 0.3) !important;
}
#simpleSearch #searchButton {
position: absolute !important;
right: 0 !important;
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 {
background: #3a89d9 !important;
}
/* Hide default search icon and add accessible label */
#searchButton .search-icon {
display: none !important;
}
#searchButton::before {
content: "🔍";
font-size: 16px;
}
#searchButton::after {
content: "Search";
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* ===== FIX SIDEBAR (LEFT NAVIGATION) ===== */
/* Target the actual sidebar containers */
#mw-panel {
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;
padding: 15px 0 !important;
border-bottom: 1px solid var(--border-color) !important;
background: transparent !important;
}
.portal h3 {
font-size: 16px !important;
color: var(--accent-color) !important;
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 {
margin: 0 !important;
padding: 0 !important;
}
.portal .body ul {
list-style: none !important;
margin: 0 !important;
padding: 0 !important;
}
.portal .body li {
margin: 0 !important;
padding: 0 !important;
}
.portal .body li a {
display: block !important;
padding: 8px 20px !important;
color: var(--text-secondary) !important;
text-decoration: none !important;
transition: all 0.3s ease;
font-size: 14px !important;
border-left: 3px solid transparent !important;
background: transparent !important;
}
.portal .body li a:hover {
background: rgba(74, 154, 233, 0.1) !important;
color: var(--accent-color) !important;
border-left-color: var(--accent-color) !important;
padding-left: 25px !important;
}
.portal .body li a:active {
background: rgba(74, 154, 233, 0.2) !important;
}
/* ===== FIX MAIN CONTENT AREA ===== */
#content {
margin-left: 240px !important;
margin-right: 0 !important;
padding: 20px 40px !important;
max-width: none !important;
background: var(--background-dark) !important;
}
.mw-body {
border: none !important;
margin: 0 !important;
background: var(--background-dark) !important;
padding: 0 !important;
}
.mw-body .firstHeading {
font-size: 36px !important;
color: var(--accent-color) !important;
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 */
.mw-body-content {
font-size: 16px !important;
line-height: 1.7 !important;
color: var(--text-primary) !important;
background: transparent !important;
}
.mw-body-content p {
margin: 15px 0 !important;
color: var(--text-primary) !important;
}
.mw-body-content h2 {
color: var(--text-primary) !important;
border-bottom: 2px solid var(--accent-color) !important;
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 {
color: var(--accent-color) !important;
margin: 25px 0 15px 0 !important;
font-size: 20px !important;
font-weight: 600 !important;
background: transparent !important;
}
.mw-body-content h4 {
color: var(--text-secondary) !important;
margin: 20px 0 10px 0 !important;
font-size: 18px !important;
background: transparent !important;
}
/* Links */
.mw-body-content a {
color: var(--accent-color) !important;
text-decoration: none !important;
border-bottom: 1px dashed var(--accent-color) !important;
transition: all 0.3s ease;
background: transparent !important;
}
.mw-body-content a:hover {
color: #7ab8ff !important;
border-bottom: 1px solid #7ab8ff !important;
}
.mw-body-content a:visited {
color: #9d6cd8 !important;
}
/* ===== FIX FOOTER ===== */
#footer {
background: var(--background-medium) !important;
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 {
text-align: center;
margin-bottom: 20px;
}
.footer-places, .footer-info {
display: flex !important;
flex-wrap: wrap !important;
gap: 20px !important;
justify-content: center !important;
margin: 15px 0 !important;
background: transparent !important;
}
.footer-places li, .footer-info li {
list-style: none !important;
margin: 5px 0 !important;
background: transparent !important;
}
.footer-places a, .footer-info a {
color: var(--text-secondary) !important;
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 {
color: var(--accent-color) !important;
background: rgba(74, 154, 233, 0.1) !important;
}
/* ===== FIX TABLES ===== */
.mw-body-content table {
width: 100% !important;
border-collapse: collapse !important;
margin: 20px 0 !important;
background: var(--background-light) !important;
border-radius: 8px !important;
overflow: hidden !important;
box-shadow: var(--shadow) !important;
}
.mw-body-content table.wikitable {
border: 1px solid var(--border-color) !important;
}
.mw-body-content table.wikitable > tr > th,
.mw-body-content table.wikitable > * > tr > th {
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,
.mw-body-content table.wikitable > * > tr > td {
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) {
background: rgba(255, 255, 255, 0.05) !important;
}
.mw-body-content table.wikitable > tr:hover {
background: rgba(74, 154, 233, 0.1) !important;
}
/* ===== FIX CODE & PRE ===== */
.mw-body-content pre,
.mw-body-content code {
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 {
padding: 15px !important;
overflow-x: auto !important;
margin: 20px 0 !important;
}
.mw-body-content code {
padding: 2px 6px !important;
font-size: 14px !important;
}
/* ===== FIX NAVBOXES & TEMPLATES ===== */
.navbox {
background: var(--background-light) !important;
border: 1px solid var(--border-color) !important;
border-radius: 8px !important;
margin: 20px 0 !important;
padding: 15px !important;
box-shadow: var(--shadow) !important;
}
.navbox-title {
background: var(--primary-color) !important;
color: white !important;
padding: 10px 15px !important;
margin: -15px -15px 15px -15px !important;
border-radius: 8px 8px 0 0 !important;
font-weight: 600 !important;
}
/* ===== FIX BUTTONS ===== */
.mw-ui-button {
background: var(--accent-color) !important;
color: white !important;
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 {
background: #3a89d9 !important;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.mw-ui-button:active {
transform: translateY(0);
}
/* ===== FIX SPECIAL PAGES ===== */
.catlinks {
background: var(--background-light) !important;
border: 1px solid var(--border-color) !important;
border-radius: 8px !important;
padding: 15px !important;
margin: 20px 0 !important;
}
/* ===== FIX EXISTING WIKI ELEMENTS ===== */
/* Main page content containers */
.main-page-tagline,
.mainpage-box,
#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 */
.mw-parser-output > * {
background: transparent !important;
}
/* Ensure content area has proper background */
#mw-content-text {
background: transparent !important;
}
/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
#mw-panel {
width: 200px !important;
}
#content {
margin-left: 220px !important;
}
#footer {
margin-left: 220px !important;
}
}
@media (max-width: 768px) {
#mw-panel {
display: none !important;
}
#content {
margin-left: 0 !important;
padding: 15px !important;
}
#footer {
margin-left: 0 !important;
padding: 20px 15px !important;
}
#mw-head #simpleSearch {
right: 15px !important;
width: 200px !important;
top: 15px !important;
}
#p-logo {
left: 15px !important;
top: 15px !important;
}
}
@media (max-width: 480px) {
.mw-body .firstHeading {
font-size: 28px !important;
}
#mw-head #simpleSearch {
width: 150px !important;
}
}