MediaWiki:Common.css: Difference between revisions

From BezelBase
Update templates and main page
Auto-deploy CSS update
Tag: Manual revert
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
body, .mw-body, .mw-body-content {
body, .mw-body, .mw-body-content {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     line-height: 1.7;
     line-height: 1.5;
     color: #1a1a1a;
     color: #1a1a1a;
}
/* Override Vector 2022's 0.875rem (14px) body text */
.vector-body,
.mw-parser-output,
.mw-body-content {
    font-size: 1rem !important;
}
/* Tighten paragraph spacing */
.mw-body-content p {
    margin: 0.4em 0;
}
}


Line 23: Line 33:
     font-weight: 600;
     font-weight: 600;
     border-bottom: 2px solid #2d5e3f;
     border-bottom: 2px solid #2d5e3f;
     padding-bottom: 0.3em;
     padding-bottom: 0.2em;
     margin-top: 2em;
     margin-top: 0.8em;
    margin-bottom: 0.2em;
     color: #1b3a2d;
     color: #1b3a2d;
}
}
Line 32: Line 43:
     font-weight: 600;
     font-weight: 600;
     border-bottom: 1px solid #d4e0d8;
     border-bottom: 1px solid #d4e0d8;
     padding-bottom: 0.2em;
     padding-bottom: 0.15em;
     margin-top: 1.5em;
     margin-top: 0.7em;
    margin-bottom: 0.15em;
     color: #1b3a2d;
     color: #1b3a2d;
}
.mw-body-content h4 {
    margin-top: 0.6em;
    margin-bottom: 0.15em;
}
}


Line 87: Line 104:
}
}
.mw-body {
.mw-body {
     padding: 1.5em 0;
     padding: 0.8em 0;
}
}
/* Disable the limited-width feature that offsets content */
/* Disable the limited-width feature that offsets content */
Line 157: Line 174:
.mw-parser-output > small:first-of-type {
.mw-parser-output > small:first-of-type {
     display: block;
     display: block;
     margin-bottom: 0.8em;
     margin-bottom: 0.4em;
     font-size: 0.85em;
     font-size: 0.85em;
     color: #5a7a63;
     color: #5a7a63;
Line 195: Line 212:
     padding: 0.5em 1em;
     padding: 0.5em 1em;
     font-size: 0.85em;
     font-size: 0.85em;
     margin-top: 2em;
     margin-top: 1.2em;
}
}


Line 272: Line 289:
     border-top: 1px solid #d4e0d8;
     border-top: 1px solid #d4e0d8;
     text-align: center;
     text-align: center;
     padding: 1.5em 0;
     padding: 1em 0;
     color: #999;
     color: #999;
     font-size: 0.82em;
     font-size: 0.82em;
Line 299: Line 316:
/* ===== Lists ===== */
/* ===== Lists ===== */
.mw-body-content ul, .mw-body-content ol {
.mw-body-content ul, .mw-body-content ol {
     margin: 0.5em 0;
     margin: 0.3em 0;
     padding-left: 1.5em;
     padding-left: 1.5em;
}
}
.mw-body-content li {
.mw-body-content li {
     margin: 0.3em 0;
     margin: 0.15em 0;
}
 
/* ===== Remove extra spacing from pandoc span anchors ===== */
/* Only target empty span anchors, not headline spans */
.mw-body-content > span[id]:empty,
.mw-body-content p + span[id]:empty {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}
}


Line 309: Line 337:
.mw-body-content blockquote {
.mw-body-content blockquote {
     border-left: 3px solid #2d5e3f;
     border-left: 3px solid #2d5e3f;
     margin: 1em 0;
     margin: 0.6em 0;
     padding: 0.5em 1em;
     padding: 0.5em 1em;
     color: #444;
     color: #444;
     font-style: italic;
     font-style: italic;
}
}

Latest revision as of 03:34, 28 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.5;
    color: #1a1a1a;
}
/* Override Vector 2022's 0.875rem (14px) body text */
.vector-body,
.mw-parser-output,
.mw-body-content {
    font-size: 1rem !important;
}
/* Tighten paragraph spacing */
.mw-body-content p {
    margin: 0.4em 0;
}

/* ===== 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.2em;
    margin-top: 0.8em;
    margin-bottom: 0.2em;
    color: #1b3a2d;
}

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

.mw-body-content h4 {
    margin-top: 0.6em;
    margin-bottom: 0.15em;
}

/* ===== 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 — centered, TOC as left sidebar ===== */
/* Let Vector 2022 keep its grid but widen + center it */
.mw-page-container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 1em !important;
}
.mw-body {
    padding: 0.8em 0;
}
/* Disable the limited-width feature that offsets content */
.vector-feature-limited-width-clientpref-1 .mw-content-container,
.vector-feature-limited-width-content-enabled .mw-content-container {
    max-width: none !important;
}
/* Header centered */
.vector-header-container {
    max-width: 1100px !important;
    margin: 0 auto !important;
}

/* ===== TOC sidebar — clean, no overlap ===== */
.vector-column-start {
    width: 200px !important;
    min-width: 200px !important;
}
/* Prevent TOC from overlapping content */
.vector-toc {
    position: sticky;
    top: 1em;
}
.vector-sidebar-container-no-toc ~ .mw-content-container {
    margin-left: 0 !important;
}

/* ===== 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.4em;
    font-size: 0.85em;
    color: #5a7a63;
}
.mw-parser-output > small:first-of-type a {
    color: #1b5e3b;
}

/* ===== TOC — dark green links ===== */
.vector-toc {
    font-size: 0.88em;
}
.vector-toc a,
.vector-toc .vector-toc-link,
.vector-toc-text,
.sidebar-toc a,
.sidebar-toc .sidebar-toc-link {
    color: #1b5e3b !important;
}
.vector-toc a:hover,
.vector-toc .vector-toc-link:hover,
.sidebar-toc a:hover {
    color: #0f3d25 !important;
}
/* Active TOC item */
.vector-toc .vector-toc-list-item-active > .vector-toc-link,
.sidebar-toc .sidebar-toc-list-item-active > a {
    color: #1b3a2d !important;
    font-weight: 600;
}

/* ===== Categories ===== */
#catlinks {
    background: #f3f7f4;
    border: 1px solid #d4e0d8;
    border-radius: 4px;
    padding: 0.5em 1em;
    font-size: 0.85em;
    margin-top: 1.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 */
#vector-page-tools {
    display: none !important;
}
/* Hide the entire page toolbar row (empty after removing all tabs) */
.vector-page-toolbar {
    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: 1em 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.3em 0;
    padding-left: 1.5em;
}
.mw-body-content li {
    margin: 0.15em 0;
}

/* ===== Remove extra spacing from pandoc span anchors ===== */
/* Only target empty span anchors, not headline spans */
.mw-body-content > span[id]:empty,
.mw-body-content p + span[id]:empty {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}

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