MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Tag: Undo |
mNo edit summary Tag: Reverted |
||
| Line 22: | Line 22: | ||
/* ============================================ | /* ============================================ | ||
ELEMENTAL TEAL COLOR SCHEME | |||
Core theme variables for light mode | |||
============================================ */ | ============================================ */ | ||
:root { | :root { | ||
/* Theme | /* Elemental Teal Theme - Light Mode Defaults */ | ||
--theme-page-background-color: # | --elemental-main: #2C7A7B; /* Deep teal for text/headers */ | ||
--theme-page-background-color--secondary: | --elemental-accent: #4FD1C5; /* Bright teal for accents */ | ||
--theme-page-text-color: # | --elemental-bg-light: #E6FFFA; /* Very soft tint for backgrounds */ | ||
--theme-link-color: | --elemental-border: #81E6D9; /* Soft border */ | ||
--theme-border-color: | --elemental-glow: rgba(79, 209, 197, 0.4); | ||
--theme-border-color-rgb: | --elemental-hover: #319795; /* Slightly lighter teal for hover states */ | ||
--accent: | --elemental-muted: #9AE6DF; /* Muted teal for secondary elements */ | ||
--accent-light: # | --elemental-text-on-dark: #FFFFFF; | ||
--gray-050: rgba( | --elemental-text-muted: #4A5568; | ||
/* Map to existing theme variables (if Colors.css doesn't override) */ | |||
--theme-page-background-color: #FFFFFF; | |||
--theme-page-background-color--secondary: var(--elemental-bg-light); | |||
--theme-page-text-color: #1A202C; | |||
--theme-link-color: var(--elemental-main); | |||
--theme-border-color: var(--elemental-border); | |||
--theme-border-color-rgb: 129, 230, 217; | |||
--accent: var(--elemental-accent); | |||
--accent-light: #7AE5D9; | |||
--gray-050: rgba(44, 122, 123, 0.05); | |||
/* Main Page Layout Variables */ | /* Main Page Layout Variables */ | ||
| Line 40: | Line 52: | ||
--main-page-layout--tablet: 'banner banner' 'about updates' 'starts starts' 'items items' 'characters characters' 'enemies enemies' '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'; | --main-page-layout--mobile: 'banner' 'about' 'updates' 'starts' 'items' 'characters' 'enemies' 'area'; | ||
} | |||
/* ============================================ | |||
DARK MODE - Elemental Teal Adaptation | |||
============================================ */ | |||
@media screen and (prefers-color-scheme: dark) { | |||
:root { | |||
/* Elemental Teal Theme - Dark Mode */ | |||
--elemental-main: #81E6D9; /* Lighter teal for readability on dark */ | |||
--elemental-accent: #4FD1C5; /* Keep bright teal accent */ | |||
--elemental-bg-light: #1A365D; /* Deep navy/teal background */ | |||
--elemental-border: #2C7A7B; /* Darker teal border */ | |||
--elemental-glow: rgba(129, 230, 217, 0.2); | |||
--elemental-hover: #A8F0E8; /* Lighter hover for dark mode */ | |||
--elemental-muted: #5C9E9F; /* Muted teal for dark mode */ | |||
--elemental-text-on-dark: #FFFFFF; | |||
--elemental-text-muted: #A0AEC0; | |||
/* Dark mode theme overrides */ | |||
--theme-page-background-color: #0D1B2A; | |||
--theme-page-background-color--secondary: var(--elemental-bg-light); | |||
--theme-page-text-color: #E2E8F0; | |||
--theme-link-color: var(--elemental-main); | |||
--theme-border-color: var(--elemental-border); | |||
--theme-border-color-rgb: 44, 122, 123; | |||
--accent: var(--elemental-accent); | |||
--accent-light: #6FE0D6; | |||
--gray-050: rgba(129, 230, 217, 0.08); | |||
} | |||
} | |||
/* ============================================ | |||
CODEMIRROR EDITOR FIXES | |||
Prevents character misplacement in editor | |||
============================================ */ | |||
.wikiEditor-ui { | |||
display: block !important; | |||
position: relative !important; | |||
isolation: isolate !important; | |||
} | |||
.wikiEditor-ui-view { | |||
isolation: isolate !important; | |||
background: var(--theme-page-background-color--secondary) !important; | |||
border: 1px solid var(--theme-border-color) !important; | |||
} | |||
/* Editor text container - MUST be properly positioned */ | |||
.wikiEditor-ui .wikiEditor-ui-text { | |||
position: relative !important; | |||
z-index: 1 !important; | |||
display: block !important; | |||
clear: both !important; | |||
pointer-events: auto !important; | |||
} | |||
/* CodeMirror core fixes */ | |||
.CodeMirror { | |||
position: relative !important; | |||
z-index: 1 !important; | |||
height: auto !important; | |||
min-height: 300px !important; | |||
font-family: 'Consolas', 'Monaco', 'Menlo', monospace !important; | |||
font-size: 14px !important; | |||
line-height: 1.6 !important; | |||
background: var(--theme-page-background-color--secondary) !important; | |||
color: var(--theme-page-text-color) !important; | |||
border: 1px solid var(--theme-border-color) !important; | |||
border-radius: 6px !important; | |||
pointer-events: auto !important; | |||
} | |||
.CodeMirror-scroll { | |||
position: relative !important; | |||
overflow: auto !important; | |||
height: 100% !important; | |||
pointer-events: auto !important; | |||
} | |||
.CodeMirror-sizer { | |||
position: relative !important; | |||
} | |||
.CodeMirror-lines { | |||
position: relative !important; | |||
z-index: 1 !important; | |||
padding: 8px 0 !important; | |||
pointer-events: auto !important; | |||
} | |||
/* CRITICAL: Cursor absolute positioning */ | |||
.CodeMirror-cursor { | |||
position: absolute !important; | |||
z-index: 100 !important; | |||
pointer-events: none !important; | |||
border-left: 2px solid var(--elemental-accent) !important; | |||
} | |||
.CodeMirror pre.CodeMirror-line, | |||
.CodeMirror pre.CodeMirror-line-like { | |||
position: relative !important; | |||
z-index: 1 !important; | |||
} | |||
.CodeMirror-focused { | |||
z-index: 2 !important; | |||
} | |||
.CodeMirror-selected { | |||
background: var(--elemental-glow) !important; | |||
z-index: 50 !important; | |||
} | |||
.CodeMirror-focused .CodeMirror-selected { | |||
background: rgba(79, 209, 197, 0.3) !important; | |||
} | |||
.CodeMirror-gutters { | |||
background: var(--theme-page-background-color) !important; | |||
border-right: 1px solid var(--theme-border-color) !important; | |||
z-index: 1 !important; | |||
} | |||
.CodeMirror-linenumber { | |||
color: var(--elemental-muted) !important; | |||
padding: 0 8px 0 5px !important; | |||
} | |||
/* Hidden CodeMirror textarea */ | |||
.CodeMirror textarea { | |||
position: absolute !important; | |||
z-index: 0 !important; | |||
opacity: 0 !important; | |||
pointer-events: none !important; | |||
} | |||
/* Toolbar - keep above editor */ | |||
.wikiEditor-ui-toolbar { | |||
position: relative !important; | |||
z-index: 10 !important; | |||
background: var(--theme-page-background-color--secondary) !important; | |||
border-bottom: 2px solid var(--elemental-accent) !important; | |||
pointer-events: auto !important; | |||
border-radius: 6px 6px 0 0 !important; | |||
} | |||
.wikiEditor-ui-toolbar .toolbar { | |||
position: relative; | |||
z-index: 10; | |||
} | |||
.wikiEditor-ui-toolbar .group { | |||
background: var(--theme-page-background-color--secondary); | |||
border-color: var(--theme-border-color); | |||
color: var(--theme-page-text-color); | |||
fill: var(--theme-page-text-color); | |||
position: relative; | |||
display: inline-block; | |||
vertical-align: middle; | |||
z-index: 10; | |||
padding: 4px 6px; | |||
} | |||
.wikiEditor-ui-toolbar .sections { | |||
position: relative !important; | |||
z-index: 5 !important; | |||
background: var(--theme-page-background-color--secondary) !important; | |||
} | |||
.wikiEditor-ui-toolbar .section-hidden { | |||
display: none !important; | |||
visibility: hidden !important; | |||
pointer-events: none !important; | |||
} | |||
.wikiEditor-ui-toolbar .menu { | |||
position: absolute !important; | |||
z-index: 1000 !important; | |||
background: var(--theme-page-background-color--secondary) !important; | |||
border: 1px solid var(--elemental-border) !important; | |||
border-radius: 6px !important; | |||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important; | |||
} | |||
.wikiEditor-ui-toolbar .options { | |||
background: var(--theme-page-background-color--secondary) !important; | |||
} | |||
.wikiEditor-ui-toolbar .menu .options .option { | |||
background: var(--theme-page-background-color--secondary); | |||
color: var(--theme-page-text-color); | |||
padding: 8px 14px; | |||
cursor: pointer; | |||
transition: background 0.15s ease; | |||
} | |||
.wikiEditor-ui-toolbar .menu .options .option:hover { | |||
background: var(--elemental-accent) !important; | |||
color: var(--elemental-text-on-dark) !important; | |||
} | |||
.wikiEditor-ui-toolbar .tabs { | |||
position: relative !important; | |||
z-index: 8 !important; | |||
background: var(--theme-page-background-color--secondary) !important; | |||
border-top: 1px solid var(--theme-border-color) !important; | |||
padding: 4px 8px 0 !important; | |||
} | |||
.wikiEditor-ui-toolbar .tabs span.tab { | |||
margin-right: 4px; | |||
} | |||
.wikiEditor-ui-toolbar .tabs span.tab a { | |||
color: var(--theme-link-color); | |||
padding: 6px 12px; | |||
border-radius: 4px 4px 0 0; | |||
transition: all 0.15s ease; | |||
} | |||
.wikiEditor-ui-toolbar .tabs span.tab a:hover { | |||
background: var(--elemental-glow); | |||
} | |||
.wikiEditor-ui-toolbar .tabs span.tab a.current { | |||
color: var(--elemental-text-on-dark); | |||
background: var(--elemental-main); | |||
font-weight: 600; | |||
} | |||
.wikiEditor-ui-toolbar .booklet { | |||
position: relative !important; | |||
z-index: 15 !important; | |||
background: var(--theme-page-background-color--secondary) !important; | |||
border: 1px solid var(--theme-border-color) !important; | |||
border-top: none !important; | |||
border-radius: 0 0 6px 6px !important; | |||
} | |||
.wikiEditor-ui-toolbar .booklet .index { | |||
background: var(--theme-page-background-color) !important; | |||
border-right: 1px solid var(--theme-border-color) !important; | |||
} | |||
.wikiEditor-ui-toolbar .booklet .index div { | |||
padding: 8px 14px; | |||
color: var(--theme-page-text-color); | |||
cursor: pointer; | |||
transition: background 0.15s ease; | |||
} | |||
.wikiEditor-ui-toolbar .booklet .index div:hover { | |||
background: var(--elemental-glow); | |||
} | |||
.wikiEditor-ui-toolbar .booklet .index div.current { | |||
background: var(--elemental-accent); | |||
color: var(--elemental-text-on-dark); | |||
font-weight: 600; | |||
} | |||
.wikiEditor-ui-toolbar .group .label, | |||
.wikiEditor-ui-toolbar .tool-select .label { | |||
background: var(--theme-page-background-color--secondary); | |||
color: var(--elemental-main); | |||
fill: var(--elemental-main); | |||
border: none; | |||
display: inline-block; | |||
font-weight: 500; | |||
padding: 4px 8px; | |||
} | |||
.wikiEditor-ui-toolbar .page-characters { | |||
padding: 12px; | |||
} | |||
.wikiEditor-ui-toolbar .page-characters div span, | |||
.wikiEditor-ui-toolbar #wikiEditor-section-characters [role="option"] { | |||
color: var(--theme-page-text-color); | |||
display: inline-block !important; | |||
cursor: pointer !important; | |||
padding: 6px 10px !important; | |||
margin: 2px !important; | |||
border-radius: 4px !important; | |||
transition: all 0.15s ease !important; | |||
pointer-events: auto !important; | |||
font-size: 16px !important; | |||
border: 1px solid transparent !important; | |||
} | |||
.wikiEditor-ui-toolbar .page-characters div span:hover, | |||
.wikiEditor-ui-toolbar #wikiEditor-section-characters [role="option"]:hover { | |||
background: var(--elemental-glow) !important; | |||
border-color: var(--elemental-accent) !important; | |||
} | |||
.wikiEditor-ui-toolbar #wikiEditor-section-characters [role="option"].current { | |||
background: var(--elemental-accent) !important; | |||
color: var(--elemental-text-on-dark) !important; | |||
border-color: var(--elemental-accent) !important; | |||
} | |||
/* OOUI Buttons - Teal styling */ | |||
.wikiEditor-ui-toolbar .oo-ui-buttonElement-button { | |||
background: transparent !important; | |||
border: none !important; | |||
padding: 6px 10px !important; | |||
border-radius: 4px !important; | |||
transition: all 0.15s ease !important; | |||
} | |||
.wikiEditor-ui-toolbar .oo-ui-buttonElement-button:hover { | |||
background: var(--elemental-glow) !important; | |||
} | |||
.wikiEditor-ui-toolbar .oo-ui-buttonElement-button .oo-ui-iconElement-icon { | |||
filter: none !important; | |||
opacity: 0.8; | |||
} | |||
.wikiEditor-ui-toolbar .oo-ui-toggleWidget-on .oo-ui-buttonElement-button { | |||
background: var(--elemental-accent) !important; | |||
} | |||
.wikiEditor-ui-toolbar .oo-ui-toggleWidget-on .oo-ui-buttonElement-button .oo-ui-iconElement-icon { | |||
opacity: 1; | |||
filter: brightness(0) invert(1) !important; | |||
} | |||
/* Help tables */ | |||
.wikiEditor-ui-toolbar .page-table { | |||
padding: 16px; | |||
} | |||
.wikiEditor-ui-toolbar .page-table table { | |||
background: var(--theme-page-background-color--secondary) !important; | |||
color: var(--theme-page-text-color) !important; | |||
border-collapse: collapse !important; | |||
width: 100% !important; | |||
border-radius: 6px !important; | |||
overflow: hidden !important; | |||
} | |||
.wikiEditor-ui-toolbar .page-table th, | |||
.wikiEditor-ui-toolbar .page-table td { | |||
border: 1px solid var(--theme-border-color) !important; | |||
padding: 10px 14px !important; | |||
} | |||
.wikiEditor-ui-toolbar .page-table th { | |||
background: var(--elemental-main) !important; | |||
color: var(--elemental-text-on-dark) !important; | |||
font-weight: 600 !important; | |||
} | |||
.wikiEditor-ui-toolbar .page-table tr:nth-child(even) { | |||
background: var(--gray-050) !important; | |||
} | |||
/* Hide custom MsWikiEditor buttons (optional) */ | |||
.wikiEditor-ui-toolbar a.tool-button[rel="anam"], | |||
.wikiEditor-ui-toolbar #wikiEditor-section-main .group-insert a.tool-button, | |||
#msupload-container, | |||
.ve-init-mw-editSwitch { | |||
display: none !important; | |||
} | |||
.wikiEditor-ui-toolbar > div[style*="clear: both"] { | |||
display: block !important; | |||
clear: both !important; | |||
height: 1px !important; | |||
pointer-events: none !important; | |||
} | |||
/* Ensure textarea/editor is interactive */ | |||
.wikiEditor-ui textarea#wpTextbox1 { | |||
pointer-events: auto !important; | |||
user-select: text !important; | |||
-webkit-user-select: text !important; | |||
position: relative !important; | |||
z-index: 2 !important; | |||
background: var(--theme-page-background-color--secondary) !important; | |||
color: var(--theme-page-text-color) !important; | |||
border: 1px solid var(--theme-border-color) !important; | |||
border-radius: 0 0 6px 6px !important; | |||
} | |||
/* Dialog styling */ | |||
.ui-dialog, | |||
.ui-dialog > div, | |||
body .ui-dialog .ui-widget-header { | |||
color: var(--theme-page-text-color); | |||
background: var(--theme-page-background-color) !important; | |||
background-image: none; | |||
border-color: var(--elemental-border) !important; | |||
} | |||
.ui-dialog .ui-dialog-titlebar { | |||
background: var(--elemental-main) !important; | |||
color: var(--elemental-text-on-dark) !important; | |||
border-bottom: 2px solid var(--elemental-accent) !important; | |||
} | |||
.ui-dialog .ui-button-text { | |||
background: var(--theme-page-background-color--secondary); | |||
color: var(--theme-link-color); | |||
} | } | ||
| Line 47: | Line 465: | ||
.mw-body { | .mw-body { | ||
margin-top: -1px; | margin-top: -1px; | ||
border: 1px solid | border: 1px solid var(--elemental-border); | ||
border-radius: | border-radius: 6px; | ||
background-color: | background-color: var(--theme-page-background-color); | ||
} | } | ||
body.skin-vector, | body.skin-vector, | ||
body.skin-vector-dark { | body.skin-vector-dark { | ||
background: var(--theme-page-background-color) !important; | |||
} | |||
body.skin-vector-dark { | |||
background: var(--theme-page-background-color) !important; | |||
} | } | ||
.mobileHide, .mobile-only, .no-desktop { | .mobileHide, .mobile-only, .no-desktop { | ||
display: none !important; | display: none !important; | ||
} | } | ||
body.page-Main_Page.action-view h1.firstHeading, | body.page-Main_Page.action-view h1.firstHeading, | ||
body.page-Main_Page.action-submit h1.firstHeading { | body.page-Main_Page.action-submit h1.firstHeading { | ||
| Line 73: | Line 493: | ||
#mp-container { | #mp-container { | ||
display: grid; | display: grid; | ||
gap: | gap: 1.5rem; | ||
padding: | padding: 1.5rem; | ||
max-width: 1400px; | max-width: 1400px; | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
@media (min-width: 1024px) { | @media (min-width: 1024px) { | ||
#mp-container { | #mp-container { | ||
| Line 87: | Line 506: | ||
} | } | ||
@media (min-width: 768px) and (max-width: 1023px) { | @media (min-width: 768px) and (max-width: 1023px) { | ||
#mp-container { | #mp-container { | ||
| Line 95: | Line 513: | ||
} | } | ||
@media (max-width: 767px) { | @media (max-width: 767px) { | ||
#mp-container { | #mp-container { | ||
| Line 104: | Line 521: | ||
} | } | ||
.mp-box { | .mp-box { | ||
animation: fadeInUp 0.5s ease forwards; | animation: fadeInUp 0.5s ease forwards; | ||
opacity: 0; | opacity: 0; | ||
background: var(--theme-page-background-color--secondary); | |||
border: 1px solid var(--elemental-border); | |||
border-radius: 10px; | |||
padding: 1.25rem; | |||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); | |||
} | } | ||
.mp-box:nth-child(1) { animation-delay: 0.05s; } | .mp-box:nth-child(1) { animation-delay: 0.05s; } | ||
.mp-box:nth-child(2) { animation-delay: 0.1s; } | .mp-box:nth-child(2) { animation-delay: 0.1s; } | ||
| Line 121: | Line 541: | ||
@keyframes fadeInUp { | @keyframes fadeInUp { | ||
from { | from { opacity: 0; transform: translateY(20px); } | ||
to { opacity: 1; transform: translateY(0); } | |||
to { | |||
} | } | ||
/* ============================================ | /* ============================================ | ||
GAME INTRO CARDS | GAME INTRO CARDS - Elemental Teal Theme | ||
============================================ */ | ============================================ */ | ||
.game-intro-card { | .game-intro-card { | ||
background: var(--theme-page-background-color--secondary); | background: var(--theme-page-background-color--secondary); | ||
border-radius: 12px; | border-radius: 12px; | ||
padding: 1. | padding: 1.5rem; | ||
border: 1px solid var(-- | border: 1px solid var(--elemental-border); | ||
transition: transform 0.2s ease, box-shadow 0.2s ease; | transition: transform 0.2s ease, box-shadow 0.2s ease; | ||
height: 100%; | height: 100%; | ||
| Line 144: | Line 558: | ||
.game-intro-card:hover { | .game-intro-card:hover { | ||
transform: translateY(- | transform: translateY(-3px); | ||
box-shadow: 0 | box-shadow: 0 8px 20px var(--elemental-glow); | ||
border-color: var(--elemental-accent); | |||
} | } | ||
| Line 155: | Line 570: | ||
.mana-text { | .mana-text { | ||
font-family: 'Fredoka', sans-serif; | font-family: 'Fredoka', sans-serif; | ||
font-size: 1. | font-size: 1.6rem; | ||
font-weight: 600; | font-weight: 600; | ||
background: linear-gradient(135deg, var(--accent) | background: linear-gradient(135deg, var(--elemental-main), var(--elemental-accent)); | ||
-webkit-background-clip: text; | -webkit-background-clip: text; | ||
background-clip: text; | background-clip: text; | ||
| Line 173: | Line 588: | ||
.mana-line { | .mana-line { | ||
height: 3px; | height: 3px; | ||
background: linear-gradient(90deg, var(--accent), transparent); | background: linear-gradient(90deg, var(--elemental-accent), transparent); | ||
margin-top: 0.5rem; | margin-top: 0.5rem; | ||
width: 100%; | width: 100%; | ||
| Line 180: | Line 595: | ||
.game-content { | .game-content { | ||
color: var(--theme-page-text-color); | color: var(--theme-page-text-color); | ||
line-height: 1. | line-height: 1.7; | ||
} | } | ||
| Line 186: | Line 601: | ||
HEADING STYLES | HEADING STYLES | ||
============================================ */ | ============================================ */ | ||
h1, h2, h3, h4, h5, h6 { | |||
color: var(--elemental-main); | |||
} | |||
h2 { | |||
border-bottom: 2px solid var(--elemental-accent); | |||
padding-bottom: 0.4rem; | |||
} | |||
.heading-char { | .heading-char { | ||
font-size: 1.1rem; | font-size: 1.1rem; | ||
font-weight: 600; | font-weight: 600; | ||
color: var(-- | color: var(--elemental-main); | ||
margin: 1rem 0 0.5rem 0; | margin: 1rem 0 0.5rem 0; | ||
padding-bottom: 0.25rem; | padding-bottom: 0.25rem; | ||
border-bottom: 2px solid var(--accent); | border-bottom: 2px solid var(--elemental-accent); | ||
display: inline-block; | display: inline-block; | ||
} | } | ||
.heading-char a { | .heading-char a { | ||
color: var(-- | color: var(--elemental-main); | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.heading-char a:hover { | .heading-char a:hover { | ||
color: var(--elemental-hover); | |||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
| Line 211: | Line 636: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); | grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); | ||
gap: 0. | gap: 0.75rem; | ||
list-style: none; | list-style: none; | ||
padding: 0; | padding: 0; | ||
margin: 0. | margin: 0.75rem 0; | ||
} | } | ||
.auto-grid li { | .auto-grid li { | ||
padding: 0. | padding: 0.35rem 0; | ||
} | } | ||
| Line 229: | Line 654: | ||
.auto-grid li a:hover { | .auto-grid li a:hover { | ||
color: var(-- | color: var(--elemental-hover); | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
| Line 237: | Line 662: | ||
============================================ */ | ============================================ */ | ||
#mp-box-banner .mp-body { | #mp-box-banner .mp-body { | ||
background: linear-gradient(135deg, | background: linear-gradient(135deg, var(--elemental-bg-light), var(--theme-page-background-color--secondary)); | ||
border-radius: 16px; | border-radius: 16px; | ||
padding: 2rem; | padding: 2rem; | ||
text-align: center; | text-align: center; | ||
border: 1px solid var(--elemental-border); | |||
} | } | ||
.social { | .social { | ||
display: flex; | display: flex; | ||
| Line 257: | Line 681: | ||
align-items: center; | align-items: center; | ||
gap: 0.5rem; | gap: 0.5rem; | ||
background: | background: var(--elemental-glow); | ||
padding: 0. | padding: 0.6rem 1.2rem; | ||
border-radius: 8px; | border-radius: 8px; | ||
transition: all 0.2s ease; | transition: all 0.2s ease; | ||
border: 1px solid var(--elemental-border); | |||
} | } | ||
.iconname:hover { | .iconname:hover { | ||
background: | background: var(--elemental-accent); | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
border-color: var(--elemental-accent); | |||
} | } | ||
.iconname a { | .iconname a { | ||
color: | color: var(--theme-page-text-color) !important; | ||
text-decoration: none; | text-decoration: none; | ||
font-weight: 500; | font-weight: 500; | ||
} | |||
.iconname:hover a { | |||
color: var(--elemental-text-on-dark) !important; | |||
} | } | ||
| Line 277: | Line 707: | ||
WIKI FIXES & IMPROVEMENTS | WIKI FIXES & IMPROVEMENTS | ||
============================================ */ | ============================================ */ | ||
.wikiEditor-ui-text > .ui-resizable { | .wikiEditor-ui-text > .ui-resizable { | ||
width: 100% !important; | width: 100% !important; | ||
| Line 283: | Line 712: | ||
} | } | ||
ul { | ul { | ||
list-style: disc; | list-style: disc; | ||
} | } | ||
h2 .mw-headline, | h2 .mw-headline, | ||
h3 .mw-headline, | h3 .mw-headline, | ||
h4 .mw-headline { | h4 .mw-headline { | ||
font-weight: | font-weight: 600; | ||
color: var(--elemental-main); | |||
} | } | ||
| Line 299: | Line 727: | ||
.vector-body h5, | .vector-body h5, | ||
.vector-body h6 { | .vector-body h6 { | ||
margin-bottom: | margin-bottom: 6px; | ||
} | } | ||
a, a:visited, a:active, | a, a:visited, a:active, | ||
.mw-parser-output a:is(.external, .external:visited, .external:active) { | .mw-parser-output a:is(.external, .external:visited, .external:active) { | ||
color: var(-- | color: var(--elemental-main); | ||
transition: color 0.15s ease; | |||
} | |||
a:hover { | |||
color: var(--elemental-hover); | |||
} | } | ||
| Line 313: | Line 745: | ||
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) { | #mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) { | ||
color: var(-- | color: var(--elemental-main); | ||
} | } | ||
| Line 321: | Line 753: | ||
} | } | ||
.catlinks { | .catlinks { | ||
border-color: var(-- | border-color: var(--elemental-border); | ||
border-radius: | border-radius: 8px; | ||
background-color: var(--gray-050); | background-color: var(--gray-050); | ||
} | } | ||
code, pre { | code, pre { | ||
background-color: var(--theme-page-background-color--secondary); | background-color: var(--theme-page-background-color--secondary); | ||
color: var(--theme-page-text-color); | color: var(--theme-page-text-color); | ||
border: 1px solid var(-- | border: 1px solid var(--elemental-border); | ||
border-radius: | border-radius: 4px; | ||
padding: | padding: 2px 6px; | ||
font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace; | font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace; | ||
} | } | ||
| Line 340: | Line 770: | ||
code.code-block-table { | code.code-block-table { | ||
display: table; | display: table; | ||
line-height: | line-height: 1.6; | ||
padding: | padding: 10px; | ||
} | } | ||
| Line 350: | Line 780: | ||
.code-block { | .code-block { | ||
display: inline-block; | display: inline-block; | ||
line-height: | line-height: 1.6; | ||
} | } | ||
.toc { | .toc { | ||
padding: | padding: 12px 16px; | ||
border-radius: | border-radius: 8px; | ||
background-color: var(--theme-page-background-color--secondary); | background-color: var(--theme-page-background-color--secondary); | ||
border: 1px solid var(-- | border: 1px solid var(--elemental-border); | ||
margin-top: | margin-top: 20px; | ||
} | } | ||
.toctogglelabel { | .toctogglelabel { | ||
color: var(-- | color: var(--elemental-accent); | ||
} | } | ||
.tocnumber { | .tocnumber { | ||
color: var(-- | color: var(--elemental-muted); | ||
} | } | ||
.vector-body .toc h2 { | .vector-body .toc h2 { | ||
font-family: 'Fredoka', sans-serif; | font-family: 'Fredoka', sans-serif; | ||
color: var(--elemental-main); | |||
} | } | ||
.hatnote { | .hatnote { | ||
border-left: 4px solid var(-- | border-left: 4px solid var(--elemental-accent); | ||
padding: | padding: 8px 14px; | ||
border-radius: 4px; | border-radius: 4px; | ||
background: linear-gradient(145deg, rgba( | background: linear-gradient(145deg, rgba(44, 122, 123, 0.1) 0%, transparent 100%); | ||
margin: | margin: 10px 0; | ||
} | } | ||
span.variable { | span.variable { | ||
opacity: 0.65; | opacity: 0.65; | ||
color: var(--elemental-muted); | |||
} | } | ||
| Line 398: | Line 827: | ||
} | } | ||
.pull-quote { | .pull-quote { | ||
font-style: italic; | font-style: italic; | ||
margin: 0; | margin: 0; | ||
padding: 0 30px | padding: 0 30px 10px !important; | ||
color: var(--theme-page-text-color); | |||
} | } | ||
.pull-quote::before { | .pull-quote::before { | ||
color: var(--accent); | color: var(--elemental-accent); | ||
content: "“"; | content: "“"; | ||
display: block; | display: block; | ||
| Line 424: | Line 853: | ||
} | } | ||
.gallerytext { | .gallerytext { | ||
text-align: center; | text-align: center; | ||
| Line 430: | Line 858: | ||
} | } | ||
.changelist-header { | .changelist-header { | ||
display: flex; | display: flex; | ||
| Line 437: | Line 864: | ||
font-size: 88%; | font-size: 88%; | ||
margin: 0.3em 0; | margin: 0.3em 0; | ||
color: var(--elemental-muted); | |||
} | } | ||
| Line 444: | Line 872: | ||
padding: 1em; | padding: 1em; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
border-radius: | border-radius: 8px; | ||
} | } | ||
.changelist-border { | .changelist-border { | ||
border: 1px solid var(-- | border: 1px solid var(--elemental-border); | ||
border-left: 6px solid var(--accent); | border-left: 6px solid var(--elemental-accent); | ||
} | } | ||
.chat-wrapper { | .chat-wrapper { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: 0.5rem; | |||
} | } | ||
| Line 462: | Line 890: | ||
display: flex; | display: flex; | ||
flex-direction: row; | flex-direction: row; | ||
gap: 0. | gap: 0.75em; | ||
padding: 0.5rem; | |||
border-radius: 6px; | |||
} | |||
.chat-player { | |||
background: rgba(79, 209, 197, 0.1); | |||
} | |||
.chat-npc { | |||
background: rgba(129, 230, 217, 0.05); | |||
} | } | ||
| Line 468: | Line 906: | ||
white-space: nowrap; | white-space: nowrap; | ||
min-width: 70px; | min-width: 70px; | ||
color: | color: var(--elemental-main); | ||
font-weight: 600; | |||
} | } | ||
| Line 474: | Line 913: | ||
white-space: nowrap; | white-space: nowrap; | ||
min-width: 70px; | min-width: 70px; | ||
color: | color: var(--elemental-accent); | ||
font-weight: 600; | |||
} | } | ||
| Line 490: | Line 930: | ||
.mana-text { | .mana-text { | ||
font-size: 1. | font-size: 1.35rem; | ||
} | } | ||
| Line 498: | Line 938: | ||
.iconname { | .iconname { | ||
padding: 0. | padding: 0.4rem 0.9rem; | ||
font-size: 0.9rem; | font-size: 0.9rem; | ||
} | } | ||
| Line 504: | Line 944: | ||
#mp-box-banner .mp-body { | #mp-box-banner .mp-body { | ||
padding: 1rem; | padding: 1rem; | ||
} | |||
.CodeMirror { | |||
font-size: 16px !important; | |||
} | |||
.wikiEditor-ui-toolbar .group { | |||
padding: 2px 4px; | |||
} | } | ||
} | } | ||
/* ============================================ | /* ============================================ | ||
CUSTOM SCROLLBAR | CUSTOM SCROLLBAR - Elemental Teal | ||
============================================ */ | ============================================ */ | ||
::-webkit-scrollbar { | ::-webkit-scrollbar { | ||
| Line 521: | Line 969: | ||
::-webkit-scrollbar-thumb { | ::-webkit-scrollbar-thumb { | ||
background: var(--accent); | background: var(--elemental-accent); | ||
border-radius: 5px; | border-radius: 5px; | ||
} | } | ||
::-webkit-scrollbar-thumb:hover { | ::-webkit-scrollbar-thumb:hover { | ||
background: var(--accent- | background: var(--elemental-hover); | ||
} | |||
/* Firefox scrollbar */ | |||
* { | |||
scrollbar-width: thin; | |||
scrollbar-color: var(--elemental-accent) var(--theme-page-background-color--secondary); | |||
} | } | ||
| Line 532: | Line 986: | ||
UTILITY CLASSES | UTILITY CLASSES | ||
============================================ */ | ============================================ */ | ||
.text-center { | .text-center { text-align: center; } | ||
.mt-2 { margin-top: 0.5rem; } | |||
} | .mb-2 { margin-bottom: 0.5rem; } | ||
.p-2 { padding: 0.5rem; } | |||
. | /* ============================================ | ||
INFOBOX ELEMENTAL STYLING | |||
============================================ */ | |||
.infobox-elemental { | |||
background: var(--elemental-bg-light); | |||
border: 1px solid var(--elemental-border); | |||
border-radius: 8px; | |||
padding: 1rem; | |||
box-shadow: 0 0 15px var(--elemental-glow); | |||
color: var(--theme-page-text-color); | |||
} | } | ||
. | .infobox-elemental th { | ||
background: var(--elemental-main); | |||
color: var(--elemental-text-on-dark); | |||
padding: 8px 12px; | |||
font-weight: 600; | |||
} | } | ||
. | .infobox-elemental td { | ||
padding: | padding: 6px 12px; | ||
border-bottom: 1px solid var(--elemental-border); | |||
} | } | ||
Revision as of 06:36, 20 April 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");
/* ============================================
ELEMENTAL TEAL COLOR SCHEME
Core theme variables for light mode
============================================ */
:root {
/* Elemental Teal Theme - Light Mode Defaults */
--elemental-main: #2C7A7B; /* Deep teal for text/headers */
--elemental-accent: #4FD1C5; /* Bright teal for accents */
--elemental-bg-light: #E6FFFA; /* Very soft tint for backgrounds */
--elemental-border: #81E6D9; /* Soft border */
--elemental-glow: rgba(79, 209, 197, 0.4);
--elemental-hover: #319795; /* Slightly lighter teal for hover states */
--elemental-muted: #9AE6DF; /* Muted teal for secondary elements */
--elemental-text-on-dark: #FFFFFF;
--elemental-text-muted: #4A5568;
/* Map to existing theme variables (if Colors.css doesn't override) */
--theme-page-background-color: #FFFFFF;
--theme-page-background-color--secondary: var(--elemental-bg-light);
--theme-page-text-color: #1A202C;
--theme-link-color: var(--elemental-main);
--theme-border-color: var(--elemental-border);
--theme-border-color-rgb: 129, 230, 217;
--accent: var(--elemental-accent);
--accent-light: #7AE5D9;
--gray-050: rgba(44, 122, 123, 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';
}
/* ============================================
DARK MODE - Elemental Teal Adaptation
============================================ */
@media screen and (prefers-color-scheme: dark) {
:root {
/* Elemental Teal Theme - Dark Mode */
--elemental-main: #81E6D9; /* Lighter teal for readability on dark */
--elemental-accent: #4FD1C5; /* Keep bright teal accent */
--elemental-bg-light: #1A365D; /* Deep navy/teal background */
--elemental-border: #2C7A7B; /* Darker teal border */
--elemental-glow: rgba(129, 230, 217, 0.2);
--elemental-hover: #A8F0E8; /* Lighter hover for dark mode */
--elemental-muted: #5C9E9F; /* Muted teal for dark mode */
--elemental-text-on-dark: #FFFFFF;
--elemental-text-muted: #A0AEC0;
/* Dark mode theme overrides */
--theme-page-background-color: #0D1B2A;
--theme-page-background-color--secondary: var(--elemental-bg-light);
--theme-page-text-color: #E2E8F0;
--theme-link-color: var(--elemental-main);
--theme-border-color: var(--elemental-border);
--theme-border-color-rgb: 44, 122, 123;
--accent: var(--elemental-accent);
--accent-light: #6FE0D6;
--gray-050: rgba(129, 230, 217, 0.08);
}
}
/* ============================================
CODEMIRROR EDITOR FIXES
Prevents character misplacement in editor
============================================ */
.wikiEditor-ui {
display: block !important;
position: relative !important;
isolation: isolate !important;
}
.wikiEditor-ui-view {
isolation: isolate !important;
background: var(--theme-page-background-color--secondary) !important;
border: 1px solid var(--theme-border-color) !important;
}
/* Editor text container - MUST be properly positioned */
.wikiEditor-ui .wikiEditor-ui-text {
position: relative !important;
z-index: 1 !important;
display: block !important;
clear: both !important;
pointer-events: auto !important;
}
/* CodeMirror core fixes */
.CodeMirror {
position: relative !important;
z-index: 1 !important;
height: auto !important;
min-height: 300px !important;
font-family: 'Consolas', 'Monaco', 'Menlo', monospace !important;
font-size: 14px !important;
line-height: 1.6 !important;
background: var(--theme-page-background-color--secondary) !important;
color: var(--theme-page-text-color) !important;
border: 1px solid var(--theme-border-color) !important;
border-radius: 6px !important;
pointer-events: auto !important;
}
.CodeMirror-scroll {
position: relative !important;
overflow: auto !important;
height: 100% !important;
pointer-events: auto !important;
}
.CodeMirror-sizer {
position: relative !important;
}
.CodeMirror-lines {
position: relative !important;
z-index: 1 !important;
padding: 8px 0 !important;
pointer-events: auto !important;
}
/* CRITICAL: Cursor absolute positioning */
.CodeMirror-cursor {
position: absolute !important;
z-index: 100 !important;
pointer-events: none !important;
border-left: 2px solid var(--elemental-accent) !important;
}
.CodeMirror pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like {
position: relative !important;
z-index: 1 !important;
}
.CodeMirror-focused {
z-index: 2 !important;
}
.CodeMirror-selected {
background: var(--elemental-glow) !important;
z-index: 50 !important;
}
.CodeMirror-focused .CodeMirror-selected {
background: rgba(79, 209, 197, 0.3) !important;
}
.CodeMirror-gutters {
background: var(--theme-page-background-color) !important;
border-right: 1px solid var(--theme-border-color) !important;
z-index: 1 !important;
}
.CodeMirror-linenumber {
color: var(--elemental-muted) !important;
padding: 0 8px 0 5px !important;
}
/* Hidden CodeMirror textarea */
.CodeMirror textarea {
position: absolute !important;
z-index: 0 !important;
opacity: 0 !important;
pointer-events: none !important;
}
/* Toolbar - keep above editor */
.wikiEditor-ui-toolbar {
position: relative !important;
z-index: 10 !important;
background: var(--theme-page-background-color--secondary) !important;
border-bottom: 2px solid var(--elemental-accent) !important;
pointer-events: auto !important;
border-radius: 6px 6px 0 0 !important;
}
.wikiEditor-ui-toolbar .toolbar {
position: relative;
z-index: 10;
}
.wikiEditor-ui-toolbar .group {
background: var(--theme-page-background-color--secondary);
border-color: var(--theme-border-color);
color: var(--theme-page-text-color);
fill: var(--theme-page-text-color);
position: relative;
display: inline-block;
vertical-align: middle;
z-index: 10;
padding: 4px 6px;
}
.wikiEditor-ui-toolbar .sections {
position: relative !important;
z-index: 5 !important;
background: var(--theme-page-background-color--secondary) !important;
}
.wikiEditor-ui-toolbar .section-hidden {
display: none !important;
visibility: hidden !important;
pointer-events: none !important;
}
.wikiEditor-ui-toolbar .menu {
position: absolute !important;
z-index: 1000 !important;
background: var(--theme-page-background-color--secondary) !important;
border: 1px solid var(--elemental-border) !important;
border-radius: 6px !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}
.wikiEditor-ui-toolbar .options {
background: var(--theme-page-background-color--secondary) !important;
}
.wikiEditor-ui-toolbar .menu .options .option {
background: var(--theme-page-background-color--secondary);
color: var(--theme-page-text-color);
padding: 8px 14px;
cursor: pointer;
transition: background 0.15s ease;
}
.wikiEditor-ui-toolbar .menu .options .option:hover {
background: var(--elemental-accent) !important;
color: var(--elemental-text-on-dark) !important;
}
.wikiEditor-ui-toolbar .tabs {
position: relative !important;
z-index: 8 !important;
background: var(--theme-page-background-color--secondary) !important;
border-top: 1px solid var(--theme-border-color) !important;
padding: 4px 8px 0 !important;
}
.wikiEditor-ui-toolbar .tabs span.tab {
margin-right: 4px;
}
.wikiEditor-ui-toolbar .tabs span.tab a {
color: var(--theme-link-color);
padding: 6px 12px;
border-radius: 4px 4px 0 0;
transition: all 0.15s ease;
}
.wikiEditor-ui-toolbar .tabs span.tab a:hover {
background: var(--elemental-glow);
}
.wikiEditor-ui-toolbar .tabs span.tab a.current {
color: var(--elemental-text-on-dark);
background: var(--elemental-main);
font-weight: 600;
}
.wikiEditor-ui-toolbar .booklet {
position: relative !important;
z-index: 15 !important;
background: var(--theme-page-background-color--secondary) !important;
border: 1px solid var(--theme-border-color) !important;
border-top: none !important;
border-radius: 0 0 6px 6px !important;
}
.wikiEditor-ui-toolbar .booklet .index {
background: var(--theme-page-background-color) !important;
border-right: 1px solid var(--theme-border-color) !important;
}
.wikiEditor-ui-toolbar .booklet .index div {
padding: 8px 14px;
color: var(--theme-page-text-color);
cursor: pointer;
transition: background 0.15s ease;
}
.wikiEditor-ui-toolbar .booklet .index div:hover {
background: var(--elemental-glow);
}
.wikiEditor-ui-toolbar .booklet .index div.current {
background: var(--elemental-accent);
color: var(--elemental-text-on-dark);
font-weight: 600;
}
.wikiEditor-ui-toolbar .group .label,
.wikiEditor-ui-toolbar .tool-select .label {
background: var(--theme-page-background-color--secondary);
color: var(--elemental-main);
fill: var(--elemental-main);
border: none;
display: inline-block;
font-weight: 500;
padding: 4px 8px;
}
.wikiEditor-ui-toolbar .page-characters {
padding: 12px;
}
.wikiEditor-ui-toolbar .page-characters div span,
.wikiEditor-ui-toolbar #wikiEditor-section-characters [role="option"] {
color: var(--theme-page-text-color);
display: inline-block !important;
cursor: pointer !important;
padding: 6px 10px !important;
margin: 2px !important;
border-radius: 4px !important;
transition: all 0.15s ease !important;
pointer-events: auto !important;
font-size: 16px !important;
border: 1px solid transparent !important;
}
.wikiEditor-ui-toolbar .page-characters div span:hover,
.wikiEditor-ui-toolbar #wikiEditor-section-characters [role="option"]:hover {
background: var(--elemental-glow) !important;
border-color: var(--elemental-accent) !important;
}
.wikiEditor-ui-toolbar #wikiEditor-section-characters [role="option"].current {
background: var(--elemental-accent) !important;
color: var(--elemental-text-on-dark) !important;
border-color: var(--elemental-accent) !important;
}
/* OOUI Buttons - Teal styling */
.wikiEditor-ui-toolbar .oo-ui-buttonElement-button {
background: transparent !important;
border: none !important;
padding: 6px 10px !important;
border-radius: 4px !important;
transition: all 0.15s ease !important;
}
.wikiEditor-ui-toolbar .oo-ui-buttonElement-button:hover {
background: var(--elemental-glow) !important;
}
.wikiEditor-ui-toolbar .oo-ui-buttonElement-button .oo-ui-iconElement-icon {
filter: none !important;
opacity: 0.8;
}
.wikiEditor-ui-toolbar .oo-ui-toggleWidget-on .oo-ui-buttonElement-button {
background: var(--elemental-accent) !important;
}
.wikiEditor-ui-toolbar .oo-ui-toggleWidget-on .oo-ui-buttonElement-button .oo-ui-iconElement-icon {
opacity: 1;
filter: brightness(0) invert(1) !important;
}
/* Help tables */
.wikiEditor-ui-toolbar .page-table {
padding: 16px;
}
.wikiEditor-ui-toolbar .page-table table {
background: var(--theme-page-background-color--secondary) !important;
color: var(--theme-page-text-color) !important;
border-collapse: collapse !important;
width: 100% !important;
border-radius: 6px !important;
overflow: hidden !important;
}
.wikiEditor-ui-toolbar .page-table th,
.wikiEditor-ui-toolbar .page-table td {
border: 1px solid var(--theme-border-color) !important;
padding: 10px 14px !important;
}
.wikiEditor-ui-toolbar .page-table th {
background: var(--elemental-main) !important;
color: var(--elemental-text-on-dark) !important;
font-weight: 600 !important;
}
.wikiEditor-ui-toolbar .page-table tr:nth-child(even) {
background: var(--gray-050) !important;
}
/* Hide custom MsWikiEditor buttons (optional) */
.wikiEditor-ui-toolbar a.tool-button[rel="anam"],
.wikiEditor-ui-toolbar #wikiEditor-section-main .group-insert a.tool-button,
#msupload-container,
.ve-init-mw-editSwitch {
display: none !important;
}
.wikiEditor-ui-toolbar > div[style*="clear: both"] {
display: block !important;
clear: both !important;
height: 1px !important;
pointer-events: none !important;
}
/* Ensure textarea/editor is interactive */
.wikiEditor-ui textarea#wpTextbox1 {
pointer-events: auto !important;
user-select: text !important;
-webkit-user-select: text !important;
position: relative !important;
z-index: 2 !important;
background: var(--theme-page-background-color--secondary) !important;
color: var(--theme-page-text-color) !important;
border: 1px solid var(--theme-border-color) !important;
border-radius: 0 0 6px 6px !important;
}
/* Dialog styling */
.ui-dialog,
.ui-dialog > div,
body .ui-dialog .ui-widget-header {
color: var(--theme-page-text-color);
background: var(--theme-page-background-color) !important;
background-image: none;
border-color: var(--elemental-border) !important;
}
.ui-dialog .ui-dialog-titlebar {
background: var(--elemental-main) !important;
color: var(--elemental-text-on-dark) !important;
border-bottom: 2px solid var(--elemental-accent) !important;
}
.ui-dialog .ui-button-text {
background: var(--theme-page-background-color--secondary);
color: var(--theme-link-color);
}
/* ============================================
BASE LAYOUT FIXES
============================================ */
.mw-body {
margin-top: -1px;
border: 1px solid var(--elemental-border);
border-radius: 6px;
background-color: var(--theme-page-background-color);
}
body.skin-vector,
body.skin-vector-dark {
background: var(--theme-page-background-color) !important;
}
body.skin-vector-dark {
background: var(--theme-page-background-color) !important;
}
.mobileHide, .mobile-only, .no-desktop {
display: none !important;
}
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: 1.5rem;
padding: 1.5rem;
max-width: 1400px;
margin: 0 auto;
}
@media (min-width: 1024px) {
#mp-container {
grid-template-areas: var(--main-page-layout--desktop);
grid-template-columns: repeat(3, 1fr);
}
}
@media (min-width: 768px) and (max-width: 1023px) {
#mp-container {
grid-template-areas: var(--main-page-layout--tablet);
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 767px) {
#mp-container {
grid-template-areas: var(--main-page-layout--mobile);
grid-template-columns: 1fr;
gap: 1rem;
}
}
.mp-box {
animation: fadeInUp 0.5s ease forwards;
opacity: 0;
background: var(--theme-page-background-color--secondary);
border: 1px solid var(--elemental-border);
border-radius: 10px;
padding: 1.25rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.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 - Elemental Teal Theme
============================================ */
.game-intro-card {
background: var(--theme-page-background-color--secondary);
border-radius: 12px;
padding: 1.5rem;
border: 1px solid var(--elemental-border);
transition: transform 0.2s ease, box-shadow 0.2s ease;
height: 100%;
}
.game-intro-card:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px var(--elemental-glow);
border-color: var(--elemental-accent);
}
.game-header {
margin-bottom: 1rem;
position: relative;
}
.mana-text {
font-family: 'Fredoka', sans-serif;
font-size: 1.6rem;
font-weight: 600;
background: linear-gradient(135deg, var(--elemental-main), var(--elemental-accent));
-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(--elemental-accent), transparent);
margin-top: 0.5rem;
width: 100%;
}
.game-content {
color: var(--theme-page-text-color);
line-height: 1.7;
}
/* ============================================
HEADING STYLES
============================================ */
h1, h2, h3, h4, h5, h6 {
color: var(--elemental-main);
}
h2 {
border-bottom: 2px solid var(--elemental-accent);
padding-bottom: 0.4rem;
}
.heading-char {
font-size: 1.1rem;
font-weight: 600;
color: var(--elemental-main);
margin: 1rem 0 0.5rem 0;
padding-bottom: 0.25rem;
border-bottom: 2px solid var(--elemental-accent);
display: inline-block;
}
.heading-char a {
color: var(--elemental-main);
text-decoration: none;
}
.heading-char a:hover {
color: var(--elemental-hover);
text-decoration: underline;
}
/* ============================================
AUTO GRID LISTS
============================================ */
.auto-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 0.75rem;
list-style: none;
padding: 0;
margin: 0.75rem 0;
}
.auto-grid li {
padding: 0.35rem 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(--elemental-hover);
text-decoration: underline;
}
/* ============================================
BANNER SECTION
============================================ */
#mp-box-banner .mp-body {
background: linear-gradient(135deg, var(--elemental-bg-light), var(--theme-page-background-color--secondary));
border-radius: 16px;
padding: 2rem;
text-align: center;
border: 1px solid var(--elemental-border);
}
.social {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
margin-top: 2rem;
}
.iconname {
display: flex;
align-items: center;
gap: 0.5rem;
background: var(--elemental-glow);
padding: 0.6rem 1.2rem;
border-radius: 8px;
transition: all 0.2s ease;
border: 1px solid var(--elemental-border);
}
.iconname:hover {
background: var(--elemental-accent);
transform: translateY(-2px);
border-color: var(--elemental-accent);
}
.iconname a {
color: var(--theme-page-text-color) !important;
text-decoration: none;
font-weight: 500;
}
.iconname:hover a {
color: var(--elemental-text-on-dark) !important;
}
/* ============================================
WIKI FIXES & IMPROVEMENTS
============================================ */
.wikiEditor-ui-text > .ui-resizable {
width: 100% !important;
max-width: 100%;
}
ul {
list-style: disc;
}
h2 .mw-headline,
h3 .mw-headline,
h4 .mw-headline {
font-weight: 600;
color: var(--elemental-main);
}
.vector-body h3,
.vector-body h4,
.vector-body h5,
.vector-body h6 {
margin-bottom: 6px;
}
a, a:visited, a:active,
.mw-parser-output a:is(.external, .external:visited, .external:active) {
color: var(--elemental-main);
transition: color 0.15s ease;
}
a:hover {
color: var(--elemental-hover);
}
#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(--elemental-main);
}
.mw-parser-output a.external {
padding-right: 0;
font-size: inherit;
}
.catlinks {
border-color: var(--elemental-border);
border-radius: 8px;
background-color: var(--gray-050);
}
code, pre {
background-color: var(--theme-page-background-color--secondary);
color: var(--theme-page-text-color);
border: 1px solid var(--elemental-border);
border-radius: 4px;
padding: 2px 6px;
font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
code.code-block-table {
display: table;
line-height: 1.6;
padding: 10px;
}
.code-block-table * {
font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
.code-block {
display: inline-block;
line-height: 1.6;
}
.toc {
padding: 12px 16px;
border-radius: 8px;
background-color: var(--theme-page-background-color--secondary);
border: 1px solid var(--elemental-border);
margin-top: 20px;
}
.toctogglelabel {
color: var(--elemental-accent);
}
.tocnumber {
color: var(--elemental-muted);
}
.vector-body .toc h2 {
font-family: 'Fredoka', sans-serif;
color: var(--elemental-main);
}
.hatnote {
border-left: 4px solid var(--elemental-accent);
padding: 8px 14px;
border-radius: 4px;
background: linear-gradient(145deg, rgba(44, 122, 123, 0.1) 0%, transparent 100%);
margin: 10px 0;
}
span.variable {
opacity: 0.65;
color: var(--elemental-muted);
}
span.variable::after {
opacity: 0.65;
content: ">";
}
span.variable::before {
opacity: 0.65;
content: "<";
}
.pull-quote {
font-style: italic;
margin: 0;
padding: 0 30px 10px !important;
color: var(--theme-page-text-color);
}
.pull-quote::before {
color: var(--elemental-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;
}
.gallerytext {
text-align: center;
font-size: 100%;
}
.changelist-header {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 88%;
margin: 0.3em 0;
color: var(--elemental-muted);
}
.changelist-content {
overflow: auto;
max-height: 384px;
padding: 1em;
box-sizing: border-box;
border-radius: 8px;
}
.changelist-border {
border: 1px solid var(--elemental-border);
border-left: 6px solid var(--elemental-accent);
}
.chat-wrapper {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.chat-player,
.chat-npc {
display: flex;
flex-direction: row;
gap: 0.75em;
padding: 0.5rem;
border-radius: 6px;
}
.chat-player {
background: rgba(79, 209, 197, 0.1);
}
.chat-npc {
background: rgba(129, 230, 217, 0.05);
}
.chat-player-speaker {
white-space: nowrap;
min-width: 70px;
color: var(--elemental-main);
font-weight: 600;
}
.chat-npc-speaker {
white-space: nowrap;
min-width: 70px;
color: var(--elemental-accent);
font-weight: 600;
}
/* ============================================
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.35rem;
}
.social {
gap: 0.5rem;
}
.iconname {
padding: 0.4rem 0.9rem;
font-size: 0.9rem;
}
#mp-box-banner .mp-body {
padding: 1rem;
}
.CodeMirror {
font-size: 16px !important;
}
.wikiEditor-ui-toolbar .group {
padding: 2px 4px;
}
}
/* ============================================
CUSTOM SCROLLBAR - Elemental Teal
============================================ */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: var(--theme-page-background-color--secondary);
border-radius: 5px;
}
::-webkit-scrollbar-thumb {
background: var(--elemental-accent);
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--elemental-hover);
}
/* Firefox scrollbar */
* {
scrollbar-width: thin;
scrollbar-color: var(--elemental-accent) var(--theme-page-background-color--secondary);
}
/* ============================================
UTILITY CLASSES
============================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.p-2 { padding: 0.5rem; }
/* ============================================
INFOBOX ELEMENTAL STYLING
============================================ */
.infobox-elemental {
background: var(--elemental-bg-light);
border: 1px solid var(--elemental-border);
border-radius: 8px;
padding: 1rem;
box-shadow: 0 0 15px var(--elemental-glow);
color: var(--theme-page-text-color);
}
.infobox-elemental th {
background: var(--elemental-main);
color: var(--elemental-text-on-dark);
padding: 8px 12px;
font-weight: 600;
}
.infobox-elemental td {
padding: 6px 12px;
border-bottom: 1px solid var(--elemental-border);
}