MediaWiki:Common.css: Difference between revisions

No edit summary
Tag: Reverted
Undo revision 2318 by Admin (talk)
Tag: Undo
Line 1: Line 1:
/* ============================================================
/* ============================================================
   BorderConnect Modern Wiki Design
   BorderConnect Main Page Portal Styles
  Scoped to .bc-wrap so it won't impact other wiki pages.
   ============================================================ */
   ============================================================ */


/* 1. CSS VARIABLES - Easy Theming */
:root {
  --bc-color-aci: #2563eb;      /* Blue */
  --bc-color-ace: #dc2626;      /* Red */
  --bc-color-ib:  #7c3aed;      /* Purple */
  --bc-color-soft:#0d9488;      /* Teal */
  --bc-color-ref: #475569;      /* Slate/Grey */
  --bc-color-onboard: #f59e0b;  /* Amber/Orange */
 
  --bc-bg-page: #f8f9fa;
  --bc-bg-card: #ffffff;
  --bc-text-main: #1e293b;
  --bc-text-subtle: #64748b;
 
  --bc-radius: 12px;
  --bc-shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --bc-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --bc-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
/* 2. LAYOUT CONTAINER */
.bc-wrap {
.bc-wrap {
     max-width: 1100px;
     max-width: 1200px;
     margin: 0 auto;
     margin: 0 auto;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 
    color: var(--bc-text-main);
    /* Typography baseline (consistency) */
     line-height: 1.6;
     font-size: 15px;
     line-height: 1.55;
}
}


/* Reset basic elements inside the wrapper */
/* Ensure portal content inherits the same base sizing */
.bc-wrap h1, .bc-wrap h2, .bc-wrap h3 { margin: 0; font-weight: 700; }
.bc-wrap .bc-card,
.bc-wrap a { text-decoration: none; color: var(--bc-color-aci); transition: all 0.2s; }
.bc-wrap .bc-cleanlist,
.bc-wrap a:hover { text-decoration: underline; }
.bc-wrap .bc-cleanlist ul,
.bc-wrap ul { padding-left: 20px; margin: 0; }
.bc-wrap .bc-cleanlist ol,
.bc-wrap .bc-cleanlist li {
    font-size: inherit;
    line-height: inherit;
}


/* 3. HERO SECTION */
/* HERO */
.bc-hero {
.bc-hero {
     background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
     background: linear-gradient(135deg, #226065 0%, #1f4b4f 60%, #17373a 100%);
     border-radius: 16px;
     border-radius: 16px;
     padding: 40px 32px;
     padding: 22px 22px 18px 22px;
     color: white;
     color: #fff;
     box-shadow: var(--bc-shadow-lg);
     box-shadow: 0 10px 30px rgba(0,0,0,.15);
     margin-bottom: 32px;
}
     text-align: center;
 
     position: relative;
.bc-hero h1 {
     overflow: hidden;
    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 h1 { font-size: 32px; margin-bottom: 10px; color: white; letter-spacing: -0.5px; }
.bc-hero .bc-kicker {
.bc-hero p { font-size: 18px; opacity: 0.9; margin: 0 auto 24px auto; max-width: 700px; font-weight: 400; }
    font-size: 13px; /* normalized to match other small UI text */
.bc-hero-meta { margin-top: 15px; font-size: 12px; opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; }
    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;
}


/* Hero Pills */
.bc-pillrow { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.bc-pill {
.bc-pill {
     background: rgba(255,255,255,0.1);
     display: inline-block;
     border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 10px;
     padding: 6px 14px;
    border-radius: 999px;
     border-radius: 20px;
    border: 1px solid rgba(255,255,255,.18);
     font-size: 14px;
     background: rgba(255,255,255,.10);
     font-weight: 500;
     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);
}
}
.bc-pill a { color: white !important; text-decoration: none; }
.bc-pill:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }


/* 4. GRIDS */
/* Cards + grids */
.bc-grid {
.bc-grid {
     display: grid;
     display: grid;
     gap: 24px;
    grid-template-columns: 1fr;
     margin-bottom: 24px;
     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;
}
}


/* Responsive Grid setup */
@media (min-width: 980px) {
@media (min-width: 768px) {
     .bc-2col { grid-template-columns: 1fr 1fr; }
     .bc-grid-2 { grid-template-columns: 1fr 1fr; }
    .bc-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
}


/* 5. CARDS */
.bc-card {
.bc-card {
     background: var(--bc-bg-card);
     background: #fff;
     border-radius: var(--bc-radius);
    border: 1px solid rgba(0,0,0,.08);
     box-shadow: var(--bc-shadow-sm);
    border-radius: 14px;
     border: 1px solid #e2e8f0;
    padding: 16px 16px 14px 16px;
     overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
     display: flex;
}
     flex-direction: column;
 
     height: 100%;
/* 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;
}
}


.bc-card:hover { box-shadow: var(--bc-shadow-md); transform: translateY(-2px); transition: transform 0.2s ease, box-shadow 0.2s ease; }
/* 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;
}


.bc-card-header { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
/* Button grid */
.bc-card-header h2, .bc-card-header h3 { font-size: 18px; }
.bc-btngrid {
.bc-card-body { padding: 20px; flex: 1; }
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}


/* Subtle text */
@media (min-width: 980px) {
.bc-subtle { color: var(--bc-text-subtle); font-size: 14px; margin-bottom: 16px; }
    .bc-btngrid { grid-template-columns: 1fr 1fr; }
}


/* 6. ACTION LIST (The big numbered buttons) */
.bc-btn {
.bc-action-list { display: flex; flex-direction: column; gap: 10px; }
    display: block;
.bc-action-item {
     padding: 10px 12px;
     padding: 12px 16px;
     border-radius: 12px;
     background: #f8fafc;
     border: 1px solid rgba(0,0,0,.10);
     border: 1px solid #e2e8f0;
     background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(0,0,0,.02) 100%);
     border-radius: 8px;
     box-shadow: 0 6px 14px rgba(0,0,0,.06);
     transition: all 0.2s;
    text-decoration: none !important;
}
}
.bc-action-item:hover { background: white; border-color: var(--bc-color-aci); box-shadow: 0 2px 5px rgba(37,99,235,0.1); }
.bc-action-item strong { display: block; color: var(--bc-text-main); font-size: 15px; }
.bc-action-item span { display: block; font-size: 13px; color: var(--bc-text-subtle); font-weight: normal; }
/* Make sure the link wraps nicely */
.bc-action-list a { text-decoration: none !important; display: block; }


/* 7. TAG GRID (The small pill buttons) */
.bc-btn:hover {
.bc-tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
     transform: translateY(-1px);
.bc-tag {
     box-shadow: 0 10px 18px rgba(0,0,0,.08);
     display: inline-block;
    padding: 6px 12px;
    background: white;
    border: 1px solid #cbd5e1;
     border-radius: 6px;
    font-size: 13px;
    color: var(--bc-text-main);
    font-weight: 500;
}
}
.bc-tag-grid a { text-decoration: none !important; }
.bc-tag:hover { border-color: var(--bc-text-main); background: #f1f5f9; }


/* 8. THEME VARIANTS (Top Borders) */
.bc-btn strong {
.bc-border-top { border-top-width: 4px; border-top-style: solid; }
    display: block;
.bc-theme-aci { border-top-color: var(--bc-color-aci); }
    font-size: 14px;
.bc-theme-ace { border-top-color: var(--bc-color-ace); }
    line-height: 1.25;
.bc-theme-ib  { border-top-color: var(--bc-color-ib); }
    margin-bottom: 2px;
.bc-theme-soft{ border-top-color: var(--bc-color-soft); }
}
.bc-theme-ref { border-top-color: var(--bc-color-ref); }


/* Section Titles inside cards */
.bc-btn span {
.bc-section-title { font-size: 18px; margin-bottom: 12px; display: block; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}


/* 9. LISTS & TIPS */
/* Make lists inside bc sections tighter & cleaner */
.bc-link-list { list-style: none !important; padding: 0 !important; }
.bc-cleanlist ul,
.bc-link-list li { margin-bottom: 8px; padding-left: 0; }
.bc-cleanlist ol {
.bc-link-list li a { font-weight: 500; font-size: 15px; }
    margin: 0;
    padding-left: 18px;
}


.bc-tip-box {
.bc-cleanlist li {
    background: #f0f9ff;
     margin: 6px 0;
    border-left: 4px solid var(--bc-color-aci);
    padding: 12px;
     margin-top: 16px;
    font-size: 13px;
    border-radius: 0 6px 6px 0;
}
}


.bc-divider { height: 1px; background: #e2e8f0; margin: 16px 0; }
/* Image container polish */
.bc-alert { background: #fffbeb; padding: 10px; border-radius: 6px; font-size: 13px; color: #92400e; }
.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);
}


/* 10. NIGHT MODE COMPATIBILITY (If Wiki supports it) */
/* Slightly improve mp-box aesthetics without breaking existing layout */
.mp-box {
    border-radius: 10px;
}
 
/* Night mode support */
@media screen {
@media screen {
    html.skin-theme-clientpref-night {
html.skin-theme-clientpref-night .bc-card {
        --bc-bg-page: #0d1117;
    background-color: #171a1d;
        --bc-bg-card: #161b22;
    border-color: #3a3a3a;
        --bc-text-main: #c9d1d9;
}
        --bc-text-subtle: #8b949e;
 
    }
html.skin-theme-clientpref-night .bc-subtle,
    html.skin-theme-clientpref-night .bc-card { border-color: #30363d; }
html.skin-theme-clientpref-night .bc-mini,
    html.skin-theme-clientpref-night .bc-action-item { background: #0d1117; border-color: #30363d; }
html.skin-theme-clientpref-night .bc-btn span {
    html.skin-theme-clientpref-night .bc-action-item:hover { background: #1f2428; }
    color: #cfcfcf;
    html.skin-theme-clientpref-night .bc-tag { background: #0d1117; border-color: #30363d; color: #c9d1d9; }
}
    html.skin-theme-clientpref-night .bc-tip-box { background: rgba(56, 139, 253, 0.15); }
 
    html.skin-theme-clientpref-night .bc-alert { background: rgba(210, 153, 34, 0.15); color: #e3b341; }
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
  ============================================================ */
 
/* Force normal body text size in these two cards */
.bc-accent-onboard .bc-subtle,
.bc-accent-ref .bc-subtle {
    font-size: 15px;
    line-height: 1.55;
}
 
/* Make button descriptions readable (not tiny) */
.bc-accent-onboard .bc-btn span,
.bc-accent-ref .bc-btn span {
    font-size: 15px;
    line-height: 1.45;
}
 
/* Optional: slightly stronger button titles for clarity */
.bc-accent-onboard .bc-btn strong,
.bc-accent-ref .bc-btn strong {
    font-size: 15px;
    font-weight: 600;
}
}