MediaWiki:Common.css: Difference between revisions

From ift
Created page with "CSS placed here will be applied to all skins: body.page-Main_Page h1.firstHeading { display:none; }"
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* ================================================
body.page-Main_Page h1.firstHeading { display:none; }
  Winter Blue Theme for Timeless Skin
  MediaWiki:Common.css
  ================================================ */
 
:root {
    /* Primary blues - cool winter palette */
    --winter-blue: #1e3a5f;          /* Deep winter blue */
    --ice-blue: #4a90a4;              /* Medium ice blue */
    --frost-blue: #e8f4f8;            /* Very light frost */
    --steel-blue: #2c5f7c;            /* Steel blue for headers */
   
    /* Complementary warm accents */
    --warm-coral: #d4785a;            /* Warm coral for links */
    --soft-orange: #e89b6f;          /* Soft orange for hover */
   
    /* Neutrals */
    --winter-white: #f5f9fc;
    --cool-gray: #b0c4d4;
    --dark-gray: #2a3f54;
}
 
/* Main page background */
body {
    background-color: var(--winter-white);
}
 
/* Header/top navigation */
#mw-header-container {
    background-color: var(--winter-blue);
    border-bottom: 3px solid var(--ice-blue);
}
 
#mw-header-nav-hack {
    background-color: var(--winter-blue);
}
 
/* Site logo area */
#p-logo a {
    background-color: transparent;
}
 
/* Navigation links in header */
#mw-header-nav-hack a,
#user-tools a {
    color: var(--frost-blue);
}
 
#mw-header-nav-hack a:hover,
#user-tools a:hover {
    color: var(--soft-orange);
}
 
/* Sidebar */
#mw-site-navigation,
#mw-related-navigation {
    background-color: var(--frost-blue);
    border-right: 1px solid var(--cool-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(--ice-blue);
    color: white;
    border-bottom: 2px solid var(--steel-blue);
}
 
/* Sidebar links */
#mw-site-navigation a,
#mw-related-navigation a {
    color: var(--steel-blue);
}
 
#mw-site-navigation a:hover,
#mw-related-navigation a:hover {
    color: var(--warm-coral);
    background-color: rgba(74, 144, 164, 0.1);
}
 
/* Main content area */
#mw-content-container {
    background-color: white;
    border: 1px solid var(--cool-gray);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1);
}
 
#mw-content {
    background-color: white;
}
 
/* Page title */
#firstHeading {
    color: var(--winter-blue);
    border-bottom: 3px solid var(--ice-blue);
}
 
/* Content headings */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4 {
    color: var(--steel-blue);
}
 
.mw-body h2 {
    border-bottom: 2px solid var(--ice-blue);
}
 
/* Links */
.mw-body a:not(.new) {
    color: var(--warm-coral);
}
 
.mw-body a:not(.new):hover {
    color: var(--soft-orange);
}
 
.mw-body a:not(.new):visited {
    color: #a55d47;
}
 
/* Red links (non-existent pages) */
.mw-body a.new {
    color: #c44d4d;
}
 
/* Tabs (page actions) */
#p-namespaces ul li,
#p-views ul li {
    background-color: var(--frost-blue);
    border: 1px solid var(--cool-gray);
}
 
#p-namespaces ul li.selected,
#p-views ul li.selected {
    background-color: white;
    border-bottom-color: white;
}
 
#p-namespaces a,
#p-views a {
    color: var(--steel-blue);
}
 
/* Buttons */
.mw-ui-button,
.oo-ui-buttonElement-button {
    background-color: var(--ice-blue);
    color: white;
    border: 1px solid var(--steel-blue);
}
 
.mw-ui-button:hover,
.oo-ui-buttonElement-button:hover {
    background-color: var(--steel-blue);
}
 
/* Info boxes and notice templates */
.infobox {
    background-color: var(--frost-blue);
    border: 1px solid var(--ice-blue);
}
 
/* Table styling */
table.wikitable {
    background-color: white;
    border: 1px solid var(--cool-gray);
}
 
