MediaWiki:Common.css: Difference between revisions
From dok
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
| Line 1: | Line 1: | ||
/* ================================================ | /* ================================================ | ||
Professional Business Theme for Timeless Skin | |||
MediaWiki:Common.css | MediaWiki:Common.css | ||
================================================ */ | ================================================ */ | ||
:root { | :root { | ||
/* | /* Professional color palette */ | ||
-- | --corporate-navy: #1a2f4f; /* Deep navy blue */ | ||
-- | --business-blue: #2c5282; /* Professional blue */ | ||
-- | --slate-gray: #475569; /* Slate gray */ | ||
-- | --steel: #64748b; /* Steel gray */ | ||
/* Accent colors */ | /* Accent colors */ | ||
-- | --executive-blue: #3b82f6; /* Vibrant blue for links */ | ||
-- | --success-green: #059669; /* Success/positive actions */ | ||
-- | --corporate-gold: #d97706; /* Premium accent */ | ||
/* Neutrals */ | /* Neutrals */ | ||
- | --white: #ffffff; | ||
-- | --light-gray: #f8fafc; | ||
-- | --border-gray: #e2e8f0; | ||
-- | --text-dark: #1e293b; | ||
--text-medium: #475569; | |||
} | } | ||
/* Main page background */ | /* Main page background */ | ||
body { | body { | ||
background-color: var(-- | background-color: var(--light-gray); | ||
} | } | ||
/* Header/top navigation - | /* Header/top navigation - executive suite */ | ||
#mw-header-container { | #mw-header-container { | ||
background: | background-color: var(--corporate-navy); | ||
border-bottom: | border-bottom: 1px solid var(--border-gray); | ||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | |||
} | } | ||
#mw-header-nav-hack { | #mw-header-nav-hack { | ||
background: | background-color: var(--corporate-navy); | ||
} | } | ||
| Line 47: | Line 48: | ||
#mw-header-nav-hack a, | #mw-header-nav-hack a, | ||
#user-tools a { | #user-tools a { | ||
color: var(- | color: var(--white); | ||
font-weight: 500; | font-weight: 500; | ||
text-transform: uppercase; | |||
font-size: 0.875rem; | |||
letter-spacing: 0.5px; | |||
} | } | ||
#mw-header-nav-hack a:hover, | #mw-header-nav-hack a:hover, | ||
#user-tools a:hover { | #user-tools a:hover { | ||
color: var(-- | color: var(--executive-blue); | ||
} | } | ||
/* Sidebar - | /* Sidebar - clean and minimal */ | ||
#mw-site-navigation, | #mw-site-navigation, | ||
#mw-related-navigation { | #mw-related-navigation { | ||
background-color: var(-- | background-color: var(--white); | ||
border-right: | border-right: 1px solid var(--border-gray); | ||
} | } | ||
| Line 70: | Line 74: | ||
#mw-site-navigation h3, | #mw-site-navigation h3, | ||
#mw-related-navigation h3 { | #mw-related-navigation h3 { | ||
background: | background-color: var(--light-gray); | ||
color: var(--text-dark); | |||
border-bottom: | border-bottom: 2px solid var(--executive-blue); | ||
font-weight: | border-left: none; | ||
font-weight: 600; | |||
text-transform: uppercase; | |||
font-size: 0.875rem; | |||
letter-spacing: 0.5px; | |||
padding: 12px 15px; | |||
} | } | ||
| Line 79: | Line 88: | ||
#mw-site-navigation a, | #mw-site-navigation a, | ||
#mw-related-navigation a { | #mw-related-navigation a { | ||
color: var(-- | color: var(--text-medium); | ||
font-weight: | font-weight: 400; | ||
padding: 8px 15px; | |||
transition: all 0.2s ease; | |||
} | } | ||
#mw-site-navigation a:hover, | #mw-site-navigation a:hover, | ||
#mw-related-navigation a:hover { | #mw-related-navigation a:hover { | ||
color: var(-- | color: var(--executive-blue); | ||
background-color: | background-color: var(--light-gray); | ||
padding-left: 18px; | |||
} | } | ||
/* Main content area - | /* Main content area - clean white card */ | ||
#mw-content-container { | #mw-content-container { | ||
background-color: white; | background-color: var(--white); | ||
border: | border: 1px solid var(--border-gray); | ||
box-shadow: 0 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); | ||
border-radius: 4px; | |||
} | } | ||
#mw-content { | #mw-content { | ||
background-color: white; | background-color: var(--white); | ||
color: var(--text-dark); | |||
} | } | ||
/* Page title - | /* Page title - executive header */ | ||
#firstHeading { | #firstHeading { | ||
color: var(-- | color: var(--corporate-navy); | ||
border-bottom: | border-bottom: 3px solid var(--executive-blue); | ||
font-weight: 600; | |||
padding-bottom: 12px; | |||
margin-bottom: 24px; | |||
} | } | ||
/* Content headings */ | /* Content headings */ | ||
.mw-body h1 | .mw-body h1 { | ||
color: var(--corporate-navy); | |||
font-weight: 600; | |||
color: var(-- | |||
} | } | ||
.mw-body h2 { | .mw-body h2 { | ||
border-bottom: | color: var(--business-blue); | ||
font-weight: 600; | |||
border-bottom: 2px solid var(--border-gray); | |||
padding-bottom: 8px; | |||
margin-top: 32px; | |||
} | } | ||
.mw-body h3 { | .mw-body h3 { | ||
color: var(-- | color: var(--slate-gray); | ||
font-weight: 600; | |||
margin-top: 24px; | |||
} | |||
.mw-body h4 { | |||
color: var(--steel); | |||
font-weight: 600; | |||
} | } | ||
/* Links - | /* Body text - professional typography */ | ||
.mw-body, | |||
.mw-body p { | |||
color: var(--text-dark); | |||
line-height: 1.6; | |||
font-size: 1rem; | |||
} | |||
/* Links - professional blue */ | |||
.mw-body a:not(.new) { | .mw-body a:not(.new) { | ||
color: var(-- | color: var(--executive-blue); | ||
font-weight: 500; | font-weight: 500; | ||
text-decoration: none; | |||
} | } | ||
.mw-body a:not(.new):hover { | .mw-body a:not(.new):hover { | ||
color: var(-- | color: var(--business-blue); | ||
text-decoration: underline; | |||
} | } | ||
.mw-body a:not(.new):visited { | .mw-body a:not(.new):visited { | ||
color: var(-- | color: var(--business-blue); | ||
} | } | ||
| Line 142: | Line 177: | ||
} | } | ||
/* Tabs (page actions) */ | /* Tabs (page actions) - clean tabs */ | ||
#p-namespaces ul li, | #p-namespaces ul li, | ||
#p-views ul li { | #p-views ul li { | ||
background-color: var(-- | background-color: var(--light-gray); | ||
border: | border: 1px solid var(--border-gray); | ||
border-bottom: none; | |||
margin-right: 2px; | |||
} | } | ||
#p-namespaces ul li.selected, | #p-namespaces ul li.selected, | ||
#p-views ul li.selected { | #p-views ul li.selected { | ||
background-color: | background-color: var(--white); | ||
border-bottom: 2px solid var(--executive-blue); | |||
border- | |||
} | } | ||
#p-namespaces a, | #p-namespaces a, | ||
#p-views a { | #p-views a { | ||
color: var(-- | color: var(--text-medium); | ||
font-weight: | font-weight: 500; | ||
font-size: 0.875rem; | |||
} | |||
#p-namespaces ul li.selected a, | |||
#p-views ul li.selected a { | |||
color: var(--executive-blue); | |||
} | } | ||
/* Buttons - | /* Buttons - professional action buttons */ | ||
.mw-ui-button, | .mw-ui-button, | ||
.oo-ui-buttonElement-button { | .oo-ui-buttonElement-button { | ||
background: | background-color: var(--executive-blue); | ||
color: white; | color: var(--white); | ||
border: | border: none; | ||
font-weight: | font-weight: 500; | ||
padding: 10px 20px; | |||
border-radius: 4px; | |||
transition: background-color 0.2s ease; | |||
} | } | ||
.mw-ui-button:hover, | .mw-ui-button:hover, | ||
.oo-ui-buttonElement-button:hover { | .oo-ui-buttonElement-button:hover { | ||
background: | background-color: var(--business-blue); | ||
} | } | ||
/* Info boxes */ | /* Secondary buttons */ | ||
.mw-ui-button.mw-ui-quiet, | |||
.oo-ui-buttonElement.oo-ui-buttonElement-frameless { | |||
background-color: transparent; | |||
color: var(--executive-blue); | |||
border: 1px solid var(--border-gray); | |||
} | |||
/* Info boxes - professional callouts */ | |||
.infobox { | .infobox { | ||
background-color: var(-- | background-color: var(--light-gray); | ||
border: | border: 1px solid var(--border-gray); | ||
border-left: | border-left: 4px solid var(--executive-blue); | ||
box-shadow: 2px | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); | ||
border-radius: 4px; | |||
} | } | ||
/* Table styling - | /* Table styling - clean data tables */ | ||
table.wikitable { | table.wikitable { | ||
background-color: white; | background-color: var(--white); | ||
border: | border: 1px solid var(--border-gray); | ||
color: var(--text-dark); | |||
border-collapse: collapse; | |||
} | } | ||
table.wikitable th { | table.wikitable th { | ||
background: | background-color: var(--light-gray); | ||
color: var(--text-dark); | |||
font- | border: 1px solid var(--border-gray); | ||
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-gray); | |||
padding: 12px 16px; | |||
} | } | ||
table.wikitable tr:nth-child(even) { | table.wikitable tr:nth-child(even) { | ||
background-color: var(-- | background-color: var(--light-gray); | ||
} | } | ||
table.wikitable tr: | table.wikitable tr:hover { | ||
background-color: | background-color: #f1f5f9; | ||
} | } | ||
/* Code blocks - technical documentation style */ | |||
background-color: var(-- | pre, code { | ||
background-color: var(--light-gray); | |||
border: 1px solid var(--border-gray); | |||
color: var(--text-dark); | |||
font-family: 'Consolas', 'Monaco', 'Courier New', monospace; | |||
font-size: 0.875rem; | |||
border-radius: 3px; | |||
} | } | ||
pre { | |||
padding: 16px; | |||
overflow-x: auto; | |||
} | } | ||
code { | |||
padding: 2px 6px; | |||
} | } | ||
/* Footer */ | /* Footer - minimal and clean */ | ||
#footer { | #footer { | ||
background: | background-color: var(--light-gray); | ||
border-top: | border-top: 1px solid var(--border-gray); | ||
color: var(-- | color: var(--text-medium); | ||
font-size: 0.875rem; | |||
} | } | ||
#footer a { | #footer a { | ||
color: var(-- | color: var(--text-medium); | ||
font-weight: | font-weight: 400; | ||
} | } | ||
#footer a:hover { | #footer a:hover { | ||
color: var(-- | color: var(--executive-blue); | ||
} | } | ||
/* Search box */ | /* Search box - modern search */ | ||
#searchInput { | #searchInput { | ||
border: | border: 1px solid var(--border-gray); | ||
background-color: white; | background-color: var(--white); | ||
color: var(--text-dark); | |||
padding: 8px 12px; | |||
border-radius: 4px; | |||
transition: all 0.2s ease; | |||
} | } | ||
#searchInput:focus { | #searchInput:focus { | ||
border-color: var(-- | border-color: var(--executive-blue); | ||
box-shadow: 0 0 | box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); | ||
outline: none; | |||
} | } | ||
/* Blockquotes */ | #searchInput::placeholder { | ||
color: var(--steel); | |||
} | |||
/* Blockquotes - professional quotes */ | |||
blockquote { | blockquote { | ||
border-left: | border-left: 4px solid var(--executive-blue); | ||
background-color: var(-- | background-color: var(--light-gray); | ||
padding: | padding: 16px 20px; | ||
margin: 20px 0; | margin: 20px 0; | ||
color: var(-- | color: var(--text-medium); | ||
font-style: italic; | |||
} | |||
/* Lists - clean formatting */ | |||
.mw-body ul, | |||
.mw-body ol { | |||
line-height: 1.8; | |||
} | } | ||
| Line 264: | Line 351: | ||
.mw-wiki-title, | .mw-wiki-title, | ||
#sitelogo-text { | #sitelogo-text { | ||
color: var(- | color: var(--white) !important; | ||
font-weight: | font-weight: 600 !important; | ||
text-transform: uppercase; | |||
letter-spacing: 1px; | |||
font-size: 1.125rem; | |||
} | } | ||
#p-logo a:hover, | #p-logo a:hover, | ||
#p-logo-text a:hover { | #p-logo-text a:hover { | ||
color: var(-- | color: var(--executive-blue) !important; | ||
} | } | ||
| Line 279: | Line 368: | ||
#personal h2, | #personal h2, | ||
#personal .mw-portlet-heading { | #personal .mw-portlet-heading { | ||
color: var(- | color: var(--white) !important; | ||
font-weight: 500 !important; | font-weight: 500 !important; | ||
} | } | ||
#user-tools #pt-userpage a:hover { | #user-tools #pt-userpage a:hover { | ||
color: var(-- | color: var(--executive-blue) !important; | ||
} | } | ||
| Line 292: | Line 381: | ||
#user-tools .dropdown, | #user-tools .dropdown, | ||
#personal .vector-menu-content { | #personal .vector-menu-content { | ||
background-color: white; | background-color: var(--white); | ||
border: | border: 1px solid var(--border-gray); | ||
box-shadow: 0 4px 12px rgba( | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | ||
border-radius: 4px; | |||
} | } | ||
| Line 300: | Line 390: | ||
#personal ul a, | #personal ul a, | ||
#user-tools .dropdown a { | #user-tools .dropdown a { | ||
color: var(-- | color: var(--text-dark) !important; | ||
background-color: white; | background-color: var(--white); | ||
font-weight: | font-weight: 400; | ||
padding: 10px 16px; | |||
} | } | ||
| Line 308: | Line 399: | ||
#personal ul a:hover, | #personal ul a:hover, | ||
#user-tools .dropdown a:hover { | #user-tools .dropdown a:hover { | ||
color: var(-- | color: var(--executive-blue) !important; | ||
background-color: var(-- | background-color: var(--light-gray); | ||
} | } | ||
Revision as of 19:23, 19 December 2025
/* ================================================
Professional Business Theme for Timeless Skin
MediaWiki:Common.css
================================================ */
:root {
/* Professional color palette */
--corporate-navy: #1a2f4f; /* Deep navy blue */
--business-blue: #2c5282; /* Professional blue */
--slate-gray: #475569; /* Slate gray */
--steel: #64748b; /* Steel gray */
/* Accent colors */
--executive-blue: #3b82f6; /* Vibrant blue for links */
--success-green: #059669; /* Success/positive actions */
--corporate-gold: #d97706; /* Premium accent */
/* Neutrals */
--white: #ffffff;
--light-gray: #f8fafc;
--border-gray: #e2e8f0;
--text-dark: #1e293b;
--text-medium: #475569;
}
/* Main page background */
body {
background-color: var(--light-gray);
}
/* Header/top navigation - executive suite */
#mw-header-container {
background-color: var(--corporate-navy);
border-bottom: 1px solid var(--border-gray);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
#mw-header-nav-hack {
background-color: var(--corporate-navy);
}
/* Site logo area */
#p-logo a {
background-color: transparent;
}
/* Navigation links in header */
#mw-header-nav-hack a,
#user-tools a {
color: var(--white);
font-weight: 500;
text-transform: uppercase;
font-size: 0.875rem;
letter-spacing: 0.5px;
}
#mw-header-nav-hack a:hover,
#user-tools a:hover {
color: var(--executive-blue);
}
/* Sidebar - clean and minimal */
#mw-site-navigation,
#mw-related-navigation {
background-color: var(--white);
border-right: 1px solid var(--border-gray);
}
#mw-site-navigation .sidebar-chunk,
#mw-related-navigation .sidebar-chunk {
background-color: transparent;
}
#mw-site-navigation h3,
#mw-related-navigation h3 {
background-color: var(--light-gray);
color: var(--text-dark);
border-bottom: 2px solid var(--executive-blue);
border-left: none;
font-weight: 600;
text-transform: uppercase;
font-size: 0.875rem;
letter-spacing: 0.5px;
padding: 12px 15px;
}
/* Sidebar links */
#mw-site-navigation a,
#mw-related-navigation a {
color: var(--text-medium);
font-weight: 400;
padding: 8px 15px;
transition: all 0.2s ease;
}
#mw-site-navigation a:hover,
#mw-related-navigation a:hover {
color: var(--executive-blue);
background-color: var(--light-gray);
padding-left: 18px;
}
/* Main content area - clean white card */
#mw-content-container {
background-color: var(--white);
border: 1px solid var(--border-gray);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
border-radius: 4px;
}
#mw-content {
background-color: var(--white);
color: var(--text-dark);
}
/* Page title - executive header */
#firstHeading {
color: var(--corporate-navy);
border-bottom: 3px solid var(--executive-blue);
font-weight: 600;
padding-bottom: 12px;
margin-bottom: 24px;
}
/* Content headings */
.mw-body h1 {
color: var(--corporate-navy);
font-weight: 600;
}
.mw-body h2 {
color: var(--business-blue);
font-weight: 600;
border-bottom: 2px solid var(--border-gray);
padding-bottom: 8px;
margin-top: 32px;
}
.mw-body h3 {
color: var(--slate-gray);
font-weight: 600;
margin-top: 24px;
}
.mw-body h4 {
color: var(--steel);
font-weight: 600;
}
/* Body text - professional typography */
.mw-body,
.mw-body p {
color: var(--text-dark);
line-height: 1.6;
font-size: 1rem;
}
/* Links - professional blue */
.mw-body a:not(.new) {
color: var(--executive-blue);
font-weight: 500;
text-decoration: none;
}
.mw-body a:not(.new):hover {
color: var(--business-blue);
text-decoration: underline;
}
.mw-body a:not(.new):visited {
color: var(--business-blue);
}
/* Red links (non-existent pages) */
.mw-body a.new {
color: #dc2626;
}
/* Tabs (page actions) - clean tabs */
#p-namespaces ul li,
#p-views ul li {
background-color: var(--light-gray);
border: 1px solid var(--border-gray);
border-bottom: none;
margin-right: 2px;
}
#p-namespaces ul li.selected,
#p-views ul li.selected {
background-color: var(--white);
border-bottom: 2px solid var(--executive-blue);
}
#p-namespaces a,
#p-views a {
color: var(--text-medium);
font-weight: 500;
font-size: 0.875rem;
}
#p-namespaces ul li.selected a,
#p-views ul li.selected a {
color: var(--executive-blue);
}
/* Buttons - professional action buttons */
.mw-ui-button,
.oo-ui-buttonElement-button {
background-color: var(--executive-blue);
color: var(--white);
border: none;
font-weight: 500;
padding: 10px 20px;
border-radius: 4px;
transition: background-color 0.2s ease;
}
.mw-ui-button:hover,
.oo-ui-buttonElement-button:hover {
background-color: var(--business-blue);
}
/* Secondary buttons */
.mw-ui-button.mw-ui-quiet,
.oo-ui-buttonElement.oo-ui-buttonElement-frameless {
background-color: transparent;
color: var(--executive-blue);
border: 1px solid var(--border-gray);
}
/* Info boxes - professional callouts */
.infobox {
background-color: var(--light-gray);
border: 1px solid var(--border-gray);
border-left: 4px solid var(--executive-blue);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
border-radius: 4px;
}
/* Table styling - clean data tables */
table.wikitable {
background-color: var(--white);
border: 1px solid var(--border-gray);
color: var(--text-dark);
border-collapse: collapse;
}
table.wikitable th {
background-color: var(--light-gray);
color: var(--text-dark);
border: 1px solid var(--border-gray);
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-gray);
padding: 12px 16px;
}
table.wikitable tr:nth-child(even) {
background-color: var(--light-gray);
}
table.wikitable tr:hover {
background-color: #f1f5f9;
}
/* Code blocks - technical documentation style */
pre, code {
background-color: var(--light-gray);
border: 1px solid var(--border-gray);
color: var(--text-dark);
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
font-size: 0.875rem;
border-radius: 3px;
}
pre {
padding: 16px;
overflow-x: auto;
}
code {
padding: 2px 6px;
}
/* Footer - minimal and clean */
#footer {
background-color: var(--light-gray);
border-top: 1px solid var(--border-gray);
color: var(--text-medium);
font-size: 0.875rem;
}
#footer a {
color: var(--text-medium);
font-weight: 400;
}
#footer a:hover {
color: var(--executive-blue);
}
/* Search box - modern search */
#searchInput {
border: 1px solid var(--border-gray);
background-color: var(--white);
color: var(--text-dark);
padding: 8px 12px;
border-radius: 4px;
transition: all 0.2s ease;
}
#searchInput:focus {
border-color: var(--executive-blue);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
outline: none;
}
#searchInput::placeholder {
color: var(--steel);
}
/* Blockquotes - professional quotes */
blockquote {
border-left: 4px solid var(--executive-blue);
background-color: var(--light-gray);
padding: 16px 20px;
margin: 20px 0;
color: var(--text-medium);
font-style: italic;
}
/* Lists - clean formatting */
.mw-body ul,
.mw-body ol {
line-height: 1.8;
}
/* ================================================
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(--white) !important;
font-weight: 600 !important;
text-transform: uppercase;
letter-spacing: 1px;
font-size: 1.125rem;
}
#p-logo a:hover,
#p-logo-text a:hover {
color: var(--executive-blue) !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(--white) !important;
font-weight: 500 !important;
}
#user-tools #pt-userpage a:hover {
color: var(--executive-blue) !important;
}
/* Dropdown menu from username */
#personal .mw-portlet-body,
#personal ul,
#user-tools .dropdown,
#personal .vector-menu-content {
background-color: var(--white);
border: 1px solid var(--border-gray);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
border-radius: 4px;
}
#personal .mw-portlet-body a,
#personal ul a,
#user-tools .dropdown a {
color: var(--text-dark) !important;
background-color: var(--white);
font-weight: 400;
padding: 10px 16px;
}
#personal .mw-portlet-body a:hover,
#personal ul a:hover,
#user-tools .dropdown a:hover {
color: var(--executive-blue) !important;
background-color: var(--light-gray);
}
