MediaWiki:Common.css

Revision as of 16:49, 22 January 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 Main Page Portal Styles
   Scoped to .bc-wrap so it won't impact other wiki pages.
   ============================================================ */

.bc-wrap {
    max-width: 1200px;
    margin: 0 auto;

    /* Typography baseline (consistency) */
    font-size: 15px;
    line-height: 1.55;
}

/* Ensure portal content inherits the same base sizing */
.bc-wrap .bc-card,
.bc-wrap .bc-cleanlist,
.bc-wrap .bc-cleanlist ul,
.bc-wrap .bc-cleanlist ol,
.bc-wrap .bc-cleanlist li {
    font-size: inherit;
    line-height: inherit;
}

/* HERO */
.bc-hero {
    background: linear-gradient(135deg, #226065 0%, #1f4b4f 60%, #17373a 100%);
    border-radius: 16px;
    padding: 22px 22px 18px 22px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.bc-hero h1 {
    margin: 0 0 6px 0;
    font-size: 28px;
    line-height: 1.15;
    color: #fff;
}

.bc-hero p {
    margin: 0;
    opacity: .92;
    font-size: 15px;
    max-width: 900px;
}

.bc-hero .bc-meta {
    margin-top: 10px;
    font-size: 13px;
    opacity: .9;
}

.bc-hero .bc-kicker {
    font-size: 13px; /* normalized to match other small UI text */
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    margin-top: 10px;
}

/* Pills */
.bc-pillrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.bc-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
}

.bc-pill a {
    color: #fff !important;
    text-decoration: none;
}

.bc-pill:hover {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.22);
}

/* Cards + grids */
.bc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

@media (min-width: 980px) {
    .bc-grid { grid-template-columns: 1fr 1fr; }
}

.bc-2col {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin-top: 14px;
}

@media (min-width: 980px) {
    .bc-2col { grid-template-columns: 1fr 1fr; }
}

.bc-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 16px 16px 14px 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* Typography normalization inside portal */
.bc-card h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.25; /* consistent */
}

.bc-card h3 {
    margin: 14px 0 8px 0;
    font-size: 15px;
    line-height: 1.3; /* consistent */
}

/* Use the same base size for most body text, keep subtle slightly smaller */
.bc-subtle {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.bc-mini {
    font-size: 12px;
    line-height: 1.45;
    color: #666;
}

/* Ensure list text is consistent (many skins alter list sizes) */
.bc-wrap .bc-cleanlist,
.bc-wrap .bc-cleanlist li,
.bc-wrap .bc-cleanlist a,
.bc-wrap .bc-cleanlist p {
    font-size: 15px;
    line-height: 1.55;
}

/* Accent borders (keeps your color intent) */
.bc-accent-aci      { border-left: 6px solid #2563eb; } /* blue */
.bc-accent-ace      { border-left: 6px solid #dc2626; } /* red */
.bc-accent-ib       { border-left: 6px solid #7c3aed; } /* purple */
.bc-accent-soft     { border-left: 6px solid #0f766e; } /* teal */
.bc-accent-ref      { border-left: 6px solid #334155; } /* slate */
.bc-accent-onboard  { border-left: 6px solid #f59e0b; } /* amber */

.bc-divider {
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: 14px 0;
}

/* Button grid */
.bc-btngrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

@media (min-width: 980px) {
    .bc-btngrid { grid-template-columns: 1fr 1fr; }
}

.bc-btn {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.10);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(0,0,0,.02) 100%);
    box-shadow: 0 6px 14px rgba(0,0,0,.06);
    text-decoration: none !important;
}

.bc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.bc-btn strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 2px;
}

.bc-btn span {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

/* Make lists inside bc sections tighter & cleaner */
.bc-cleanlist ul,
.bc-cleanlist ol {
    margin: 0;
    padding-left: 18px;
}

.bc-cleanlist li {
    margin: 6px 0;
}

/* Image container polish */
.bc-inlineimg {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

/* Slightly improve mp-box aesthetics without breaking existing layout */
.mp-box {
    border-radius: 10px;
}

/* Night mode support */
@media screen {
html.skin-theme-clientpref-night .bc-card {
    background-color: #171a1d;
    border-color: #3a3a3a;
}

html.skin-theme-clientpref-night .bc-subtle,
html.skin-theme-clientpref-night .bc-mini,
html.skin-theme-clientpref-night .bc-btn span {
    color: #cfcfcf;
}

html.skin-theme-clientpref-night .bc-btn {
    background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%);
    border-color: rgba(255,255,255,.12);
}

html.skin-theme-clientpref-night .bc-divider {
    background: rgba(255,255,255,.12);
}

html.skin-theme-clientpref-night .bc-inlineimg {
    border-color: rgba(255,255,255,.12);
}
}