MediaWiki:Common.css: Difference between revisions

From PAWS Lab
Jump to navigation Jump to search
Add PAWS navy/gold theme for Vector header + sidebar
Clean unified theme: light text on navy sidebar and footer
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================================
/* =======================================================
  * PAWS Lab Wiki — site-wide CSS (Common.css)
  * PAWS Lab Wiki -- Common.css
* Applies to all skins. Edit via MediaWiki:Common.css page.
  * ======================================================== */
  * ============================================================ */
 
/* --- Image sizing --- */
.mw-parser-output img { max-width: 100%; height: auto; }
.mw-parser-output img { max-width: 100%; height: auto; }
.mw-parser-output .thumb,
.mw-parser-output .thumb,.mw-parser-output .thumbinner,.mw-parser-output figure { max-width: 100%; box-sizing: border-box; }
.mw-parser-output .thumbinner,
.mw-parser-output figure { max-width: 100%; box-sizing: border-box; }
.mw-parser-output table { max-width: 100%; }
.mw-parser-output table { max-width: 100%; }
.mw-parser-output pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.mw-parser-output pre { max-width: 100%; overflow-x: auto; white-space: pre; }
@media (max-width: 720px) {
:root { --paws-navy: #1d2a56; --paws-gold: #cdb87d; --paws-gold-hover: #e0cf9d; --paws-white: #ffffff; }
    .mw-parser-output .thumb.tright,
body.skin-vector { background: var(--paws-navy) !important; }
    .mw-parser-output .thumb.tleft { float: none; margin-left: auto; margin-right: auto; }
body.skin-vector .mw-body,body.skin-vector #content { background: var(--paws-white); }
}
body.skin-vector #mw-page-base,body.skin-vector #mw-head-base { background: var(--paws-navy) !important; background-image: none !important; }
 
body.skin-vector #mw-head-base { border-bottom: 3px solid var(--paws-gold); }
/* ============================================================
body.skin-vector #mw-head { background: transparent; }
* PAWS palette
body.skin-vector #p-personal a { color: var(--paws-white) !important; }
* ============================================================ */
body.skin-vector #p-personal a:hover { color: var(--paws-gold-hover) !important; text-decoration: underline; }
:root {
body.skin-vector .vector-menu-tabs li { background-color: rgba(255,255,255,0.06); background-image: none; }
    --paws-navy: #1d2a56;
body.skin-vector .vector-menu-tabs li a, body.skin-vector .vector-menu-tabs li a span { color: var(--paws-white) !important; }
    --paws-navy-dark: #131c3a;
body.skin-vector .vector-menu-tabs li.selected { background: var(--paws-white) !important; }
    --paws-gold: #cdb87d;
body.skin-vector .vector-menu-tabs li.selected a, body.skin-vector .vector-menu-tabs li.selected a span { color: var(--paws-navy) !important; }
    --paws-gold-hover: #e0cf9d;
body.skin-vector .vector-menu-tabs li:hover:not(.selected) { background-color: rgba(205,184,125,0.2); }
    --paws-white: #ffffff;
body.skin-vector #p-cactions .vector-menu-heading, body.skin-vector #p-cactions .vector-menu-heading-label { color: var(--paws-white) !important; }
}
body.skin-vector #p-cactions .vector-menu-heading::after { filter: brightness(0) invert(1) opacity(0.9); }
 
body.skin-vector #p-cactions .vector-menu-content { background: var(--paws-navy) !important; border: 1px solid var(--paws-gold) !important; border-radius: 3px; }
/* ---- Top header strip (Vector 2010) ---- */
body.skin-vector #p-cactions .vector-menu-content a, body.skin-vector #p-cactions .vector-menu-content a span { color: var(--paws-white) !important; }
body.skin-vector #mw-page-base,
body.skin-vector #p-cactions .vector-menu-content a:hover, body.skin-vector #p-cactions .vector-menu-content a:hover span { color: var(--paws-gold-hover) !important; }
body.skin-vector-legacy #mw-page-base {
body.skin-vector .vector-search-box-input, body.skin-vector #searchInput { background: var(--paws-white) !important; color: #222 !important; border: 1px solid var(--paws-gold) !important; border-radius: 3px; padding: 3px 8px; }
    background: var(--paws-navy);
body.skin-vector .vector-search-box-input::placeholder { color: #666; }
    background-image: none;
body.skin-vector #mw-panel, body.skin-vector .vector-legacy-sidebar { background: var(--paws-navy) !important; padding-top: 0.5em; min-height: 100vh; }
}
body.skin-vector #p-logo { height: auto !important; width: 100% !important; padding: 8px 10px !important; margin: 0 !important; background: transparent !important; }
body.skin-vector #mw-head-base,
body.skin-vector #p-logo a.mw-wiki-logo { display: block !important; width: 100% !important; height: 50px !important; background-size: contain !important; background-position: left center !important; background-repeat: no-repeat !important; background-color: transparent !important; }
body.skin-vector-legacy #mw-head-base {
body.skin-vector #mw-panel .vector-menu-heading, body.skin-vector #mw-panel h3 { color: var(--paws-gold) !important; border-bottom: 1px solid rgba(205,184,125,0.25); padding-bottom: 4px; margin-bottom: 6px; text-transform: uppercase; font-size: 0.75em; letter-spacing: 0.05em; font-weight: bold; background: transparent !important; }
    background: var(--paws-navy);
body.skin-vector #mw-panel a, body.skin-vector #mw-panel .mw-list-item a, body.skin-vector #mw-panel .mw-list-item a span { color: var(--paws-white) !important; }
    border-bottom: 3px solid var(--paws-gold);
body.skin-vector #mw-panel a:visited, body.skin-vector #mw-panel .mw-list-item a:visited { color: #d4d8e8 !important; }
}
body.skin-vector #mw-panel a:hover, body.skin-vector #mw-panel .mw-list-item a:hover, body.skin-vector #mw-panel .mw-list-item a:hover span { color: var(--paws-gold-hover) !important; text-decoration: underline; }
body.skin-vector #mw-head,
body.skin-vector #content { border-left: 1px solid rgba(205,184,125,0.3); }
body.skin-vector-legacy #mw-head { background: transparent; }
body.skin-vector #footer { background: transparent !important; border-top: 3px solid var(--paws-gold); padding: 2em 1.5em 3em 1.5em; }
 
