MediaWiki:Common.css: Difference between revisions

From BezelBase
Update templates and main page
Update templates and main page
Line 1: Line 1:
/* BezelBase — clean reference site, not a Wikipedia clone */
/* BezelBase — clean reference site with deep green accents */


/* ===== Typography ===== */
/* ===== Typography ===== */
Line 15: Line 15:
     letter-spacing: -0.02em;
     letter-spacing: -0.02em;
     border-bottom: none !important;
     border-bottom: none !important;
     color: #111;
     color: #1b3a2d;
}
}


/* ===== Headings ===== */
/* ===== Headings — deep green accents ===== */
.mw-body-content h2 {
.mw-body-content h2 {
     font-size: 1.5em;
     font-size: 1.5em;
     font-weight: 600;
     font-weight: 600;
     border-bottom: 2px solid #e8e8e8;
     border-bottom: 2px solid #2d5e3f;
     padding-bottom: 0.3em;
     padding-bottom: 0.3em;
     margin-top: 2em;
     margin-top: 2em;
     color: #111;
     color: #1b3a2d;
}
}


Line 31: Line 31:
     font-size: 1.2em;
     font-size: 1.2em;
     font-weight: 600;
     font-weight: 600;
     border-bottom: 1px solid #f0f0f0;
     border-bottom: 1px solid #d4e0d8;
     padding-bottom: 0.2em;
     padding-bottom: 0.2em;
     margin-top: 1.5em;
     margin-top: 1.5em;
     color: #222;
     color: #1b3a2d;
}
}


/* ===== Links — dark blue, no underline until hover ===== */
/* ===== Links — dark green ===== */
.mw-body-content a:not(.new) {
.mw-body-content a:not(.new) {
     color: #1a5276;
     color: #1b5e3b;
     text-decoration: none;
     text-decoration: none;
}
}
.mw-body-content a:not(.new):hover {
.mw-body-content a:not(.new):hover {
     color: #0d2f47;
     color: #0f3d25;
     text-decoration: underline;
     text-decoration: underline;
}
}
/* Red links for missing pages */
.mw-body-content a.new {
.mw-body-content a.new {
     color: #b33;
     color: #b33;
}
}


/* ===== Header bar — dark, minimal ===== */
/* ===== Header bar — light with green accent ===== */
.vector-header,
.vector-header,
.mw-header {
.mw-header {
     background: #111 !important;
     background: #f7f9f7 !important;
     border-bottom: none !important;
     border-bottom: 2px solid #2d5e3f !important;
}
.vector-header .mw-logo-wordmark,
.vector-header a {
    color: #fff !important;
}
}
 
/* Site name — dark green */
/* Site name in header */
.mw-logo-wordmark {
.mw-logo-wordmark {
     font-weight: 700 !important;
     font-weight: 700 !important;
     letter-spacing: 0.05em !important;
     letter-spacing: 0.05em !important;
    color: #1b3a2d !important;
}
.vector-header a {
    color: #1b3a2d !important;
}
.vector-header a:hover {
    color: #0f3d25 !important;
}
}


Line 71: Line 72:
.vector-search-box-input {
.vector-search-box-input {
     border-radius: 6px !important;
     border-radius: 6px !important;
     border: 1px solid #ddd !important;
     border: 1px solid #c8d6cc !important;
}
.vector-search-box-input:focus {
    border-color: #2d5e3f !important;
    box-shadow: 0 0 0 1px #2d5e3f33 !important;
}
}


/* ===== Content area — wider, cleaner ===== */
/* ===== Content area ===== */
.mw-body {
.mw-body {
     max-width: 960px;
     max-width: 960px;
Line 80: Line 85:
}
}


/* ===== Tables — cleaner borders ===== */
/* ===== Tables ===== */
.wikitable {
.wikitable {
     border-collapse: collapse;
     border-collapse: collapse;
     border: 1px solid #ddd;
     border: 1px solid #d4e0d8;
     background: #fff;
     background: #fff;
     font-size: 0.92em;
     font-size: 0.92em;
}
}
.wikitable th {
.wikitable th {
     background: #f5f5f5;
     background: #eef3ef;
     font-weight: 600;
     font-weight: 600;
     padding: 0.5em 0.8em;
     padding: 0.5em 0.8em;
     border: 1px solid #ddd;
     border: 1px solid #d4e0d8;
     text-align: left;
     text-align: left;
    color: #1b3a2d;
}
}
.wikitable td {
.wikitable td {
     padding: 0.5em 0.8em;
     padding: 0.5em 0.8em;
     border: 1px solid #eee;
     border: 1px solid #e8ede9;
}
}
.wikitable tr:nth-child(even) {
.wikitable tr:nth-child(even) {
     background: #fafafa;
     background: #fafcfa;
}
}