table.wikitable th {
    background-color: var(--ice-blue);
    color: white;
}
 
table.wikitable tr:hover {
    background-color: var(--frost-blue);
}
 
/* Code blocks */
pre, code {
    background-color: var(--frost-blue);
    border: 1px solid var(--cool-gray);
}
 
/* Footer */
#footer {
    background-color: var(--frost-blue);
    border-top: 3px solid var(--ice-blue);
    color: var(--dark-gray);
}
 
#footer a {
    color: var(--steel-blue);
}
 
#footer a:hover {
    color: var(--warm-coral);
}
 
/* Search box */
#searchInput {
    border: 1px solid var(--cool-gray);
    background-color: white;
}
 
#searchInput:focus {
    border-color: var(--ice-blue);
    box-shadow: 0 0 5px rgba(74, 144, 164, 0.3);
}
 
/* ================================================
  Additional fixes for header text visibility
  ================================================ */
 
/* Wiki name/site title in top left - make it light on dark background */
#p-logo a,
#p-logo-text a,
.mw-wiki-title,
#sitelogo-text {
    color: var(--frost-blue) !important;
}
 
#p-logo a:hover,
#p-logo-text a:hover {
    color: var(--soft-orange) !important;
}
 
/* Username in top right corner - make it light */
#user-tools .mw-ui-icon + span,
#user-tools #pt-userpage a,
#personal h2,
#personal .mw-portlet-heading {
    color: var(--frost-blue) !important;
}
 
#user-tools #pt-userpage a:hover {
    color: var(--soft-orange) !important;
}
 
/* Dropdown menu from username - dark text on light background */
#personal .mw-portlet-body,
#personal ul,
#user-tools .dropdown,
#personal .vector-menu-content {
    background-color: white;
    border: 1px solid var(--cool-gray);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}
 
#personal .mw-portlet-body a,
#personal ul a,
#user-tools .dropdown a {
    color: var(--steel-blue) !important;
    background-color: white;
}
 
#personal .mw-portlet-body a:hover,
#personal ul a:hover,
#user-tools .dropdown a:hover {
    color: var(--warm-coral) !important;
    background-color: var(--frost-blue);
}

Latest revision as of 13:42, 21 December 2025

/* ================================================
   Winter Blue Theme for Timeless Skin
   MediaWiki:Common.css
   ================================================ */

:root {
    /* Primary blues - cool winter palette */
    --winter-blue: #1e3a5f;          /* Deep winter blue */
    --ice-blue: #4a90a4;              /* Medium ice blue */
    --frost-blue: #e8f4f8;            /* Very light frost */
    --steel-blue: #2c5f7c;            /* Steel blue for headers */
    
    /* Complementary warm accents */
    --warm-coral: #d4785a;            /* Warm coral for links */
    --soft-orange: #e89b6f;           /* Soft orange for hover */
    
    /* Neutrals */
    --winter-white: #f5f9fc;
    --cool-gray: #b0c4d4;
    --dark-gray: #2a3f54;
}

/* Main page background */
body {
    background-color: var(--winter-white);
}

/* Header/top navigation */
#mw-header-container {
    background-color: var(--winter-blue);
    border-bottom: 3px solid var(--ice-blue);
}

#mw-header-nav-hack {
    background-color: var(--winter-blue);
}

/* Site logo area */
#p-logo a {
    background-color: transparent;
}

/* Navigation links in header */
#mw-header-nav-hack a,
#user-tools a {
    color: var(--frost-blue);
}

#mw-header-nav-hack a:hover,
#user-tools a:hover {
    color: var(--soft-orange);
}

/* Sidebar */
#mw-site-navigation,
#mw-related-navigation {
    background-color: var(--frost-blue);
    border-right: 1px solid var(--cool-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(--ice-blue);
    color: white;
    border-bottom: 2px solid var(--steel-blue);
}

/* Sidebar links */
#mw-site-navigation a,
#mw-related-navigation a {
    color: var(--steel-blue);
}