body.skin-vector #footer, body.skin-vector #footer li { color: var(--paws-white) !important; }
/* ---- Personal links (top-right) ---- */
body.skin-vector #footer a { color: var(--paws-gold) !important; }
body.skin-vector #p-personal,
body.skin-vector #footer a:hover { color: var(--paws-gold-hover) !important; text-decoration: underline; }
body.skin-vector-legacy #p-personal { background: transparent; }
body.skin-vector #p-personal a,
body.skin-vector-legacy #p-personal a { color: var(--paws-white); }
body.skin-vector #p-personal a:hover,
body.skin-vector-legacy #p-personal a:hover {
    color: var(--paws-gold-hover);
    text-decoration: underline;
}
body.skin-vector #pt-anonuserpage,
body.skin-vector-legacy #pt-anonuserpage { color: var(--paws-white); }
 
/* ---- Namespace + view tabs ---- */
body.skin-vector .vector-menu-tabs,
body.skin-vector-legacy .vector-menu-tabs,
body.skin-vector #left-navigation,
body.skin-vector-legacy #left-navigation,
body.skin-vector #right-navigation,
body.skin-vector-legacy #right-navigation { background: transparent; }
body.skin-vector .vector-menu-tabs li,
body.skin-vector-legacy .vector-menu-tabs li {
    background-image: none;
    background-color: rgba(255, 255, 255, 0.06);
}
body.skin-vector .vector-menu-tabs li a,
body.skin-vector-legacy .vector-menu-tabs li a { color: var(--paws-white); }
body.skin-vector .vector-menu-tabs li.selected,
body.skin-vector-legacy .vector-menu-tabs li.selected { background: var(--paws-white); }
body.skin-vector .vector-menu-tabs li.selected a,
body.skin-vector-legacy .vector-menu-tabs li.selected a { color: var(--paws-navy); }
body.skin-vector .vector-menu-tabs li:hover,
body.skin-vector-legacy .vector-menu-tabs li:hover {
    background-color: rgba(205, 184, 125, 0.15);
}
 