/* ===== Images — clean borders ===== */
/* ===== Images ===== */
.thumb {
.thumb {
     border: none !important;
     border: none !important;
Line 108: Line 114:
}
}
.thumbinner {
.thumbinner {
     border: 1px solid #e0e0e0 !important;
     border: 1px solid #d4e0d8 !important;
     border-radius: 4px;
     border-radius: 4px;
     background: #fafafa !important;
     background: #fafcfa !important;
     padding: 4px !important;
     padding: 4px !important;
}
}
Line 124: Line 130:
     margin-bottom: 0.8em;
     margin-bottom: 0.8em;
     font-size: 0.85em;
     font-size: 0.85em;
     color: #666;
     color: #5a7a63;
}
}
.mw-parser-output > small:first-of-type a {
.mw-parser-output > small:first-of-type a {
     color: #1a5276;
     color: #1b5e3b;
}
}


/* ===== TOC — minimal ===== */
/* ===== TOC ===== */
.vector-toc {
.vector-toc {
     font-size: 0.88em;
     font-size: 0.88em;
}
.vector-toc .vector-toc-link:hover {
    color: #1b5e3b;
}
}


/* ===== Categories — subtle ===== */
/* ===== Categories ===== */
#catlinks {
#catlinks {
     background: #f8f8f8;
     background: #f3f7f4;
     border: 1px solid #eee;
     border: 1px solid #d4e0d8;
     border-radius: 4px;
     border-radius: 4px;
     padding: 0.5em 1em;
     padding: 0.5em 1em;
Line 145: Line 154:
}
}


/* ===== Footer — minimal ===== */
/* ===== Strip wiki UI ===== */
#footer {
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.82em;
}
 
/* ===== Strip wiki UI — make it look like a documentation site ===== */


/* Hide Discussion tab */
/* Hide Discussion tab */
#ca-talk {
#ca-talk,
li#ca-talk {
     display: none !important;
     display: none !important;
}
}


/* Hide View history */
/* Hide View history */
#ca-history {
#ca-history,
li#ca-history {
     display: none !important;
     display: none !important;
}
}


/* Hide View source for logged-out users */
/* Hide "Read" tab (redundant) */
body:not(.mw-user-logged-in) #ca-viewsource {
#ca-view,
li#ca-view {
     display: none !important;
     display: none !important;
}
}


/* Hide "Read" tab (redundant when others are gone) */
/* Hide "Reference" / namespace tab label — title is enough */
#ca-view {
#ca-nstab-reference,
#ca-nstab-main,
li#ca-nstab-reference,
li#ca-nstab-main {
     display: none !important;
     display: none !important;
}
}


/* Hide the entire tab bar divider line */
/* Hide View source for logged-out */
body:not(.mw-user-logged-in) #ca-viewsource,
body:not(.mw-user-logged-in) li#ca-viewsource {
    display: none !important;
}
 
/* Clean up tab bar */
.vector-page-toolbar {
.vector-page-toolbar {
    border-bottom: none !important;
}
nav.vector-menu-tabs {
    border-bottom: none !important;
}
.mw-body .vector-page-toolbar-container {
     border-bottom: none !important;
     border-bottom: none !important;
}
}


/* Hide Tools dropdown for anonymous users */
/* Hide Tools dropdown for anonymous */
body:not(.mw-user-logged-in) #vector-page-tools {
body:not(.mw-user-logged-in) #vector-page-tools {
     display: none !important;
     display: none !important;
}
}


/* Hide "Create account" for cleaner header — keep Log in */
/* Hide "Create account" */
body:not(.mw-user-logged-in) #pt-createaccount {
body:not(.mw-user-logged-in) #pt-createaccount,
body:not(.mw-user-logged-in) li#pt-createaccount {
     display: none !important;
     display: none !important;
}
}


