MediaWiki:Common.css

Revision as of 11:42, 12 February 2026 by Admin (talk | contribs)

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.
/* ============================================================
   --- BORDERCONNECT MODERN WIKI THEME (TEAL BRANDING) ---
   ============================================================ */

:root {
    --bc-blue: #266065;        /* BRAND COLOR: Teal */
    --bc-blue-dark: #163a3d;   /* DARKER SHADE: Deep Green/Slate */
    --bc-accent: #eef5f6;      /* Light background */
    --bc-text: #2c3e50;
    --bc-text-muted: #546e7a;
    --bc-bg-page: #f4f7f9;
    --bc-radius: 8px;
    --bc-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --bc-shadow-hover: 0 10px 20px rgba(0,0,0,0.12);
}

/* Global Wrapper */
.bc-wrap {
    max-width: 1240px;
    margin: 0 auto;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--bc-text);
    line-height: 1.6;
    background-color: var(--bc-bg-page);
    padding: 30px;
    border-radius: var(--bc-radius);
}

/* --- HERO SECTION --- */
.bc-hero {
    background: linear-gradient(120deg, var(--bc-blue) 0%, var(--bc-blue-dark) 100%);
    color: white;
    padding: 60px 30px;
    text-align: center;
    border-radius: var(--bc-radius);
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(38, 96, 101, 0.25); 
    border-bottom: 6px solid rgba(0,0,0,0.15);
}

.bc-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
    border: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- GRID & LAYOUT SYSTEM --- */
.bc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.bc-2col {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start; 
}

.bc-2col > .bc-card {
    flex: 1;
    min-width: 300px; 
}

/* --- CARDS --- */
.bc-card {
    background: white;
    border: none; 
    border-top: 5px solid var(--bc-blue);
    border-radius: var(--bc-radius);
    padding: 30px;
    height: 100%;
    box-sizing: border-box;
    box-shadow: var(--bc-shadow);
}

.bc-card h2 {
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bc-blue);
    border-bottom: 2px solid var(--bc-accent);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.bc-subtle {
    color: var(--bc-text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* --- FEATURED COMPONENTS --- */
.bc-screenshot-frame {
    box-shadow: var(--bc-shadow) !important;
    border-radius: var(--bc-radius) !important;
    overflow: hidden !important;
    border: 1px solid #e1e8eb !important;
    background: #fff !important;
    line-height: 0 !important;
}

/* ============================================================
   --- TABLE OF CONTENTS (TOC) STYLING ---
   ============================================================ */
html body .mw-parser-output #toc,
html body .vector-toc {
    display: inline-block !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 350px !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    margin-bottom: 25px !important;
    background-color: #ffffff !important;
    border: 1px solid #e1e8eb !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

/* ============================================================
   --- DARK MODE "HARD OVERRIDE" --- 
   ============================================================ */
html.skin-theme-clientpref-night {
    --bc-blue: #4db6ac !important;
    --bc-text: #e0e0e0 !important;
}

html.skin-theme-clientpref-night .bc-wrap {
    background-color: #121212 !important; 
    color: #e0e0e0 !important;
}

html.skin-theme-clientpref-night .bc-card {
    background-color: #1e1e1e !important; 
    border: 1px solid #333 !important;
    border-top: 5px solid #4db6ac !important; 
}

/* Featured Card Dark Mode Override */
html.skin-theme-clientpref-night .bc-featured-card {
    background: linear-gradient(135deg, #0d1a1b 0%, #121212 100%) !important;
    border: 1px solid #2a3d40 !important;
}

html.skin-theme-clientpref-night .bc-featured-card p,
html.skin-theme-clientpref-night .bc-featured-card .bc-subtle {
    color: #cfd8dc !important;
}

/* H2 Underline Fix for Dark Mode */
html.skin-theme-clientpref-night .mw-parser-output h2 {
    border-bottom: 1px solid #333 !important;
}

/* --- INTERACTIVE DIMMING (DARK MODE) --- */
html.skin-theme-clientpref-night .thumbimage,
html.skin-theme-clientpref-night .bc-screenshot-frame img,
html.skin-theme-clientpref-night .bc-card img {
    filter: brightness(0.7) contrast(1.1) !important;
    transition: filter 0.3s ease !important;
}

html.skin-theme-clientpref-night .thumbimage:hover,
html.skin-theme-clientpref-night .bc-screenshot-frame:hover img,
html.skin-theme-clientpref-night .bc-card img:hover {
    filter: brightness(1) contrast(1) !important;
}

/* ============================================================
   --- MOBILE OPTIMIZATIONS ---
   ============================================================ */
@media screen and (max-width: 768px) {
    .bc-wrap {
        padding: 10px 0 !important;        
        width: 100% !important;
        background: transparent !important; 
    }

    /* Fix the huge space underneath contents selector */
    html body .mw-parser-output #toc,
    html body .vector-toc {
        display: block !important;
        width: 95% !important;
        margin: 0 auto 10px auto !important; 
        max-width: 100% !important;
    }

    /* Kill Ghost Spacing after TOC */
    .mw-parser-output > #toc + p,
    .mw-parser-output > .vector-toc + p,
    .mw-parser-output > #toc + br,
    .mw-parser-output > #toc + p.mw-empty-elt {
        display: none !important;
    }

    .bc-grid, .bc-2col, .bc-btngrid {
        display: flex !important;
        flex-direction: column !important;
    }

    .bc-card {
        padding: 25px 20px !important;
        border-radius: 0 !important; 
        box-shadow: none !important; 
    }

    .bc-screenshot-frame {
        float: none !important;
        margin: 0 0 20px 0 !important;
        width: 100% !important;
    }
}