/* ---- Search box ---- */
body.skin-vector #p-search,
body.skin-vector-legacy #p-search { background: transparent; }
body.skin-vector #searchInput,
body.skin-vector-legacy #searchInput {
    border: 1px solid var(--paws-gold);
    border-radius: 3px;
}
body.skin-vector #searchInput:focus,
body.skin-vector-legacy #searchInput:focus {
    border-color: var(--paws-gold-hover);
    outline: none;
    box-shadow: 0 0 0 2px rgba(205, 184, 125, 0.4);
}
 
/* ---- Left sidebar panel ---- */
body.skin-vector #mw-panel,
body.skin-vector-legacy #mw-panel {
    background: var(--paws-navy-dark);
    padding-top: 1em;
}
body.skin-vector #mw-panel .portal h3,
body.skin-vector-legacy #mw-panel .portal h3,
body.skin-vector #mw-panel .vector-menu-heading,
body.skin-vector-legacy #mw-panel .vector-menu-heading {
    color: var(--paws-gold);
    border-bottom: 1px solid rgba(205, 184, 125, 0.25);
    padding-bottom: 4px;
    margin-bottom: 6px;
}
body.skin-vector #mw-panel a,
body.skin-vector-legacy #mw-panel a {
body.skin-vector  
body.skin-vector-legacy #mw-panel a:visited { color: #d4d8e8; }
body
body.skin-vector-legacy #mw-pane
    color: var(--paws-gold-hover);
    text-decoration: underli
}
 
/* ---- Logo container ---- */
body.skin-vec
body.skin-vector-legacy #p-logo { background-color: transpar
 
