MediaWiki:Common.css
From dok
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.
/* ================================================
Calm Orange Theme for Timeless Skin
MediaWiki:Common.css
Perfect for: Warm, inviting documentation sites
================================================ */
:root {
/* Calm Orange color palette */
--deep-orange: #e65100; /* Primary - deep orange */
--orange: #ff9800; /* Secondary - bright orange */
--light-orange-bg: #fff3e0; /* Background - warm light orange */
--peachy-white: #fffaf5; /* Content background - peachy white */
--light-orange: #ffe0b2; /* Accent - light orange */
--text-primary: #222222; /* Main text - dark gray */
/* Extended palette for UI elements */
--darker-orange: #f57c00; /* Darker orange for hover */
--very-dark-orange: #bf360c; /* Very dark orange */
--lighter-orange: #ffb74d; /* Lighter orange for buttons */
--highlight-yellow: #ffd54f; /* Yellow-orange for highlights */
--border-light: #ffe0b2; /* Subtle borders */
--bg-white: #ffffff; /* Pure white for content */
--text-secondary: #4a4a4a; /* Secondary text */
}
/* Main page background */
body {
background-color: var(--light-orange-bg);
color: var(--text-primary);
}
/* Header/top navigation - warm orange */
#mw-header-container {
background-color: var(--deep-orange);
border-bottom: 2px solid var(--orange);
}
#mw-header-nav-hack {
background-color: var(--deep-orange);
}
/* Site logo area */
#p-logo a {
background-color: transparent;
}
/* Navigation links in header */
#mw-header-nav-hack a,
#user-tools a {
color: var(--peachy-white);
font-weight: 500;
}
#mw-header-nav-hack a:hover,
#user-tools a:hover {
color: var(--highlight-yellow);
}
/* Sidebar - warm style */
#mw-site-navigation,
#mw-related-navigation {
background-color: var(--light-orange-bg);
border-right: 1px solid var(--border-light);
}
#mw-site-navigation .sidebar-chunk,
#mw-related-navigation .sidebar-chunk {
background-color: transparent;
}
#mw-site-navigation h3,
#mw-related-navigation h3 {
background-color: var(--deep-orange);
color: white;
border-bottom: 2px solid var(--orange);
font-weight: 600;
text-transform: uppercase;
font-size: 0.875rem;
letter-spacing: 0.5px;
}
/* Sidebar links */
#mw-site-navigation a,
#mw-related-navigation a {
color: var(--text-secondary);
font-weight: 400;
}
#mw-site-navigation a:hover,
#mw-related-navigation a:hover {
color: var(--deep-orange);
background-color: rgba(255, 224, 178, 0.3);
}
/* Main content area - clean white pages */
#mw-content-container {
background-color: var(--peachy-white);
border: 1px solid var(--border-light);
box-shadow: 0 2px 8px rgba(230, 81, 0, 0.08);
}
#mw-content {
background-color: var(--peachy-white);
color: var(--text-primary);
}
/* Page title - warm heading */
#firstHeading {
color: var(--deep-orange);
border-bottom: 3px solid var(--orange);
font-weight: 600;
padding-bottom: 12px;
}
/* Content headings - hierarchical typography */
.mw-body h1 {
color: var(--deep-orange);
font-weight: 600;
}
.mw-body h2 {
color: var(--deep-orange);
font-weight: 600;
border-bottom: 2px solid var(--orange);
padding-bottom: 8px;
margin-top: 32px;
}
.mw-body h3 {
color: var(--darker-orange);
font-weight: 600;
margin-top: 24px;
}
.mw-body h4 {
color: var(--text-secondary);
font-weight: 600;
}
/* Body text - optimal readability */
.mw-body,
.mw-body p {
color: var(--text-primary);
line-height: 1.7;
font-size: 1rem;
}
/* Links - warm style */
.mw-body a:not(.new) {
color: var(--darker-orange);
text-decoration: none;
border-bottom: 1px solid transparent;
transition: border-color 0.2s ease;
}
.mw-body a:not(.new):hover {
color: var(--deep-orange);
border-bottom-color: var(--orange);
}
.mw-body a:not(.new):visited {
color: var(--very-dark-orange);
}
/* Red links (non-existent pages) */
.mw-body a.new {
color: #c62828;
}
/* Tabs (page actions) */
#p-namespaces ul li,
#p-views ul li {
background-color: var(--light-orange-bg);
border: 1px solid var(--border-light);
}
#p-namespaces ul li.selected,
#p-views ul li.selected {
background-color: var(--peachy-white);
border-bottom-color: var(--peachy-white);
border-top: 2px solid var(--orange);
}
#p-namespaces a,
#p-views a {
color: var(--text-secondary);
font-weight: 500;
font-size: 0.875rem;
}
#p-namespaces ul li.selected a,
#p-views ul li.selected a {
color: var(--deep-orange);
}
/* Buttons - warm actions */
.mw-ui-button,
.oo-ui-buttonElement-button {
background-color: var(--orange);
color: white;
border: none;
font-weight: 500;
padding: 10px 20px;
transition: background-color 0.2s ease;
}
.mw-ui-button:hover,
.oo-ui-buttonElement-button:hover {
background-color: var(--darker-orange);
}
/* Info boxes - warm notes */
.infobox {
background-color: var(--light-orange-bg);
border: 1px solid var(--light-orange);
border-left: 4px solid var(--orange);
box-shadow: 0 1px 3px rgba(230, 81, 0, 0.1);
}
/* Table styling - warm data presentation */
table.wikitable {
background-color: var(--peachy-white);
border: 1px solid var(--border-light);
color: var(--text-primary);
}
table.wikitable th {
background-color: var(--deep-orange);
color: white;
border: 1px solid var(--orange);
font-weight: 600;
text-transform: uppercase;
font-size: 0.875rem;
letter-spacing: 0.5px;
padding: 12px 16px;
}
table.wikitable td {
border: 1px solid var(--border-light);
padding: 10px 16px;
}
table.wikitable tr:nth-child(even) {
background-color: var(--light-orange-bg);
}
table.wikitable tr:hover {
background-color: rgba(255, 224, 178, 0.2);
}
/* Code blocks - technical documentation */
pre, code {
background-color: var(--light-orange-bg);
border: 1px solid var(--border-light);
border-left: 3px solid var(--orange);
color: var(--text-primary);
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
font-size: 0.9rem;
}
pre {
padding: 16px;
overflow-x: auto;
}
code {
padding: 2px 6px;
}
/* Footer - warm style */
#footer,
#mw-footer,
#mw-footer-container {
background-color: var(--light-orange-bg);
border-top: 2px solid var(--orange);
color: var(--text-primary) !important;
font-size: 0.875rem;
}
/* Footer text - dark for better contrast */
#footer-info,
#footer-places,
#footer-list,
#mw-footer ul,
#mw-footer li {
color: var(--text-primary) !important;
}
/* Footer links */
#footer a,
#mw-footer a,
#footer-places a,
#footer-info a {
color: var(--text-primary) !important;
font-weight: 500;
}
#footer a:hover,
#mw-footer a:hover {
color: var(--deep-orange) !important;
}
/* Search box */
#searchInput {
border: 1px solid var(--border-light);
background-color: var(--peachy-white);
color: var(--text-primary);
padding: 8px 12px;
}
#searchInput:focus {
border-color: var(--orange);
box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.1);
outline: none;
}
#searchInput::placeholder {
color: var(--text-secondary);
}
/* Blockquotes - citations and references */
blockquote {
border-left: 4px solid var(--orange);
background-color: var(--light-orange-bg);
padding: 16px 20px;
margin: 20px 0;
color: var(--text-secondary);
font-style: italic;
}
/* Lists - structured documentation */
.mw-body ul,
.mw-body ol {
line-height: 1.8;
color: var(--text-primary);
}
/* Categories and metadata */
#catlinks {
background-color: var(--light-orange-bg);
border: 1px solid var(--border-light);
color: var(--text-secondary);
}
/* Edit forms and inputs */
textarea,
input[type="text"],
input[type="search"] {
background-color: var(--peachy-white);
color: var(--text-primary);
border: 1px solid var(--border-light);
}
textarea:focus,
input[type="text"]:focus,
input[type="search"]:focus {
border-color: var(--orange);
box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.1);
}
/* ================================================
Additional fixes for header text visibility
================================================ */
/* Wiki name/site title in top left */
#p-logo a,
#p-logo-text a,
.mw-wiki-title,
#sitelogo-text {
color: var(--peachy-white) !important;
font-weight: 600 !important;
text-transform: uppercase;
letter-spacing: 1px;
}
#p-logo a:hover,
#p-logo-text a:hover {
color: var(--highlight-yellow) !important;
}
/* Username in top right corner */
#user-tools .mw-ui-icon + span,
#user-tools #pt-userpage a,
#personal h2,
#personal .mw-portlet-heading {
color: var(--peachy-white) !important;
font-weight: 500 !important;
}
#user-tools #pt-userpage a:hover {
color: var(--highlight-yellow) !important;
}
/* Dropdown menu from username */
#personal .mw-portlet-body,
#personal ul,
#user-tools .dropdown,
#personal .vector-menu-content {
background-color: var(--peachy-white);
border: 1px solid var(--border-light);
box-shadow: 0 4px 12px rgba(230, 81, 0, 0.15);
}
#personal .mw-portlet-body a,
#personal ul a,
#user-tools .dropdown a {
color: var(--text-primary) !important;
background-color: var(--peachy-white);
font-weight: 400;
}
#personal .mw-portlet-body a:hover,
#personal ul a:hover,
#user-tools .dropdown a:hover {
color: var(--deep-orange) !important;
background-color: var(--light-orange-bg);
}
/* ================================================
Icon Fixes for Dark Header Background
================================================ */
/* User icon - replace with light-colored version */
#personal h2 {
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="6" r="3" fill="%23FFFAF5"/><path d="M10 10c-3 0-7 2-7 5v2h14v-2c0-3-4-5-7-5z" fill="%23FFFAF5"/></svg>') !important;
}
/* Site tools gear icon - replace with light-colored version */
#site-tools h2 {
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M10 1.5c-.85 0-1.6.55-1.85 1.35l-.35 1.1c-.25.05-.5.15-.75.25l-1-.6c-.75-.45-1.7-.3-2.3.35l-.7.7c-.65.65-.8 1.55-.35 2.3l.6 1c-.1.25-.2.5-.25.75l-1.1.35C1.05 9.4.5 10.15.5 11s.55 1.6 1.35 1.85l1.1.35c.05.25.15.5.25.75l-.6 1c-.45.75-.3 1.7.35 2.3l.7.7c.65.65 1.55.8 2.3.35l1-.6c.25.1.5.2.75.25l.35 1.1c.25.8 1 1.35 1.85 1.35s1.6-.55 1.85-1.35l.35-1.1c.25-.05.5-.15.75-.25l1 .6c.75.45 1.7.3 2.3-.35l.7-.7c.65-.65.8-1.55.35-2.3l-.6-1c.1-.25.2-.5.25-.75l1.1-.35c.8-.25 1.35-1 1.35-1.85s-.55-1.6-1.35-1.85l-1.1-.35c-.05-.25-.15-.5-.25-.75l.6-1c.45-.75.3-1.7-.35-2.3l-.7-.7c-.65-.65-1.55-.8-2.3-.35l-1 .6c-.25-.1-.5-.2-.75-.25l-.35-1.1C11.6 2.05 10.85 1.5 10 1.5zm0 5.5c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3z" fill="%23FFFAF5"/></svg>') !important;
}
/* Site navigation hamburger menu icon - replace with light-colored version */
#site-navigation h2,
#mw-site-navigation h2 {
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M2 4h16v2H2zm0 5h16v2H2zm0 5h16v2H2z" fill="%23FFFAF5"/></svg>') !important;
}
/* User tools icons in header - make light colored */
#user-tools .mw-ui-icon,
#user-tools .mw-ui-icon:before,
#user-tools .mw-ui-icon:after,
#personal .mw-ui-icon {
color: var(--peachy-white) !important;
fill: var(--peachy-white) !important;
opacity: 0.9;
}
#user-tools .mw-ui-icon:hover,
#personal .mw-ui-icon:hover {
color: var(--highlight-yellow) !important;
fill: var(--highlight-yellow) !important;
opacity: 1;
}
