MediaWiki:Common.css
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 Design
============================================================ */
/* 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 {
max-width: 1100px;
margin: 0 auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: var(--bc-text-main);
line-height: 1.6;
}
/* Reset basic elements inside the wrapper */
.bc-wrap h1, .bc-wrap h2, .bc-wrap h3 { margin: 0; font-weight: 700; }
.bc-wrap a { text-decoration: none; color: var(--bc-color-aci); transition: all 0.2s; }
.bc-wrap a:hover { text-decoration: underline; }
.bc-wrap ul { padding-left: 20px; margin: 0; }
/* 3. HERO SECTION */
.bc-hero {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
border-radius: 16px;
padding: 40px 32px;
color: white;
box-shadow: var(--bc-shadow-lg);
margin-bottom: 32px;
text-align: center;
position: relative;
overflow: hidden;
}
.bc-hero h1 { font-size: 32px; margin-bottom: 10px; color: white; letter-spacing: -0.5px; }
.bc-hero p { font-size: 18px; opacity: 0.9; margin: 0 auto 24px auto; max-width: 700px; font-weight: 400; }
.bc-hero-meta { margin-top: 15px; font-size: 12px; opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; }
/* Hero Pills */
.bc-pillrow { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.bc-pill {
background: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.2);
padding: 6px 14px;
border-radius: 20px;
font-size: 14px;
font-weight: 500;
}
.bc-pill a { color: white !important; text-decoration: none; }
.bc-pill:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
/* 4. GRIDS */
.bc-grid {
display: grid;
gap: 24px;
margin-bottom: 24px;
}
/* Responsive Grid setup */
@media (min-width: 768px) {
.bc-grid-2 { grid-template-columns: 1fr 1fr; }
.bc-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
/* 5. CARDS */
.bc-card {
background: var(--bc-bg-card);
border-radius: var(--bc-radius);
box-shadow: var(--bc-shadow-sm);
border: 1px solid #e2e8f0;
overflow: hidden;
display: flex;
flex-direction: column;
height: 100%;
}
.bc-card:hover { box-shadow: var(--bc-shadow-md); transform: translateY(-2px); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.bc-card-header { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.bc-card-header h2, .bc-card-header h3 { font-size: 18px; }
.bc-card-body { padding: 20px; flex: 1; }
/* Subtle text */
.bc-subtle { color: var(--bc-text-subtle); font-size: 14px; margin-bottom: 16px; }
/* 6. ACTION LIST (The big numbered buttons) */
.bc-action-list { display: flex; flex-direction: column; gap: 10px; }
.bc-action-item {
padding: 12px 16px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
transition: all 0.2s;
}
.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-tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-tag {
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-border-top { border-top-width: 4px; border-top-style: solid; }
.bc-theme-aci { border-top-color: var(--bc-color-aci); }
.bc-theme-ace { border-top-color: var(--bc-color-ace); }
.bc-theme-ib { border-top-color: var(--bc-color-ib); }
.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-section-title { font-size: 18px; margin-bottom: 12px; display: block; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
/* 9. LISTS & TIPS */
.bc-link-list { list-style: none !important; padding: 0 !important; }
.bc-link-list li { margin-bottom: 8px; padding-left: 0; }
.bc-link-list li a { font-weight: 500; font-size: 15px; }
.bc-tip-box {
background: #f0f9ff;
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; }
.bc-alert { background: #fffbeb; padding: 10px; border-radius: 6px; font-size: 13px; color: #92400e; }
/* 10. NIGHT MODE COMPATIBILITY (If Wiki supports it) */
@media screen {
html.skin-theme-clientpref-night {
--bc-bg-page: #0d1117;
--bc-bg-card: #161b22;
--bc-text-main: #c9d1d9;
--bc-text-subtle: #8b949e;
}
html.skin-theme-clientpref-night .bc-card { border-color: #30363d; }
html.skin-theme-clientpref-night .bc-action-item { background: #0d1117; border-color: #30363d; }
html.skin-theme-clientpref-night .bc-action-item:hover { background: #1f2428; }
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; }
}