/* Hide the namespace tab labels ("Reference", "Main Page") — page title is enough */
/* Hide categories for anonymous */
.vector-tab-noicon .mw-list-item:not(#ca-edit):not(#ca-ve-edit) {
body:not(.mw-user-logged-in) #catlinks {
     display: none !important;
     display: none !important;
}
}


/* Keep edit visible for logged-in users */
/* Hide sidebar hamburger for anonymous */
body.mw-user-logged-in #ca-edit,
body:not(.mw-user-logged-in) .vector-main-menu-landmark {
body.mw-user-logged-in #ca-ve-edit {
     display: none !important;
     display: list-item !important;
}
}


/* Hide categories for anonymous users */
/* ===== Footer — minimal ===== */
body:not(.mw-user-logged-in) #catlinks {
#footer {
     display: none !important;
    border-top: 1px solid #d4e0d8;
    text-align: center;
    padding: 1.5em 0;
    color: #999;
     font-size: 0.82em;
}
}
/* Hide "Content is available under..." footer clutter */
#footer-info-copyright {
#footer-info-copyright {
     display: none;
     display: none;
}
}
/* Hide "Privacy policy · About · Disclaimers" links */
#footer-places {
#footer-places {
     display: none;
     display: none;
}
}
/* Hide powered-by badges */
#footer-icons {
#footer-icons {
     display: none;
     display: none;
}
}


/* Simpler footer */
/* ===== External links ===== */
#footer {
    text-align: center;
    padding: 1em 0;
    opacity: 0.5;
}
 
/* Hide the left sidebar menu button hamburger for anon */
body:not(.mw-user-logged-in) .vector-main-menu-landmark {
    display: none !important;
}
 
/* ===== External link icon — subtle ===== */
.mw-parser-output a.external {
.mw-parser-output a.external {
     background: none !important;
     background: none !important;
Line 243: Line 249:
}
}


/* ===== Lists — tighter ===== */
/* ===== Lists ===== */
.mw-body-content ul, .mw-body-content ol {
.mw-body-content ul, .mw-body-content ol {
     margin: 0.5em 0;
     margin: 0.5em 0;
Line 254: Line 260:
/* ===== Blockquotes ===== */
/* ===== Blockquotes ===== */
.mw-body-content blockquote {
.mw-body-content blockquote {
     border-left: 3px solid #ddd;
     border-left: 3px solid #2d5e3f;
     margin: 1em 0;
     margin: 1em 0;
     padding: 0.5em 1em;
     padding: 0.5em 1em;

Revision as of 19:42, 14 April 2026

/* BezelBase — clean reference site with deep green accents */

/* ===== Typography ===== */
body, .mw-body, .mw-body-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
}

/* ===== Page title ===== */
.mw-page-title-main,
.mw-first-heading {
    font-weight: 700;
    font-size: 2em;
    letter-spacing: -0.02em;
    border-bottom: none !important;
    color: #1b3a2d;
}

/* ===== Headings — deep green accents ===== */
.mw-body-content h2 {
    font-size: 1.5em;
    font-weight: 600;
    border-bottom: 2px solid #2d5e3f;
    padding-bottom: 0.3em;
    margin-top: 2em;
    color: #1b3a2d;
}

.mw-body-content h3 {
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 1px solid #d4e0d8;
    padding-bottom: 0.2em;
    margin-top: 1.5em;
    color: #1b3a2d;
}

/* ===== Links — dark green ===== */
.mw-body-content a:not(.new) {
    color: #1b5e3b;
    text-decoration: none;
}
.mw-body-content a:not(.new):hover {
    color: #0f3d25;
    text-decoration: underline;
}
.mw-body-content a.new {
    color: #b33;
}

/* ===== Header bar — light with green accent ===== */
.vector-header,
.mw-header {
    background: #f7f9f7 !important;
    border-bottom: 2px solid #2d5e3f !important;
}
/* Site name — dark green */
.mw-logo-wordmark {
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: #1b3a2d !important;
}
.vector-header a {
    color: #1b3a2d !important;
}
.vector-header a:hover {
    color: #0f3d25 !important;
}

/* ===== Search box ===== */
.vector-search-box-input {
    border-radius: 6px !important;
    border: 1px solid #c8d6cc !important;
}
.vector-search-box-input:focus {
    border-color: #2d5e3f !important;
    box-shadow: 0 0 0 1px #2d5e3f33 !important;
}

/* ===== Content area ===== */
.mw-body {
    max-width: 960px;
    padding: 1.5em 2em;
}

/* ===== Tables ===== */
.wikitable {
    border-collapse: collapse;
    border: 1px solid #d4e0d8;
    background: #fff;
    font-size: 0.92em;
}
.wikitable th {
    background: #eef3ef;
    font-weight: 600;
    padding: 0.5em 0.8em;
    border: 1px solid #d4e0d8;
    text-align: left;
    color: #1b3a2d;
}
.wikitable td {
    padding: 0.5em 0.8em;
    border: 1px solid #e8ede9;
}
.wikitable tr:nth-child(even) {
    background: #fafcfa;
}

/* ===== Images ===== */
.thumb {
    border: none !important;
    background: none !important;
}
.thumbinner {
    border: 1px solid #d4e0d8 !important;
    border-radius: 4px;
    background: #fafcfa !important;
    padding: 4px !important;
}
.thumbcaption {
    font-size: 0.85em;
    color: #666;
    padding: 4px 6px;
}

/* ===== Breadcrumb ===== */
.mw-parser-output > small:first-of-type {
    display: block;
    margin-bottom: 0.8em;
    font-size: 0.85em;
    color: #5a7a63;
}
.mw-parser-output > small:first-of-type a {
    color: #1b5e3b;
}

/* ===== TOC ===== */
.vector-toc {
    font-size: 0.88em;
}
.vector-toc .vector-toc-link:hover {
    color: #1b5e3b;
}

/* ===== Categories ===== */
#catlinks {
    background: #f3f7f4;
    border: 1px solid #d4e0d8;
    border-radius: 4px;
    padding: 0.5em 1em;
    font-size: 0.85em;
    margin-top: 2em;
}

/* ===== Strip wiki UI ===== */

/* Hide Discussion tab */
#ca-talk,
li#ca-talk {
    display: none !important;
}

/* Hide View history */
#ca-history,
li#ca-history {
    display: none !important;
}

