MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
max-width: 1200px; | max-width: 1200px; | ||
margin: 0 auto; | margin: 0 auto; | ||
font-size: 15px; | font-size: 15px; | ||
line-height: 1.55; | line-height: 1.55; | ||
| Line 23: | Line 21: | ||
} | } | ||
/* 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%); | ||
| Line 36: | Line 37: | ||
font-size: 28px; | font-size: 28px; | ||
line-height: 1.15; | line-height: 1.15; | ||
} | } | ||
| Line 42: | Line 42: | ||
margin: 0; | margin: 0; | ||
opacity: .92; | opacity: .92; | ||
max-width: 900px; | max-width: 900px; | ||
} | } | ||
| Line 53: | Line 52: | ||
.bc-hero .bc-kicker { | .bc-hero .bc-kicker { | ||
font-size: 13px; | font-size: 13px; | ||
letter-spacing: .06em; | letter-spacing: .06em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
| Line 60: | Line 59: | ||
} | } | ||
/* Pills */ | /* ============================================================ | ||
Pills | |||
============================================================ */ | |||
.bc-pillrow { | .bc-pillrow { | ||
display: flex; | display: flex; | ||
| Line 69: | Line 71: | ||
.bc-pill { | .bc-pill { | ||
padding: 6px 10px; | padding: 6px 10px; | ||
border-radius: 999px; | border-radius: 999px; | ||
| Line 75: | Line 76: | ||
background: rgba(255,255,255,.10); | background: rgba(255,255,255,.10); | ||
font-size: 13px; | font-size: 13px; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
| Line 89: | Line 89: | ||
} | } | ||
/* Cards | /* ============================================================ | ||
Layout / Cards | |||
============================================================ */ | |||
.bc-grid { | .bc-grid { | ||
display: grid; | display: grid; | ||
| Line 120: | Line 123: | ||
} | } | ||
.bc-card h2 { | .bc-card h2 { | ||
margin: 0 0 10px 0; | margin: 0 0 10px 0; | ||
font-size: 18px; | font-size: 18px; | ||
} | } | ||
| Line 130: | Line 131: | ||
margin: 14px 0 8px 0; | margin: 14px 0 8px 0; | ||
font-size: 15px; | font-size: 15px; | ||
} | } | ||
.bc-subtle { | .bc-subtle { | ||
color: #555; | color: #555; | ||
font-size: 13px; | font-size: 13px; | ||
} | } | ||
.bc-mini { | .bc-mini { | ||
font-size: 12px; | font-size: 12px; | ||
color: #666; | color: #666; | ||
} | } | ||
/* | /* ============================================================ | ||
Buttons | |||
============================================================ */ | |||
.bc-btngrid { | .bc-btngrid { | ||
display: grid; | display: grid; | ||
| Line 199: | Line 176: | ||
display: block; | display: block; | ||
font-size: 14px; | font-size: 14px; | ||
} | } | ||
.bc-btn span { | .bc-btn span { | ||
font-size: 12px; | font-size: 12px; | ||
color: #555; | color: #555; | ||
} | } | ||
/* ============================================================ | /* ============================================================ | ||
HEADER LOGO | HEADER — LARGE LOGO, TIGHT HEIGHT, BODY-ALIGNED | ||
(Vector 2022 correct implementation) | |||
============================================================ */ | ============================================================ */ | ||
/* Hide site name text */ | |||
.mw-logo-wordmark, | .mw-logo-wordmark, | ||
.mw-logo-tagline { | .mw-logo-tagline { | ||
display: none !important; | |||
} | } | ||
/* Disable logo click */ | |||
.mw-logo a, | .mw-logo a, | ||
.mw-logo a * { | .mw-logo a * { | ||
pointer-events: none !important; | |||
cursor: default !important; | |||
} | } | ||
/* Keep header bar full width but apply correct page padding */ | |||
/* Keep header bar full width | |||
.vector-header { | .vector-header { | ||
padding-left: var(--padding-inline-page-container, 16px) !important; | padding-left: var(--padding-inline-page-container, 16px) !important; | ||
| Line 310: | Line 208: | ||
} | } | ||
/* Constrain | /* Constrain header content to SAME width as layout below */ | ||
.vector-header-container { | .vector-header-container { | ||
max-width: var(--width- | max-width: var(--width-layout) !important; | ||
margin-left: auto !important; | margin-left: auto !important; | ||
margin-right: auto !important; | margin-right: auto !important; | ||
| Line 319: | Line 217: | ||
} | } | ||
/* | /* Tight header height */ | ||
.mw-header { | .mw-header { | ||
height: 90px; | height: 90px; | ||
| Line 337: | Line 225: | ||
} | } | ||
/* | /* Remove min-height inflation */ | ||
.mw-header, | .mw-header, | ||
.vector-header, | .vector-header, | ||
| Line 344: | Line 232: | ||
} | } | ||
/* | /* Center logo vertically */ | ||
.mw-logo { | .mw-logo { | ||
display: flex; | display: flex; | ||
| Line 351: | Line 239: | ||
} | } | ||
/* | /* Large logo (intentional overflow) */ | ||
.mw-logo img { | .mw-logo img { | ||
height: 135px !important; | height: 135px !important; | ||
| Line 362: | Line 250: | ||
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; | |||
} | |||
} | } | ||
Revision as of 11:59, 23 January 2026
/* ============================================================
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;
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;
}
.bc-hero p {
margin: 0;
opacity: .92;
max-width: 900px;
}
.bc-hero .bc-meta {
margin-top: 10px;
font-size: 13px;
opacity: .9;
}
.bc-hero .bc-kicker {
font-size: 13px;
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 {
padding: 6px 10px;
border-radius: 999px;
border: 1px solid rgba(255,255,255,.18);
background: rgba(255,255,255,.10);
font-size: 13px;
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);
}
/* ============================================================
Layout / Cards
============================================================ */
.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);
}
.bc-card h2 {
margin: 0 0 10px 0;
font-size: 18px;
}
.bc-card h3 {
margin: 14px 0 8px 0;
font-size: 15px;
}
.bc-subtle {
color: #555;
font-size: 13px;
}
.bc-mini {
font-size: 12px;
color: #666;
}
/* ============================================================
Buttons
============================================================ */
.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;
}
.bc-btn span {
font-size: 12px;
color: #555;
}
/* ============================================================
HEADER — LARGE LOGO, TIGHT HEIGHT, BODY-ALIGNED
(Vector 2022 correct implementation)
============================================================ */
/* Hide site name text */
.mw-logo-wordmark,
.mw-logo-tagline {
display: none !important;
}
/* Disable logo click */
.mw-logo a,
.mw-logo a * {
pointer-events: none !important;
cursor: default !important;
}
/* Keep header bar full width but apply correct page padding */
.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 header content to SAME width as layout below */
.vector-header-container {
max-width: var(--width-layout) !important;
margin-left: auto !important;
margin-right: auto !important;
width: 100% !important;
box-sizing: border-box !important;
}
/* Tight header height */
.mw-header {
height: 90px;
padding-top: 0 !important;
padding-bottom: 0 !important;
overflow: visible !important;
}
/* Remove min-height inflation */
.mw-header,
.vector-header,
.vector-header-container {
min-height: unset !important;
}
/* Center logo vertically */
.mw-logo {
display: flex;
align-items: center;
height: 100%;
}
/* Large logo (intentional overflow) */
.mw-logo img {
height: 135px !important;
width: auto;
max-height: none;
}
/* Legacy Vector fallback */
#p-logo img {
height: 135px !important;
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;
}
}