MediaWiki:Common.css
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.
:root {
--fa-sky-blue-light: #88c9f5;
--fa-sky-blue-medium: #54a9e0;
--fa-sky-blue-dark: #2a8ad0;
--fa-grass-green: #77b900;
--fa-grass-green-dark: #669c00;
--fa-glass-bg: rgba(255, 255, 255, 0.75);
--fa-glass-border: rgba(0, 0, 0, 0.1);
--fa-font-family: 'Segoe UI', Frutiger, 'Frutiger Linotype', 'Dejavu Sans', 'Helvetica Neue', Arial, sans-serif;
--fa-text-color: #222;
--fa-link-color: #005ab8;
--fa-link-hover-color: #007bff;
}
/* =========================================== */
/* == 1. Overall Page & Body Look == */
/* =========================================== */
body {
font-family: var(--fa-font-family);
color: var(--fa-text-color);
/* The quintessential Frutiger Aero background: a soft, optimistic gradient */
background: linear-gradient(to bottom, #d4f0ff 0%, #a2d7f5 100%) fixed;
/* Optional: uncomment the line below for a classic grass wallpaper */
/* background-image: url('https://i.imgur.com/uR5A2N1.jpeg'); */
background-size: cover;
background-attachment: fixed;
}
/* Links */
a {
color: var(--fa-link-color);
text-decoration: none;
}
a:hover {
color: var(--fa-link-hover-color);
text-decoration: underline;
}
/* =========================================== */
/* == 2. Main Layout Structure (The "Glass") == */
/* =========================================== */
/* Main content area - this is our primary "glass" panel */
.mw-body,
#content {
background-color: var(--fa-glass-bg);
border: 1px solid var(--fa-glass-border);
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
/* This adds the blurry glass effect, a hallmark of Aero */
-webkit-backdrop-filter: blur(15px);
backdrop-filter: blur(15px);
}
/* Header area (where search and user links are) */
.mw-header {
background: none; /* Remove default background to let the body gradient show through */
}
/* Page Title */
h1.firstHeading {
color: #1a4a75;
font-weight: 600;
border-bottom: 1px solid var(--fa-sky-blue-light);
padding-bottom: 0.4em;
text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
/* =========================================== */
/* == 3. Glossy Elements & Buttons == */
/* =========================================== */
/* This is the core "glossy" effect we will apply to several elements. */
.frutiger-glossy {
border: 1px solid rgba(0,0,0,0.25);
border-radius: 5px;
box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 1px rgba(255,255,255,0.4);
text-shadow: 0 1px 1px rgba(0,0,0,0.2);
color: white !important;
font-weight: bold;
}
/* --- Search Bar --- */
#simpleSearch #searchInput {
border: 1px solid var(--fa-sky-blue-medium);
border-radius: 15px;
box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
transition: all 0.2s ease-in-out;
}
#simpleSearch #searchInput:focus {
border-color: var(--fa-grass-green);
box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 5px var(--fa-grass-green);
}
/* --- Main Tabs (Article, Talk, Read, Edit, etc.) --- */
#p-views ul li a {
transition: all 0.2s ease;
}
#p-views ul li.selected a,
#p-views ul li a:hover {
background: var(--fa-glass-bg);
border-radius: 6px 6px 0 0;
border: 1px solid var(--fa-glass-border);
border-bottom: none;
box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}
/* --- Buttons (e.g., "Save page", "Show preview") --- */
.oo-ui-buttonElement-framed.oo-ui-labelElement > .oo-ui-buttonElement-button {
background: linear-gradient(to bottom, var(--fa-sky-blue-light), var(--fa-sky-blue-dark));
color: white !important;
text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
border: 1px solid var(--fa-sky-blue-dark);
border-radius: 5px;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.2);
transition: all 0.15s ease;
}
.oo-ui-buttonElement-framed.oo-ui-labelElement.oo-ui-flagged-progressive > .oo-ui-buttonElement-button {
background: linear-gradient(to bottom, var(--fa-grass-green), var(--fa-grass-green-dark));
border-color: var(--fa-grass-green-dark);
}
.oo-ui-buttonElement-framed.oo-ui-labelElement > .oo-ui-buttonElement-button:hover {
filter: brightness(1.1);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.3);
}
.oo-ui-buttonElement-framed.oo-ui-labelElement > .oo-ui-buttonElement-button:active {
filter: brightness(0.9);
box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
/* =========================================== */
/* == 4. Sidebar / Navigation == */
/* =========================================== */
/* The entire sidebar container */
#mw-panel {
background: none;
padding-top: 20px;
}
.mw-portlet {
background: none;
margin-bottom: 1.5em;
}
/* The glossy header for each sidebar section (Navigation, Tools, etc.) */
.mw-portlet h3 {
background: linear-gradient(to bottom, var(--fa-sky-blue-light) 0%, var(--fa-sky-blue-medium) 100%);
border: 1px solid var(--fa-sky-blue-dark);
border-radius: 6px;
padding: 8px 12px !important;
color: white;
font-size: 1em;
font-weight: bold;
text-shadow: 0 1px 1px rgba(0,0,0,0.25);
box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
}
/* The list of links within each sidebar section */
.mw-portlet .mw-portlet-body ul {
list-style: none;
margin: 0;
padding: 0;
}
.mw-portlet .mw-portlet-body li {
padding: 0;
}
.mw-portlet .mw-portlet-body li a {
display: block;
padding: 6px 15px;
margin: 2px 0;
color: #1a4a75;
text-shadow: 1px 1px 1px white;
transition: all 0.2s ease;
border-radius: 5px;
}
.mw-portlet .mw-portlet-body li a:hover {
background-color: var(--fa-grass-green);
color: white;
text-shadow: 0 1px 1px rgba(0,0,0,0.2);
text-decoration: none;
}
.mw-portlet .mw-portlet-body li#n-mainpage-description a {
font-weight: bold;
}
/* =========================================== */
/* == 5. Content Elements (TOC, Infoboxes) == */
/* =========================================== */
/* Table of Contents */
#toc, .toc {
background-color: rgba(220, 240, 255, 0.6); /* Lighter, more transparent blue */
border: 1px solid var(--fa-sky-blue-light);
border-radius: 6px;
padding: 10px;
}
#toc .toctitle, .toc .toctitle {
text-align: center;
font-weight: bold;
}
/* Infoboxes */
.infobox {
background-color: #f5fcff;
border: 1px solid var(--fa-sky-blue-light);
border-radius: 6px;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.infobox .infobox-title, .infobox caption {
background-color: var(--fa-sky-blue-light);
border-bottom: 1px solid var(--fa-sky-blue-medium);
font-weight: bold;
}
/* Generic Wikitables */
table.wikitable {
border: 1px solid #a2d7f5;
background: #f5fcff;
}
table.wikitable > tr > th, table.wikitable > * > tr > th {
background: #e2f2ff;
border-color: #a2d7f5;
}
table.wikitable > tr > td, table.wikitable > * > tr > td {
border-color: #a2d7f5;
}