MediaWiki:Common.css
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* ============================================
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");
/* ============================================
CODEMIRROR FIXES - DIRECT EMBED (was CodeMirror.css)
============================================ */
.wikiEditor-ui {
display: block !important;
position: relative !important;
isolation: isolate !important;
}
.wikiEditor-ui-view {
isolation: isolate !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.5 !important;
background: var(--theme-page-background-color--secondary, #16213e) !important;
color: var(--theme-page-text-color, #eaeef2) !important;
border: 1px solid var(--theme-border-color, #2c3e50) !important;
border-radius: 4px !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: 4px 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(--theme-page-text-color, #eaeef2) !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: rgba(108, 92, 231, 0.3) !important;
z-index: 50 !important;
}
.CodeMirror-focused .CodeMirror-selected {
background: rgba(108, 92, 231, 0.4) !important;
}
.CodeMirror-gutters {
background: var(--theme-page-background-color, #0a0a1a) !important;
border-right: 1px solid var(--theme-border-color, #2c3e50) !important;
z-index: 1 !important;
}
.CodeMirror-linenumber {
color: rgba(44, 62, 80, 0.7) !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, #16213e) !important;
border-bottom: 1px solid var(--theme-border-color, #2c3e50) !important;
pointer-events: auto !important;
}
.wikiEditor-ui-toolbar .toolbar {
position: relative;
z-index: 10;
}
.wikiEditor-ui-toolbar .group {
background: var(--theme-page-background-color--secondary, #16213e);
border-color: var(--theme-border-color, #2c3e50);
color: var(--theme-page-text-color, #eaeef2);
fill: var(--theme-page-text-color, #eaeef2);
position: relative;
display: inline-block;
vertical-align: middle;
z-index: 10;
}
.wikiEditor-ui-toolbar .sections {
position: relative !important;
z-index: 5 !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, #16213e) !important;
border: 1px solid var(--theme-border-color, #2c3e50) !important;
border-radius: 4px !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
.wikiEditor-ui-toolbar .options {
background: var(--theme-page-background-color--secondary, #16213e) !important;
}
.wikiEditor-ui-toolbar .menu .options .option {
background: var(--theme-page-background-color--secondary, #16213e);
color: var(--theme-page-text-color, #eaeef2);
padding: 6px 12px;
cursor: pointer;
}
.wikiEditor-ui-toolbar .menu .options .option:hover {
background: var(--accent, #6c5ce7) !important;
color: white !important;
}
.wikiEditor-ui-toolbar .tabs {
position: relative !important;
z-index: 8 !important;
background: var(--theme-page-background-color--secondary, #16213e) !important;
border-top: 1px solid var(--theme-border-color, #2c3e50) !important;
}
.wikiEditor-ui-toolbar .tabs span.tab a {
color: var(--theme-link-color, #7c9eff);
}
.wikiEditor-ui-toolbar .tabs span.tab a.current {
color: var(--theme-page-text-color, #eaeef2);
font-weight: 600;
}
.wikiEditor-ui-toolbar .booklet {
position: relative !important;
z-index: 15 !important;
background: var(--theme-page-background-color--secondary, #16213e) !important;
}
.wikiEditor-ui-toolbar .group .label,
.wikiEditor-ui-toolbar .tool-select .label {
background: var(--theme-page-background-color--secondary, #16213e);
color: var(--theme-page-text-color, #eaeef2);
fill: var(--theme-page-text-color, #eaeef2);
border: none;
display: inline-block;
}
.wikiEditor-ui-toolbar .page-characters div span,
.wikiEditor-ui-toolbar #wikiEditor-section-characters [role="option"] {
color: var(--theme-page-text-color, #eaeef2);
display: inline-block !important;
cursor: pointer !important;
padding: 4px 8px !important;
border-radius: 3px !important;
transition: background 0.15s ease !important;
pointer-events: auto !important;
}
.wikiEditor-ui-toolbar #wikiEditor-section-characters [role="option"]:hover,
.wikiEditor-ui-toolbar #wikiEditor-section-characters [role="option"].current {
background: var(--accent, #6c5ce7) !important;
color: white !important;
}
/* OOUI Buttons */
.wikiEditor-ui-toolbar .oo-ui-buttonElement-button {
background: transparent !important;
border: none !important;
padding: 4px 8px !important;
border-radius: 4px !important;
}
.wikiEditor-ui-toolbar .oo-ui-buttonElement-button:hover {
background: var(--accent, #6c5ce7) !important;
}
.wikiEditor-ui-toolbar .oo-ui-toggleWidget-on .oo-ui-buttonElement-button {
background: var(--accent, #6c5ce7) !important;
}
/* Help tables */
.wikiEditor-ui-toolbar .page-table table {
background: var(--theme-page-background-color--secondary, #16213e) !important;
color: var(--theme-page-text-color, #eaeef2) !important;
border-collapse: collapse !important;
width: 100% !important;
}
.wikiEditor-ui-toolbar .page-table th,
.wikiEditor-ui-toolbar .page-table td {
border: 1px solid var(--theme-border-color, #2c3e50) !important;
padding: 8px 12px !important;
}
.wikiEditor-ui-toolbar .page-table th {
background: var(--accent, #6c5ce7) !important;
color: white !important;
}
/* Hide custom MsWikiEditor buttons */
.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;
}
/* Dialog styling */
.ui-dialog,
.ui-dialog > div,
body .ui-dialog .ui-widget-header {
color: var(--theme-page-text-color, #eaeef2);
background: var(--theme-page-background-color, #0a0a1a) !important;
background-image: none;
}
.ui-dialog .ui-button-text {
background: var(--theme-page-background-color--secondary, #16213e);
color: var(--theme-link-color, #7c9eff);
}
.skin-vector-dark .oo-ui-buttonElement-button,
.skin-vector-dark .ui-dialog .ui-dialog-titlebar-close {
filter: invert(1);
}
/* ============================================
CSS VARIABLES (FALLBACKS)
============================================ */
:root {
--theme-page-background-color: #0a0a1a;
--theme-page-background-color--secondary: #16213e;
--theme-page-text-color: #eaeef2;
--theme-link-color: #7c9eff;
--theme-border-color: #2c3e50;
--theme-border-color-rgb: 44, 62, 80;
--accent: #6c5ce7;
--accent-light: #8c7cf5;
--gray-050: rgba(255, 255, 255, 0.05);
--main-page-layout--desktop: 'banner banner banner' 'about about updates' 'starts starts starts' 'items items items' 'characters characters characters' 'enemies enemies enemies' 'area area area';
--main-page-layout--tablet: 'banner banner' 'about updates' 'starts starts' 'items items' 'characters characters' 'enemies enemies' 'area area';
--main-page-layout--mobile: 'banner' 'about' 'updates' 'starts' 'items' 'characters' 'enemies' 'area';
}
/* ============================================
BASE LAYOUT FIXES
============================================ */
.mw-body {
margin-top: -1px;
border: 1px solid azure;
border-radius: 1px;
background-color: transparent;
}
body.skin-vector,
body.skin-vector-dark {
background: url("https://mbwiki.stairwaygames.work/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
}
.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: 2rem;
padding: 1rem;
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;
}
.mp-box:nth-child(1) { animation-delay: 0.05s; }
.mp-box:nth-child(2) { animation-delay: 0.1s; }
.mp-box:nth-child(3) { animation-delay: 0.15s; }
.mp-box:nth-child(4) { animation-delay: 0.2s; }
.mp-box:nth-child(5) { animation-delay: 0.25s; }
.mp-box:nth-child(6) { animation-delay: 0.3s; }
.mp-box:nth-child(7) { animation-delay: 0.35s; }
.mp-box:nth-child(8) { animation-delay: 0.4s; }
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* ============================================
GAME INTRO CARDS
============================================ */
.game-intro-card {
background: var(--theme-page-background-color--secondary);
border-radius: 12px;
padding: 1.25rem;
border: 1px solid var(--theme-border-color);
transition: transform 0.2s ease, box-shadow 0.2s ease;
height: 100%;
}
.game-intro-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.game-header {
margin-bottom: 1rem;
position: relative;
}
.mana-text {
font-family: 'Fredoka', sans-serif;
font-size: 1.5rem;
font-weight: 600;
background: linear-gradient(135deg, var(--accent), #a8c0ff);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
display: inline-block;
letter-spacing: 0.5px;
margin: 0 !important;
}
.mana-text img {
vertical-align: middle;
margin-left: 8px;
}
.mana-line {
height: 3px;
background: linear-gradient(90deg, var(--accent), transparent);
margin-top: 0.5rem;
width: 100%;
}
.game-content {
color: var(--theme-page-text-color);
line-height: 1.6;
}
/* ============================================
HEADING STYLES
============================================ */
.heading-char {
font-size: 1.1rem;
font-weight: 600;
color: var(--accent-light);
margin: 1rem 0 0.5rem 0;
padding-bottom: 0.25rem;
border-bottom: 2px solid var(--accent);
display: inline-block;
}
.heading-char a {
color: var(--accent-light);
text-decoration: none;
}
.heading-char a:hover {
text-decoration: underline;
}
/* ============================================
AUTO GRID LISTS
============================================ */
.auto-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 0.5rem;
list-style: none;
padding: 0;
margin: 0.5rem 0;
}
.auto-grid li {
padding: 0.25rem 0;
}
.auto-grid li a {
color: var(--theme-link-color);
text-decoration: none;
transition: color 0.2s ease;
display: inline-block;
}
.auto-grid li a:hover {
color: var(--accent-light);
text-decoration: underline;
}
/* ============================================
BANNER SECTION
============================================ */
#mp-box-banner .mp-body {
background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
border-radius: 16px;
padding: 2rem;
text-align: center;
backdrop-filter: blur(10px);
}
.social {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
margin-top: 2rem;
}
.iconname {
display: flex;
align-items: center;
gap: 0.5rem;
background: rgba(255, 255, 255, 0.1);
padding: 0.5rem 1rem;
border-radius: 8px;
transition: all 0.2s ease;
}
.iconname:hover {
background: rgba(108, 92, 231, 0.3);
transform: translateY(-2px);
}
.iconname a {
color: white !important;
text-decoration: none;
font-weight: 500;
}
/* ============================================
WIKI FIXES & IMPROVEMENTS
============================================ */
.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: 500;
}
.vector-body h3,
.vector-body h4,
.vector-body h5,
.vector-body h6 {
margin-bottom: 4px;
}
a, a:visited, a:active,
.mw-parser-output a:is(.external, .external:visited, .external:active) {
color: var(--theme-link-color);
}
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
color: var(--theme-page-text-color);
}
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
color: var(--theme-link-color);
}
.mw-parser-output a.external {
padding-right: 0;
font-size: inherit;
}
.catlinks {
border-color: var(--theme-border-color);
border-radius: 6px;
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(--theme-border-color);
border-radius: 2px;
padding: 1px 4px;
font-family: Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
code.code-block-table {
display: table;
line-height: 21px;
padding: 8px;
}
.code-block-table * {
font: 14px Consolas, Eupheima UCAS, Monaco, Menlo, monospace;
}
.code-block {
display: inline-block;
line-height: 21px;
}
.toc {
padding: 8px 12px;
border-radius: 4px;
background-color: var(--theme-page-background-color--secondary);
border: 1px solid var(--theme-border-color);
margin-top: 16px;
}
.toctogglelabel {
color: var(--theme-link-color);
}
.tocnumber {
color: var(--theme-page-text-color);
}
.vector-body .toc h2 {
font-family: 'Fredoka', sans-serif;
}
.hatnote {
border-left: 4px solid var(--theme-border-color);
padding: 6px 12px;
border-radius: 4px;
background: linear-gradient(145deg, rgba(var(--theme-border-color-rgb), 0.30) 0%, rgba(var(--theme-border-color-rgb), 0) 100%);
margin: 8px 0;
}
span.variable {
opacity: 0.65;
}
span.variable::after {
opacity: 0.65;
content: ">";
}
span.variable::before {
opacity: 0.65;
content: "<";
}
.pull-quote {
font-style: italic;
margin: 0;
padding: 0 30px 8px !important;
}
.pull-quote::before {
color: var(--accent);
content: "“";
display: block;
font-size: 96px;
font-style: normal;
line-height: 72px;
margin: 4px 0 -45px -5px;
}
.pull-quote__source::before {
content: "— ";
margin-bottom: 8px;
}
.pull-quote__text {
margin-bottom: 4px;
}
.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;
}
.changelist-content {
overflow: auto;
max-height: 384px;
padding: 1em;
box-sizing: border-box;
border-radius: 6px;
}
.changelist-border {
border: 1px solid var(--theme-border-color);
border-left: 6px solid var(--accent);
}
.chat-wrapper {
display: flex;
flex-direction: column;
}
.chat-player,
.chat-npc {
display: flex;
flex-direction: row;
gap: 0.5em;
}
.chat-player-speaker {
white-space: nowrap;
min-width: 70px;
color: rgb(105, 172, 82);
}
.chat-npc-speaker {
white-space: nowrap;
min-width: 70px;
color: rgb(237, 123, 103);
}
/* ============================================
RESPONSIVE IMPROVEMENTS
============================================ */
@media (max-width: 768px) {
.auto-grid {
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.game-intro-card {
padding: 1rem;
}
.mana-text {
font-size: 1.25rem;
}
.social {
gap: 0.5rem;
}
.iconname {
padding: 0.35rem 0.75rem;
font-size: 0.9rem;
}
#mp-box-banner .mp-body {
padding: 1rem;
}
.CodeMirror {
font-size: 16px !important;
}
}
/* ============================================
CUSTOM SCROLLBAR
============================================ */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: var(--theme-page-background-color--secondary);
border-radius: 5px;
}
::-webkit-scrollbar-thumb {
background: var(--accent);
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--accent-light);
}
/* ============================================
UTILITY CLASSES
============================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.p-2 { padding: 0.5rem; }