/* Hide "Read" tab (redundant) */
#ca-view,
li#ca-view {
    display: none !important;
}

/* Hide "Reference" / namespace tab label — title is enough */
#ca-nstab-reference,
#ca-nstab-main,
li#ca-nstab-reference,
li#ca-nstab-main {
    display: none !important;
}

/* Hide View source for logged-out */
body:not(.mw-user-logged-in) #ca-viewsource,
body:not(.mw-user-logged-in) li#ca-viewsource {
    display: none !important;
}

/* Clean up tab bar */
.vector-page-toolbar {
    border-bottom: none !important;
}
nav.vector-menu-tabs {
    border-bottom: none !important;
}
.mw-body .vector-page-toolbar-container {
    border-bottom: none !important;
}

/* Hide Tools dropdown for anonymous */
body:not(.mw-user-logged-in) #vector-page-tools {
    display: none !important;
}

/* Hide "Create account" */
body:not(.mw-user-logged-in) #pt-createaccount,
body:not(.mw-user-logged-in) li#pt-createaccount {
    display: none !important;
}

/* Hide categories for anonymous */
body:not(.mw-user-logged-in) #catlinks {
    display: none !important;
}

/* Hide sidebar hamburger for anonymous */
body:not(.mw-user-logged-in) .vector-main-menu-landmark {
    display: none !important;
}

/* ===== Footer — minimal ===== */
#footer {
    border-top: 1px solid #d4e0d8;
    text-align: center;
    padding: 1.5em 0;
    color: #999;
    font-size: 0.82em;
}
#footer-info-copyright {
    display: none;
}
#footer-places {
    display: none;
}
#footer-icons {
    display: none;
}

/* ===== External links ===== */
.mw-parser-output a.external {
    background: none !important;
    padding-right: 0 !important;
}
.mw-parser-output a.external::after {
    content: " \2197";
    font-size: 0.75em;
    color: #999;
}

/* ===== Lists ===== */
.mw-body-content ul, .mw-body-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}
.mw-body-content li {
    margin: 0.3em 0;
}

/* ===== Blockquotes ===== */
.mw-body-content blockquote {
    border-left: 3px solid #2d5e3f;
    margin: 1em 0;
    padding: 0.5em 1em;
    color: #444;
    font-style: italic;
}