#mw-site-navigation a:hover,
#mw-related-navigation a:hover {
    color: var(--warm-coral);
    background-color: rgba(74, 144, 164, 0.1);
}

/* Main content area */
#mw-content-container {
    background-color: white;
    border: 1px solid var(--cool-gray);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1);
}

#mw-content {
    background-color: white;
}

/* Page title */
#firstHeading {
    color: var(--winter-blue);
    border-bottom: 3px solid var(--ice-blue);
}

/* Content headings */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4 {
    color: var(--steel-blue);
}

.mw-body h2 {
    border-bottom: 2px solid var(--ice-blue);
}

/* Links */
.mw-body a:not(.new) {
    color: var(--warm-coral);
}

.mw-body a:not(.new):hover {
    color: var(--soft-orange);
}

.mw-body a:not(.new):visited {
    color: #a55d47;
}

/* Red links (non-existent pages) */
.mw-body a.new {
    color: #c44d4d;
}

/* Tabs (page actions) */
#p-namespaces ul li,
#p-views ul li {
    background-color: var(--frost-blue);
    border: 1px solid var(--cool-gray);
}

#p-namespaces ul li.selected,
#p-views ul li.selected {
    background-color: white;
    border-bottom-color: white;
}

#p-namespaces a,
#p-views a {
    color: var(--steel-blue);
}

/* Buttons */
.mw-ui-button,
.oo-ui-buttonElement-button {
    background-color: var(--ice-blue);
    color: white;
    border: 1px solid var(--steel-blue);
}

.mw-ui-button:hover,
.oo-ui-buttonElement-button:hover {
    background-color: var(--steel-blue);
}

/* Info boxes and notice templates */
.infobox {
    background-color: var(--frost-blue);
    border: 1px solid var(--ice-blue);
}

/* Table styling */
table.wikitable {
    background-color: white;
    border: 1px solid var(--cool-gray);
}

table.wikitable th {
    background-color: var(--ice-blue);
    color: white;
}

table.wikitable tr:hover {
    background-color: var(--frost-blue);
}

/* Code blocks */
pre, code {
    background-color: var(--frost-blue);
    border: 1px solid var(--cool-gray);
}

/* Footer */
#footer {
    background-color: var(--frost-blue);
    border-top: 3px solid var(--ice-blue);
    color: var(--dark-gray);
}

#footer a {
    color: var(--steel-blue);
}

#footer a:hover {
    color: var(--warm-coral);
}

/* Search box */
#searchInput {
    border: 1px solid var(--cool-gray);
    background-color: white;
}

#searchInput:focus {
    border-color: var(--ice-blue);
    box-shadow: 0 0 5px rgba(74, 144, 164, 0.3);
}

/* ================================================
   Additional fixes for header text visibility
   ================================================ */

/* Wiki name/site title in top left - make it light on dark background */
#p-logo a,
#p-logo-text a,
.mw-wiki-title,
#sitelogo-text {
    color: var(--frost-blue) !important;
}

#p-logo a:hover,
#p-logo-text a:hover {
    color: var(--soft-orange) !important;
}

/* Username in top right corner - make it light */
#user-tools .mw-ui-icon + span,
#user-tools #pt-userpage a,
#personal h2,
#personal .mw-portlet-heading {
    color: var(--frost-blue) !important;
}

#user-tools #pt-userpage a:hover {
    color: var(--soft-orange) !important;
}

/* Dropdown menu from username - dark text on light background */
#personal .mw-portlet-body,
#personal ul,
#user-tools .dropdown,
#personal .vector-menu-content {
    background-color: white;
    border: 1px solid var(--cool-gray);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}

#personal .mw-portlet-body a,
#personal ul a,
#user-tools .dropdown a {
    color: var(--steel-blue) !important;
    background-color: white;
}

#personal .mw-portlet-body a:hover,
#personal ul a:hover,
#user-tools .dropdown a:hover {
    color: var(--warm-coral) !important;
    background-color: var(--frost-blue);
}