/* ---- Content border cohesion ---- */
body.skin-vector #content
 
 
/* ---- Footer touch-up -
body.skin-vector #footer,
body.skin-vector-legacy #foote
 
/* =====================
* Vector 2022 support (in cas
* ============================================================ */
bo
    background: var(--paws-navy);
    border
}
body.skin-vector-2022 .vector-header-container a { color: var(--paws-white);
body.skin-vector-2022 .vect

Latest revision as of 19:24, 22 July 2026

/* =======================================================
 * PAWS Lab Wiki -- Common.css
 * ======================================================== */
.mw-parser-output img { max-width: 100%; height: auto; }
.mw-parser-output .thumb,.mw-parser-output .thumbinner,.mw-parser-output figure { max-width: 100%; box-sizing: border-box; }
.mw-parser-output table { max-width: 100%; }
.mw-parser-output pre { max-width: 100%; overflow-x: auto; white-space: pre; }
:root { --paws-navy: #1d2a56; --paws-gold: #cdb87d; --paws-gold-hover: #e0cf9d; --paws-white: #ffffff; }
body.skin-vector { background: var(--paws-navy) !important; }
body.skin-vector .mw-body,body.skin-vector #content { background: var(--paws-white); }
body.skin-vector #mw-page-base,body.skin-vector #mw-head-base { background: var(--paws-navy) !important; background-image: none !important; }
body.skin-vector #mw-head-base { border-bottom: 3px solid var(--paws-gold); }
body.skin-vector #mw-head { background: transparent; }
body.skin-vector #p-personal a { color: var(--paws-white) !important; }
body.skin-vector #p-personal a:hover { color: var(--paws-gold-hover) !important; text-decoration: underline; }
body.skin-vector .vector-menu-tabs li { background-color: rgba(255,255,255,0.06); background-image: none; }
body.skin-vector .vector-menu-tabs li a, body.skin-vector .vector-menu-tabs li a span { color: var(--paws-white) !important; }
body.skin-vector .vector-menu-tabs li.selected { background: var(--paws-white) !important; }
body.skin-vector .vector-menu-tabs li.selected a, body.skin-vector .vector-menu-tabs li.selected a span { color: var(--paws-navy) !important; }
body.skin-vector .vector-menu-tabs li:hover:not(.selected) { background-color: rgba(205,184,125,0.2); }
body.skin-vector #p-cactions .vector-menu-heading, body.skin-vector #p-cactions .vector-menu-heading-label { color: var(--paws-white) !important; }
body.skin-vector #p-cactions .vector-menu-heading::after { filter: brightness(0) invert(1) opacity(0.9); }
body.skin-vector #p-cactions .vector-menu-content { background: var(--paws-navy) !important; border: 1px solid var(--paws-gold) !important; border-radius: 3px; }
body.skin-vector #p-cactions .vector-menu-content a, body.skin-vector #p-cactions .vector-menu-content a span { color: var(--paws-white) !important; }
body.skin-vector #p-cactions .vector-menu-content a:hover, body.skin-vector #p-cactions .vector-menu-content a:hover span { color: var(--paws-gold-hover) !important; }
body.skin-vector .vector-search-box-input, body.skin-vector #searchInput { background: var(--paws-white) !important; color: #222 !important; border: 1px solid var(--paws-gold) !important; border-radius: 3px; padding: 3px 8px; }
body.skin-vector .vector-search-box-input::placeholder { color: #666; }
body.skin-vector #mw-panel, body.skin-vector .vector-legacy-sidebar { background: var(--paws-navy) !important; padding-top: 0.5em; min-height: 100vh; }
body.skin-vector #p-logo { height: auto !important; width: 100% !important; padding: 8px 10px !important; margin: 0 !important; background: transparent !important; }
body.skin-vector #p-logo a.mw-wiki-logo { display: block !important; width: 100% !important; height: 50px !important; background-size: contain !important; background-position: left center !important; background-repeat: no-repeat !important; background-color: transparent !important; }
body.skin-vector #mw-panel .vector-menu-heading, body.skin-vector #mw-panel h3 { color: var(--paws-gold) !important; border-bottom: 1px solid rgba(205,184,125,0.25); padding-bottom: 4px; margin-bottom: 6px; text-transform: uppercase; font-size: 0.75em; letter-spacing: 0.05em; font-weight: bold; background: transparent !important; }
body.skin-vector #mw-panel a, body.skin-vector #mw-panel .mw-list-item a, body.skin-vector #mw-panel .mw-list-item a span { color: var(--paws-white) !important; }
body.skin-vector #mw-panel a:visited, body.skin-vector #mw-panel .mw-list-item a:visited { color: #d4d8e8 !important; }
body.skin-vector #mw-panel a:hover, body.skin-vector #mw-panel .mw-list-item a:hover, body.skin-vector #mw-panel .mw-list-item a:hover span { color: var(--paws-gold-hover) !important; text-decoration: underline; }
body.skin-vector #content { border-left: 1px solid rgba(205,184,125,0.3); }
body.skin-vector #footer { background: transparent !important; border-top: 3px solid var(--paws-gold); padding: 2em 1.5em 3em 1.5em; }
body.skin-vector #footer, body.skin-vector #footer li { color: var(--paws-white) !important; }
body.skin-vector #footer a { color: var(--paws-gold) !important; }
body.skin-vector #footer a:hover { color: var(--paws-gold-hover) !important; text-decoration: underline; }