MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
/*************************************************
/* ============================================================
   BorderConnect Main Page Portal Styles
   BorderConnect Main Page Portal Styles
*************************************************/
  Scoped to .bc-wrap so it won't impact other wiki pages.
  ============================================================ */


.bc-wrap {
.bc-wrap {
     max-width: 1200px;
     max-width: 1200px;
     margin: 0 auto;
     margin: 0 auto;
    /* Typography baseline (consistency) */
     font-size: 15px;
     font-size: 15px;
     line-height: 1.55;
     line-height: 1.55;
}
}


/* Ensure portal content inherits the same base sizing */
.bc-wrap .bc-card,
.bc-wrap .bc-card,
.bc-wrap .bc-cleanlist,
.bc-wrap .bc-cleanlist,
Line 19: Line 23:
}
}


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


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


Line 40: Line 42:
     margin: 0;
     margin: 0;
     opacity: .92;
     opacity: .92;
    font-size: 15px;
     max-width: 900px;
     max-width: 900px;
}
}
Line 50: Line 53:


.bc-hero .bc-kicker {
.bc-hero .bc-kicker {
     font-size: 13px;
     font-size: 13px; /* normalized to match other small UI text */
     letter-spacing: .06em;
     letter-spacing: .06em;
     text-transform: uppercase;
     text-transform: uppercase;
Line 57: Line 60:
}
}


/*************************************************
/* Pills */
  Pills
*************************************************/
 
.bc-pillrow {
.bc-pillrow {
     display: flex;
     display: flex;
Line 69: Line 69:


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


/*************************************************
/* Cards + grids */
  Layout / Cards
*************************************************/
 
.bc-grid {
.bc-grid {
     display: grid;
     display: grid;
Line 117: Line 116:
     border: 1px solid rgba(0,0,0,.08);
     border: 1px solid rgba(0,0,0,.08);
     border-radius: 14px;
     border-radius: 14px;
     padding: 16px 16px 14px;
     padding: 16px 16px 14px 16px;
     box-shadow: 0 8px 20px rgba(0,0,0,.06);
     box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
}


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


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


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


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


/*************************************************
/* Ensure list text is consistent (many skins alter list sizes) */
  Buttons
.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 {
.bc-btngrid {
     display: grid;
     display: grid;
Line 161: Line 186:
     border-radius: 12px;
     border-radius: 12px;
     border: 1px solid rgba(0,0,0,.10);
     border: 1px solid rgba(0,0,0,.10);
     background: linear-gradient(180deg,#fff 0%,rgba(0,0,0,.02) 100%);
     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);
     box-shadow: 0 6px 14px rgba(0,0,0,.06);
     text-decoration: none !important;
     text-decoration: none !important;
Line 174: Line 199:
     display: block;
     display: block;
     font-size: 14px;
     font-size: 14px;
    line-height: 1.25;
    margin-bottom: 2px;
}
}


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


/*************************************************
/* Make lists inside bc sections tighter & cleaner */
   HEADER — LARGE LOGO, TIGHT HEIGHT, BODY ALIGNED
.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);
}
}
 
/* ============================================================
  Typography overrides for onboarding + task search
  ============================================================ */
 
.bc-accent-onboard .bc-subtle,
.bc-accent-ref .bc-subtle {
    font-size: 15px;
    line-height: 1.55;
}
 
.bc-accent-onboard .bc-btn span,
.bc-accent-ref .bc-btn span {
    font-size: 15px;
    line-height: 1.45;
}
 
.bc-accent-onboard .bc-btn strong,
.bc-accent-ref .bc-btn strong {
    font-size: 15px;
    font-weight: 600;
}
 
/* ============================================================
   HEADER LOGO: icon only + disable link
  ============================================================ */


/* Hide site name text */
.mw-logo-wordmark,
.mw-logo-wordmark,
.mw-logo-tagline {
.mw-logo-tagline {
    display: none !important;
  display: none !important;
}
}


/* Disable logo click */
.mw-logo a,
.mw-logo a,
.mw-logo a * {
.mw-logo a * {
    pointer-events: none !important;
  pointer-events: none !important;
    cursor: default !important;
  cursor: default !important;
}
}


/* Constrain ALL Vector header inner wrappers */
/* ============================================================
.vector-header,
  HEADER: constrain content to the same left/right as body
.vector-header-container,
  (Vector 2022 uses page-container padding variables)
.mw-header-container,
  ============================================================ */
.mw-header-inner,
 
.mw-page-header__inner {
/* Keep header bar full width, but align its inner content */
     max-width: var(--width-content) !important;
.vector-header {
    padding-left: var(--padding-inline-page-container, 16px) !important;
    padding-right: var(--padding-inline-page-container, 16px) !important;
    box-sizing: border-box !important;
}
 
/* Constrain the inner header container to content width */
.vector-header-container {
     max-width: var(--width-content, 1200px) !important;
     margin-left: auto !important;
     margin-left: auto !important;
     margin-right: auto !important;
     margin-right: auto !important;
     padding-left: 16px !important;
    width: 100% !important;
     padding-right: 16px !important;
    box-sizing: border-box !important;
}
 
/* Fallback for older/alternate wrappers (safe, non-destructive) */
.mw-header {
     padding-left: var(--padding-inline-page-container, 16px) !important;
     padding-right: var(--padding-inline-page-container, 16px) !important;
     box-sizing: border-box !important;
     box-sizing: border-box !important;
}
}


/* Header bar height */
/* ============================================================
  LARGE LOGO (135px) + tight header height without shrinking logo
  ============================================================ */
 
.mw-header {
.mw-header {
     height: 90px;
     height: 90px;
     padding: 0 !important;
     padding-top: 0 !important;
    padding-bottom: 0 !important;
     overflow: visible !important;
     overflow: visible !important;
    box-sizing: border-box;
}
}


/* Remove min-height forcing */
/* Don’t let internal min-height rules inflate the header */
.mw-header,
.mw-header,
.vector-header,
.vector-header,
Line 227: Line 344:
}
}


/* Center logo vertically */
/* Keep logo centered in the shorter header */
.mw-logo,
.mw-logo {
.vector-header .mw-logo {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
Line 235: Line 351:
}
}


/* Large logo (overflows header intentionally) */
/* Logo stays large and can overflow */
.mw-logo img {
.mw-logo img {
     height: 135px !important;
     height: 135px !important;
Line 246: Line 362:
     height: 135px !important;
     height: 135px !important;
     width: auto;
     width: auto;
}
/*************************************************
  Night Mode
*************************************************/
@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;
}
}
}