MediaWiki:Common.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (β-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (β-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ββ Hide Main Page title (scoped safely) ββββββββββββββββββββββββββββββββββββ */
body.page-Main_Page h1#firstHeading,
body.page-Main_Page .firstHeading,
body.page-Main_Page .mw-page-title-main { display: none !important; }
/* ββ Typography improvements βββββββββββββββββββββββββββββββββββββββββββββββββ */
#mw-content-text h2 {
border-bottom: 2px solid #2563eb;
padding-bottom: 4px;
margin-top: 1.5em;
color: #1e1b4b;
}
#mw-content-text h3 {
color: #2563eb;
margin-top: 1.2em;
}
/* ββ Better wikitable styling ββββββββββββββββββββββββββββββββββββββββββββββββ */
table.wikitable {
border-radius: 8px;
overflow: hidden;
border-collapse: separate !important;
border-spacing: 0 !important;
border: 1px solid #e2e8f0;
box-shadow: 0 2px 12px rgba(37,99,235,.07);
}
table.wikitable th {
background: linear-gradient(90deg, #1e1b4b, #2563eb) !important;
color: #fff !important;
font-weight: 700;
letter-spacing: .2px;
border: none !important;
padding: 10px 12px !important;
}
table.wikitable td {
border: none !important;
border-bottom: 1px solid #f1f5f9 !important;
padding: 8px 12px !important;
vertical-align: middle !important;
}
table.wikitable tr:hover td { background: #eff6ff !important; }
table.wikitable tr:last-child td { border-bottom: none !important; }
/* ββ Code & syntax highlight improvements ββββββββββββββββββββββββββββββββββββ */
code, tt, kbd {
background: #f1f5f9;
border: 1px solid #e2e8f0;
border-radius: 4px;
padding: 1px 6px;
font-size: .88em;
color: #7c3aed;
}
pre {
background: #0f172a;
color: #e2e8f0;
border: 1px solid #334155;
border-radius: 8px;
padding: 16px 18px;
font-size: .875em;
line-height: 1.6;
overflow-x: auto;
box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.mw-highlight pre { background: #0f172a; border-radius: 8px; }
/* ββ Callout boxes (used by templates) βββββββββββββββββββββββββββββββββββββββ */
.cms-note, .cms-warning, .cms-tip, .cms-caution {
border-radius: 8px;
padding: 12px 16px;
margin: 14px 0;
border-left: 4px solid;
display: flex;
gap: 12px;
align-items: flex-start;
font-size: .92em;
line-height: 1.6;
}
.cms-note { background: #eff6ff; border-color: #2563eb; color: #1e3a5f; }
.cms-warning { background: #fff7ed; border-color: #f59e0b; color: #7c2d12; }
.cms-tip { background: #f0fdf4; border-color: #059669; color: #064e3b; }
.cms-caution { background: #fef2f2; border-color: #dc2626; color: #7f1d1d; }
.cms-note-icon, .cms-warning-icon, .cms-tip-icon, .cms-caution-icon { font-size: 1.4em; flex-shrink: 0; }
.cms-note-body strong { color: #1d4ed8; }
.cms-warning-body strong { color: #92400e; }
.cms-tip-body strong { color: #065f46; }
.cms-caution-body strong { color: #991b1b; }
/* ββ Infobox styling βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.cms-infobox {
float: right;
clear: right;
margin: 0 0 16px 20px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 10px;
overflow: hidden;
font-size: .88em;
min-width: 220px;
max-width: 280px;
box-shadow: 0 2px 12px rgba(37,99,235,.07);
}
.cms-infobox-header {
background: linear-gradient(90deg, #1e1b4b, #2563eb);
color: #fff;
text-align: center;
padding: 10px 12px;
font-weight: 800;
font-size: 1.05em;
}
.cms-infobox-logo { text-align: center; padding: 12px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.cms-infobox table { width: 100%; border-collapse: collapse; }
.cms-infobox td { padding: 6px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.cms-infobox td:first-child { font-weight: 700; color: #334155; width: 45%; }
.cms-infobox td:last-child { color: #0f172a; }
.cms-infobox tr:last-child td { border-bottom: none; }
/* ββ Stub notice βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.cms-stub {
background: #fefce8;
border: 1px solid #fde047;
border-radius: 8px;
padding: 10px 14px;
margin: 16px 0;
font-size: .88em;
color: #713f12;
display: flex;
align-items: center;
gap: 10px;
}
/* ββ Dark mode support (toggled via JS) ββββββββββββββββββββββββββββββββββββββ */
body.cms-dark-mode {
background: #0f172a !important;
color: #e2e8f0 !important;
}
body.cms-dark-mode #content,
body.cms-dark-mode .mw-body { background: #1e293b !important; color: #e2e8f0 !important; }
body.cms-dark-mode .vector-body { background: #1e293b !important; }
body.cms-dark-mode table.wikitable th { background: linear-gradient(90deg,#312e81,#1d4ed8) !important; }
body.cms-dark-mode table.wikitable td { border-color: #334155 !important; color: #e2e8f0 !important; }
body.cms-dark-mode table.wikitable tr:hover td { background: #1e3a5f !important; }
body.cms-dark-mode code, body.cms-dark-mode tt { background: #1e293b; border-color: #334155; color: #a78bfa; }
body.cms-dark-mode h2 { border-color: #3b82f6; color: #93c5fd; }
body.cms-dark-mode h3 { color: #60a5fa; }
body.cms-dark-mode a { color: #60a5fa; }
/* ββ Dark mode toggle button βββββββββββββββββββββββββββββββββββββββββββββββββ */
#cms-dark-toggle {
position: fixed; bottom: 80px; right: 18px;
width: 42px; height: 42px;
background: #1e1b4b; color: #fff;
border: none; border-radius: 50%;
font-size: 1.2em; cursor: pointer;
box-shadow: 0 4px 16px rgba(0,0,0,.3);
z-index: 9999;
transition: transform .2s, background .2s;
display: flex; align-items: center; justify-content: center;
}
#cms-dark-toggle:hover { transform: scale(1.1); background: #2563eb; }
/* ββ Back to top button ββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
#cms-back-top {
position: fixed; bottom: 24px; right: 18px;
width: 42px; height: 42px;
background: #2563eb; color: #fff;
border: none; border-radius: 50%;
font-size: 1.2em; cursor: pointer;
box-shadow: 0 4px 16px rgba(37,99,235,.4);
z-index: 9999; opacity: 0; pointer-events: none;
transition: opacity .3s, transform .2s;
display: flex; align-items: center; justify-content: center;
}
#cms-back-top.visible { opacity: 1; pointer-events: all; }
#cms-back-top:hover { transform: scale(1.1); }
/* ββ Reading progress bar ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
#cms-progress {
position: fixed; top: 0; left: 0;
height: 3px; width: 0%;
background: linear-gradient(90deg, #2563eb, #7c3aed);
z-index: 99999;
transition: width .1s linear;
}
/* ββ "Was this helpful?" widget ββββββββββββββββββββββββββββββββββββββββββββββ */
#cms-helpful {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 14px 18px;
margin: 24px 0 8px;
display: flex; align-items: center; gap: 14px;
font-size: .9em; color: #334155;
flex-wrap: wrap;
}
#cms-helpful-label { font-weight: 700; }
.cms-helpful-btn {
background: #fff; border: 1.5px solid #e2e8f0;
border-radius: 20px; padding: 5px 16px;
cursor: pointer; font-size: .88em; font-weight: 600;
transition: background .2s, border-color .2s, transform .15s;
}
.cms-helpful-btn:hover { transform: translateY(-1px); }
.cms-helpful-btn.yes:hover { background: #dcfce7; border-color: #059669; color: #065f46; }
.cms-helpful-btn.no:hover { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; }
.cms-helpful-btn.active { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
#cms-helpful-thanks { color: #059669; font-weight: 700; display: none; }
/* ββ Responsive nav ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
@media (max-width: 720px) {
.cms-infobox { float: none; max-width: 100%; margin: 0 0 16px; }
}