User:Udays108/common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
BioMicro Center Wiki — CSS-only modern UI | |||
Paste into: User:USERNAME/common.css | |||
Targets: MediaWiki Vector (legacy) skin | |||
Mimics: about.html design without requiring JavaScript | |||
============================================================ */ | ============================================================ */ | ||
/* ── | /* ── Base & Reset ───────────────────────────────────────────── */ | ||
: | *, *::before, *::after { box-sizing: border-box; } | ||
body, html { | |||
font-family: 'Helvetica Neue', Arial, sans-serif !important; | |||
color: #1a1a1a !important; | |||
- | background: #f4f4f4 !important; | ||
line-height: 1.6 !important; | |||
font-size: 16px !important; | |||
margin: 0 !important; | |||
- | padding: 0 !important; | ||
- | |||
} | } | ||
a { color: #a31f34 !important; text-decoration: none !important; } | |||
a:hover { text-decoration: underline !important; color: #7a1626 !important; } | |||
/* ── | /* ── Contact topbar (CSS pseudo-element, decorative) ─────────── */ | ||
/* | /* Shows contact info as a red strip above the header */ | ||
#mw-page-base { | |||
background: #a31f34 !important; | |||
height: 32px !important; | |||
position: fixed !important; | |||
top: 0 !important; | |||
left: 0 !important; | |||
right: 0 !important; | |||
z-index: 200 !important; | |||
} | } | ||
#mw-page-base::after { | |||
content: "biomicro@mit.edu · 617-715-4533 · Building 68-322"; | |||
display: block; | |||
text-align: right; | |||
color: rgba(255,255,255,0.9); | |||
font-size: 0.72rem; | |||
font-family: 'Helvetica Neue', Arial, sans-serif; | |||
padding: 7px 28px; | |||
letter-spacing: 0.02em; | |||
} | |||
/* ── | /* ── Header (#mw-head) ──────────────────────────────────────── */ | ||
#mw-head { | |||
background: #fff !important; | |||
border-bottom: 1px solid #e0e0e0 !important; | |||
box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important; | |||
height: 60px !important; | |||
top: 32px !important; /* sit below the red topbar */ | |||
position: fixed !important; | |||
left: 0 !important; | |||
right: 0 !important; | |||
z-index: 150 !important; | |||
} | } | ||
#mw-head-base { | |||
height: 92px !important; /* 32px topbar + 60px header */ | |||
background: | background: #fff !important; | ||
} | } | ||
/* Page tabs (Read / Edit / History) */ | |||
#left-navigation { | |||
margin-left: 0 !important; | |||
} | |||
#left-navigation li a, | |||
padding-right: | #right-navigation li a { | ||
font-family: 'Helvetica Neue', Arial, sans-serif !important; | |||
font-size: 0.83rem !important; | |||
font-weight: 500 !important; | |||
color: #555 !important; | |||
background: transparent !important; | |||
border: none !important; | |||
border-radius: 4px !important; | |||
padding: 6px 12px !important; | |||
transition: background 0.15s, color 0.15s !important; | |||
} | |||
#left-navigation li.selected a, | |||
#left-navigation li a:hover, | |||
#right-navigation li a:hover { | |||
background: #f5f5f5 !important; | |||
color: #a31f34 !important; | |||
border: none !important; | |||
} | } | ||
.mw- | /* Search box in header */ | ||
padding: | #p-search { | ||
margin: | margin-top: 14px !important; | ||
} | |||
#searchInput { | |||
border: 1px solid #e0e0e0 !important; | |||
border-radius: 4px !important; | |||
padding: 5px 10px !important; | |||
font-size: 0.83rem !important; | |||
font-family: 'Helvetica Neue', Arial, sans-serif !important; | |||
color: #333 !important; | |||
width: 180px !important; | |||
outline: none !important; | |||
transition: border-color 0.15s !important; | |||
background: #fff !important; | |||
} | |||
#searchInput:focus { border-color: #a31f34 !important; } | |||
#searchButton, #mw-searchButton { | |||
background: #a31f34 !important; | |||
border: none !important; | |||
border-radius: 4px !important; | |||
color: #fff !important; | |||
font-size: 0.83rem !important; | |||
padding: 5px 10px !important; | |||
cursor: pointer !important; | |||
margin-left: 4px !important; | |||
} | } | ||
/* Personal tools (login/logout) */ | |||
#p-personal li a { | |||
font-size: 0.8rem !important; | |||
color: #666 !important; | |||
font-family: 'Helvetica Neue', Arial, sans-serif !important; | |||
} | |||
#p-personal li a:hover { color: #a31f34 !important; } | |||
/* ── | /* ── Logo & Sidebar container (#mw-navigation) ──────────────── */ | ||
#mw-navigation { | |||
background: #fff !important; | |||
border-right: 1px solid #e8e8e8 !important; | |||
top: 92px !important; /* below topbar + header */ | |||
position: fixed !important; | |||
left: 0 !important; | |||
bottom: 0 !important; | |||
width: 180px !important; | |||
overflow-y: auto !important; | |||
z-index: 100 !important; | |||
} | } | ||
/* | /* Logo area */ | ||
# | #p-logo { | ||
position: static !important; | |||
width: auto !important; | |||
height: auto !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
padding: | padding: 20px 16px 16px !important; | ||
border: | border-bottom: 1px solid #e8e8e8 !important; | ||
} | } | ||
/* | /* Hide the actual logo image; replace with CSS text badge */ | ||
#p-logo a { | |||
background-image: none !important; | |||
display: flex !important; | |||
align-items: center !important; | |||
gap: 10px !important; | |||
text-decoration: none !important; | |||
height: auto !important; | |||
width: auto !important; | |||
float: none !important; | |||
} | } | ||
#p-logo a::before { | |||
content: "BMC"; | |||
font-size: 0. | display: flex; | ||
align-items: center; | |||
justify-content: center; | |||
flex-shrink: 0; | |||
width: 38px; | |||
height: 38px; | |||
background: #a31f34; | |||
color: #fff; | |||
font-weight: 700; | |||
font-size: 0.9rem; | |||
border-radius: 4px; | |||
letter-spacing: -0.5px; | |||
font-family: 'Helvetica Neue', Arial, sans-serif; | |||
} | } | ||
#p-logo a::after { | |||
. | content: "MIT BioMicro Center"; | ||
color: | display: block; | ||
font-size: 0.82rem; | |||
font-weight: 700; | |||
color: #1a1a1a; | |||
font-family: 'Helvetica Neue', Arial, sans-serif; | |||
line-height: 1.3; | |||
letter-spacing: -0.1px; | |||
} | } | ||
/* ── Sidebar navigation portlets (#mw-panel) ─────────────────── */ | |||
/* ── | #mw-panel { | ||
position: static !important; | |||
width: auto !important; | |||
#mw-panel | float: none !important; | ||
width: | padding: 12px 0 !important; | ||
background: transparent !important; | |||
} | } | ||
. | .portlet, | ||
.mw-portlet { | |||
margin: 0 !important; | |||
padding: 0 0 8px !important; | |||
border: none !important; | |||
background: transparent !important; | |||
padding | |||
background: | |||
} | } | ||
. | /* Portlet headings */ | ||
font-size: 0. | .portlet h3, | ||
.mw-portlet-heading, | |||
div.portlet h3 { | |||
font-family: 'Helvetica Neue', Arial, sans-serif !important; | |||
font-size: 0.68rem !important; | |||
font-weight: 700 !important; | font-weight: 700 !important; | ||
text-transform: uppercase !important; | text-transform: uppercase !important; | ||
letter-spacing: 0.08em !important; | letter-spacing: 0.08em !important; | ||
color: #999 !important; | color: #999 !important; | ||
padding: 10px 16px 4px !important; | |||
margin: 0 !important; | |||
border: none !important; | |||
background: none !important; | |||
} | } | ||
/* | /* Portlet links */ | ||
. | .portlet li, | ||
.mw-portlet-body li { | |||
. | padding: 0 !important; | ||
margin: 0 !important; | |||
list-style: none !important; | |||
border: none !important; | |||
} | |||
.portlet li a, | |||
.mw-portlet-body li a { | |||
display: block !important; | |||
padding: 5px 16px !important; | |||
font-size: 0.82rem !important; | font-size: 0.82rem !important; | ||
font-family: 'Helvetica Neue', Arial, sans-serif !important; | |||
color: #444 !important; | color: #444 !important; | ||
border-radius: 4px !important; | border-radius: 4px !important; | ||
margin: 0 6px !important; | |||
transition: background 0.12s, color 0.12s !important; | transition: background 0.12s, color 0.12s !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
.portlet li a:hover, | |||
. | .mw-portlet-body li a:hover { | ||
background: #f0e8ea !important; | background: #f0e8ea !important; | ||
color: | color: #a31f34 !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
/* ── Main content area (#content) ───────────────────────────── */ | |||
#content, | |||
#mw-content-wrapper { | |||
margin-left: 180px !important; /* match sidebar width */ | |||
margin-top: 92px !important; /* topbar 32 + header 60 */ | |||
margin-right: 0 !important; | |||
margin-bottom: 0 !important; | |||
padding: 0 !important; | |||
background: #fff !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
border-radius: 0 !important; | |||
float: none !important; | |||
min-height: calc(100vh - 92px) !important; | |||
} | } | ||
/* | /* Hide MediaWiki "From bmcwiki..." subtitle */ | ||
. | #siteSub, | ||
#contentSub { display: none !important; } | |||
/* ── Page Hero: style #firstHeading as the about.html hero ───── */ | |||
#firstHeading, | |||
.mw-first-heading { | |||
background: linear-gradient(135deg, #a31f34 0%, #7a1626 100%) !important; | |||
color: #fff !important; | |||
font-family: 'Helvetica Neue', Arial, sans-serif !important; | |||
font-size: 1.9rem !important; | |||
font-weight: 700 !important; | |||
letter-spacing: -0.5px !important; | |||
padding: 36px 40px 32px !important; | |||
margin: 0 !important; | |||
border: none !important; | |||
width: 100% !important; | |||
display: block !important; | |||
} | } | ||
/* Breadcrumb "Home ›" before the title */ | |||
#firstHeading::before { | |||
content: "Home ›"; | |||
display: block; | |||
font-size: 0.78rem; | |||
font-weight: 400; | |||
color: rgba(255,255,255,0.75); | |||
margin-bottom: 8px; | |||
letter-spacing: 0; | |||
} | |||
/* ── | /* ── Body content area ──────────────────────────────────────── */ | ||
#bodyContent { | |||
padding: 36px 40px 60px !important; | |||
max-width: 860px !important; | |||
background: #fff !important; | |||
} | } | ||
.mw-parser-output | /* ── Typography ─────────────────────────────────────────────── */ | ||
.mw-parser-output { | |||
font-family: 'Helvetica Neue', Arial, sans-serif !important; | |||
font-size: 0.9rem !important; | |||
line-height: 1.6 !important; | |||
color: #333 !important; | |||
} | } | ||
.mw-parser-output h2 { | .mw-parser-output h2 { | ||
font-size: 1.35rem !important; | font-size: 1.35rem !important; | ||
font-weight: 700 !important; | font-weight: 700 !important; | ||
color: | color: #1a1a1a !important; | ||
padding-bottom: 10px !important; | padding-bottom: 10px !important; | ||
border-bottom: 2px solid | border-bottom: 2px solid #a31f34 !important; | ||
margin: | border-left: none !important; | ||
letter-spacing: -0.2px; | border-top: none !important; | ||
scroll-margin-top: | border-right: none !important; | ||
background: none !important; | |||
box-shadow: none !important; | |||
border-radius: 0 !important; | |||
margin: 40px 0 16px !important; | |||
letter-spacing: -0.2px !important; | |||
scroll-margin-top: 100px !important; | |||
} | } | ||
.mw-parser-output h2:first-child { margin-top: 0 !important; } | .mw-parser-output h2:first-child { margin-top: 0 !important; } | ||
| Line 209: | Line 329: | ||
font-size: 1rem !important; | font-size: 1rem !important; | ||
font-weight: 600 !important; | font-weight: 600 !important; | ||
color: | color: #1a1a1a !important; | ||
margin: | margin: 24px 0 8px !important; | ||
} | } | ||
| Line 218: | Line 336: | ||
font-size: 0.88rem !important; | font-size: 0.88rem !important; | ||
font-weight: 700 !important; | font-weight: 700 !important; | ||
color: # | color: #a31f34 !important; | ||
margin: | margin: 16px 0 6px !important; | ||
letter-spacing: -0.1px !important; | |||
} | } | ||
.mw-parser-output p { | .mw-parser-output p { | ||
margin-bottom: 14px !important; | |||
color: #333 !important; | |||
margin-bottom: | |||
color: # | |||
} | } | ||
.mw-parser-output ul, | |||
.mw-parser-output ol { | |||
. | margin: 0 0 14px 22px !important; | ||
color: #333 !important; | |||
color: # | |||
} | } | ||
. | .mw-parser-output li { margin-bottom: 4px !important; } | ||
/* ── TOC (Table of Contents) ────────────────────────────────── */ | |||
/* ── | #toc, .toc { | ||
. | background: #f9f9f9 !important; | ||
border: 1px solid #e8e8e8 !important; | |||
border-radius: 8px !important; | |||
padding: 18px 20px !important; | |||
display: inline-block !important; | |||
min-width: 200px !important; | |||
font-size: 0.82rem !important; | |||
float: none !important; | |||
margin: 0 0 28px !important; | |||
} | } | ||
. | .toctitle h2, | ||
#toc .toctitle h2 { | |||
font-size: 0.78rem !important; | |||
font-weight: 700 !important; | |||
text-transform: uppercase !important; | |||
letter-spacing: 0.08em !important; | |||
color: #999 !important; | |||
margin-bottom: 10px !important; | |||
border: none !important; | |||
background: none !important; | |||
padding: 0 !important; | |||
box-shadow: none !important; | |||
} | } | ||
#toc ul, .toc ul { | |||
list-style: none !important; | |||
. | margin: 0 !important; | ||
padding: 0 !important; | |||
} | } | ||
. | #toc ul li, .toc ul li { margin: 0 0 2px !important; } | ||
#toc ul li a, .toc ul li a { | |||
font-size: 0.82rem !important; | |||
border-radius: 4px; | color: #444 !important; | ||
padding: 3px 8px !important; | |||
display: block !important; | |||
border-radius: 4px !important; | |||
text-decoration: none !important; | |||
transition: background 0.12s, color 0.12s !important; | |||
} | } | ||
. | #toc ul li a:hover, .toc ul li a:hover { | ||
background: #f0e8ea !important; | |||
color: #a31f34 !important; | |||
text-decoration: none !important; | |||
} | } | ||
. | /* Sub-items */ | ||
font-size: 0. | #toc ul ul li a, .toc ul ul li a { | ||
padding-left: 18px !important; | |||
font-size: 0.78rem !important; | |||
color: #666 !important; | |||
} | } | ||
/* | /* ── Edit section links ──────────────────────────────────────── */ | ||
. | .mw-editsection { display: inline !important; } | ||
.mw-editsection a { | |||
font-size: 0.72rem !important; | |||
color: #999 !important; | |||
margin-left: 8px !important; | |||
} | } | ||
.mw-editsection a:hover { color: #a31f34 !important; } | |||
.mw-editsection-bracket { color: #ddd !important; } | |||
/* | /* ── Tables ─────────────────────────────────────────────────── */ | ||
. | .wikitable, | ||
.mw-parser-output table:not(.toc) { | |||
border-collapse: collapse !important; | |||
width: 100% !important; | |||
margin: 16px 0 !important; | |||
font-size: 0.88rem !important; | |||
border: 1px solid #e8e8e8 !important; | |||
border-radius: 8px !important; | |||
overflow: hidden !important; | |||
background: #fff !important; | |||
} | } | ||
. | .wikitable th, | ||
. | .mw-parser-output table:not(.toc) th { | ||
background: #a31f34 !important; | |||
color: #fff !important; | |||
font-weight: 600 !important; | |||
padding: 10px 14px !important; | |||
text-align: left !important; | |||
border: none !important; | |||
font-size: 0.85rem !important; | |||
} | } | ||
.wikitable td, | |||
.mw-parser-output table:not(.toc) td { | |||
padding: 9px 14px !important; | |||
. | border: none !important; | ||
border-bottom: 1px solid #f0f0f0 !important; | |||
vertical-align: top !important; | |||
color: #333 !important; | |||
} | } | ||
.wikitable tr:nth-child(even) td, | |||
.mw-parser-output table:not(.toc) tr:nth-child(even) td { background: #fafafa !important; } | |||
.wikitable tr:last-child td, | |||
.mw-parser-output table:not(.toc) tr:last-child td { border-bottom: none !important; } | |||
.wikitable tr:hover td, | |||
.mw-parser-output table:not(.toc) tr:hover td { background: rgba(163,31,52,0.03) !important; } | |||
/* ── Code ───────────────────────────────────────────────────── */ | |||
/* ── | .mw-parser-output code, | ||
. | .mw-parser-output pre, | ||
.mw-parser-output tt { | |||
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important; | |||
. | background: #f4f4f4 !important; | ||
border: 1px solid #e8e8e8 !important; | |||
border-radius: 4px !important; | |||
font-size: 0.85rem !important; | |||
background: # | |||
border-radius | |||
} | } | ||
.mw-parser-output code, | |||
.mw-parser-output tt { padding: 1px 5px !important; } | |||
.mw-parser-output pre { padding: 12px 16px !important; overflow-x: auto !important; } | |||
/* ── Component classes (wiki editors add these to markup) ────── */ | |||
.service-grid { | |||
display: grid; | |||
grid-template-columns: repeat(2, 1fr); | |||
gap: 16px; | |||
margin: 20px 0 28px; | |||
} | } | ||
. | .service-card { | ||
background: #f9f9f9; | |||
border: 1px solid #e8e8e8; | |||
border-radius: 8px; | |||
padding: 20px 22px; | |||
transition: border-color 0.15s, box-shadow 0.15s; | |||
} | } | ||
.service-card:hover { border-color: #c8a0a8; box-shadow: 0 2px 10px rgba(163,31,52,0.07); } | |||
.service-card h4 { font-size: 0.88rem !important; font-weight: 700 !important; color: #a31f34 !important; margin-bottom: 6px !important; } | |||
.service-card p { font-size: 0.82rem !important; color: #555 !important; margin: 0 !important; line-height: 1.5 !important; } | |||
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } | |||
.staff-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 18px; } | |||
.staff-card .staff-name { font-size: 0.88rem; font-weight: 700; color: #1a1a1a; display: block; } | |||
.staff-card .staff-role { font-size: 0.78rem; color: #666; margin-top: 3px; line-height: 1.4; display: block; } | |||
.staff-card.director { grid-column: 1 / -1; background: #fdf5f6; border-color: #d4a0a8; display: flex; align-items: center; gap: 18px; } | |||
.director-badge { width: 44px; height: 44px; background: #a31f34; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; } | |||
.staff-card.director .staff-name { font-size: 1rem !important; } | |||
.staff-card.director .staff-role { font-size: 0.82rem !important; color: #7a1626 !important; font-weight: 500; } | |||
.pub-list { list-style: none !important; margin: 0 !important; padding: 0 !important; } | |||
.pub-list li { padding: 14px 0 !important; border-bottom: 1px solid #f0f0f0 !important; font-size: 0.85rem !important; } | |||
.pub-list li:last-child { border-bottom: none !important; } | |||
.pub-list .pub-lab { font-weight: 700; color: #1a1a1a; display: block; } | |||
.pub-list .pub-desc { color: #444; margin-top: 3px; line-height: 1.5; display: block; } | |||
} | .pub-list .pub-cite { display: inline-block; margin-top: 5px; font-size: 0.75rem; background: #f0f0f0; color: #555; padding: 2px 8px; border-radius: 10px; } | ||
. | |||
} | |||
. | |||
. | |||
. | |||
. | |||
} | |||
.affil-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 24px; } | |||
.affil-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 18px; } | |||
.affil-card .affil-name { font-size: 0.85rem; font-weight: 700; color: #1a1a1a; display: block; } | |||
.affil-card .affil-rep { font-size: 0.78rem; color: #666; margin-top: 4px; display: block; } | |||
.note { background: #fdf6f0; border-left: 3px solid #e07b39; padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 0.82rem; color: #555; margin: 12px 0 18px; } | |||
.note strong { color: #c0622a; } | |||
.note.note-info { background: #f0f6ff; border-left-color: #3b7dd8; } | |||
. | |||
. | |||
. | .contact-block { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 22px 24px; display: flex; gap: 40px; flex-wrap: wrap; font-size: 0.85rem; } | ||
. | .contact-item { display: flex; flex-direction: column; gap: 3px; } | ||
. | .contact-item .label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #999; } | ||
.contact-item .value { color: #1a1a1a; font-weight: 500; } | |||
.contact-item a { color: #a31f34 !important; } | |||
/* ── Footer ─────────────────────────────────────────────────── */ | |||
background: # | #footer { | ||
padding: | background: #1a1a1a !important; | ||
font-size: 0.82rem; | color: #aaa !important; | ||
padding: 32px 40px !important; | |||
margin-left: 180px !important; | |||
border-top: none !important; | |||
font-size: 0.82rem !important; | |||
font-family: 'Helvetica Neue', Arial, sans-serif !important; | |||
} | } | ||
#footer a { color: #aaa !important; } | |||
#footer a:hover { color: #fff !important; text-decoration: none !important; } | |||
#footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex !important; flex-wrap: wrap !important; gap: 6px 20px !important; } | |||
#footer ul li { padding: 0 !important; margin: 0 !important; font-size: 0.8rem !important; } | |||
#footer-info li::before { content: none !important; } | |||
/* Footer top accent */ | |||
#footer::before { | |||
content: ""; | |||
display: block; | |||
height: 3px; | |||
background: #a31f34; | |||
margin: -32px -40px 24px; | |||
} | } | ||
/* ── Responsive ─────────────────────────────────────────────── */ | |||
/* ── | @media (max-width: 860px) { | ||
@media | #mw-navigation { | ||
position: static !important; | |||
width: 100% !important; | |||
border-right: none !important; | |||
border-bottom: 1px solid #e8e8e8 !important; | |||
} | |||
#content, #mw-content-wrapper { | |||
. | margin-left: 0 !important; | ||
. | margin-top: 0 !important; | ||
} | |||
#footer { margin-left: 0 !important; } | |||
.service-grid, .staff-grid, .affil-grid { grid-template-columns: 1fr !important; } | |||
.contact-block { flex-direction: column !important; gap: 16px !important; } | |||
} | } | ||
Latest revision as of 23:30, 8 May 2026
/* ============================================================
BioMicro Center Wiki — CSS-only modern UI
Paste into: User:USERNAME/common.css
Targets: MediaWiki Vector (legacy) skin
Mimics: about.html design without requiring JavaScript
============================================================ */
/* ── Base & Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body, html {
font-family: 'Helvetica Neue', Arial, sans-serif !important;
color: #1a1a1a !important;
background: #f4f4f4 !important;
line-height: 1.6 !important;
font-size: 16px !important;
margin: 0 !important;
padding: 0 !important;
}
a { color: #a31f34 !important; text-decoration: none !important; }
a:hover { text-decoration: underline !important; color: #7a1626 !important; }
/* ── Contact topbar (CSS pseudo-element, decorative) ─────────── */
/* Shows contact info as a red strip above the header */
#mw-page-base {
background: #a31f34 !important;
height: 32px !important;
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
z-index: 200 !important;
}
#mw-page-base::after {
content: "biomicro@mit.edu · 617-715-4533 · Building 68-322";
display: block;
text-align: right;
color: rgba(255,255,255,0.9);
font-size: 0.72rem;
font-family: 'Helvetica Neue', Arial, sans-serif;
padding: 7px 28px;
letter-spacing: 0.02em;
}
/* ── Header (#mw-head) ──────────────────────────────────────── */
#mw-head {
background: #fff !important;
border-bottom: 1px solid #e0e0e0 !important;
box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
height: 60px !important;
top: 32px !important; /* sit below the red topbar */
position: fixed !important;
left: 0 !important;
right: 0 !important;
z-index: 150 !important;
}
#mw-head-base {
height: 92px !important; /* 32px topbar + 60px header */
background: #fff !important;
}
/* Page tabs (Read / Edit / History) */
#left-navigation {
margin-left: 0 !important;
}
#left-navigation li a,
#right-navigation li a {
font-family: 'Helvetica Neue', Arial, sans-serif !important;
font-size: 0.83rem !important;
font-weight: 500 !important;
color: #555 !important;
background: transparent !important;
border: none !important;
border-radius: 4px !important;
padding: 6px 12px !important;
transition: background 0.15s, color 0.15s !important;
}
#left-navigation li.selected a,
#left-navigation li a:hover,
#right-navigation li a:hover {
background: #f5f5f5 !important;
color: #a31f34 !important;
border: none !important;
}
/* Search box in header */
#p-search {
margin-top: 14px !important;
}
#searchInput {
border: 1px solid #e0e0e0 !important;
border-radius: 4px !important;
padding: 5px 10px !important;
font-size: 0.83rem !important;
font-family: 'Helvetica Neue', Arial, sans-serif !important;
color: #333 !important;
width: 180px !important;
outline: none !important;
transition: border-color 0.15s !important;
background: #fff !important;
}
#searchInput:focus { border-color: #a31f34 !important; }
#searchButton, #mw-searchButton {
background: #a31f34 !important;
border: none !important;
border-radius: 4px !important;
color: #fff !important;
font-size: 0.83rem !important;
padding: 5px 10px !important;
cursor: pointer !important;
margin-left: 4px !important;
}
/* Personal tools (login/logout) */
#p-personal li a {
font-size: 0.8rem !important;
color: #666 !important;
font-family: 'Helvetica Neue', Arial, sans-serif !important;
}
#p-personal li a:hover { color: #a31f34 !important; }
/* ── Logo & Sidebar container (#mw-navigation) ──────────────── */
#mw-navigation {
background: #fff !important;
border-right: 1px solid #e8e8e8 !important;
top: 92px !important; /* below topbar + header */
position: fixed !important;
left: 0 !important;
bottom: 0 !important;
width: 180px !important;
overflow-y: auto !important;
z-index: 100 !important;
}
/* Logo area */
#p-logo {
position: static !important;
width: auto !important;
height: auto !important;
margin: 0 !important;
padding: 20px 16px 16px !important;
border-bottom: 1px solid #e8e8e8 !important;
}
/* Hide the actual logo image; replace with CSS text badge */
#p-logo a {
background-image: none !important;
display: flex !important;
align-items: center !important;
gap: 10px !important;
text-decoration: none !important;
height: auto !important;
width: auto !important;
float: none !important;
}
#p-logo a::before {
content: "BMC";
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 38px;
height: 38px;
background: #a31f34;
color: #fff;
font-weight: 700;
font-size: 0.9rem;
border-radius: 4px;
letter-spacing: -0.5px;
font-family: 'Helvetica Neue', Arial, sans-serif;
}
#p-logo a::after {
content: "MIT BioMicro Center";
display: block;
font-size: 0.82rem;
font-weight: 700;
color: #1a1a1a;
font-family: 'Helvetica Neue', Arial, sans-serif;
line-height: 1.3;
letter-spacing: -0.1px;
}
/* ── Sidebar navigation portlets (#mw-panel) ─────────────────── */
#mw-panel {
position: static !important;
width: auto !important;
float: none !important;
padding: 12px 0 !important;
background: transparent !important;
}
.portlet,
.mw-portlet {
margin: 0 !important;
padding: 0 0 8px !important;
border: none !important;
background: transparent !important;
}
/* Portlet headings */
.portlet h3,
.mw-portlet-heading,
div.portlet h3 {
font-family: 'Helvetica Neue', Arial, sans-serif !important;
font-size: 0.68rem !important;
font-weight: 700 !important;
text-transform: uppercase !important;
letter-spacing: 0.08em !important;
color: #999 !important;
padding: 10px 16px 4px !important;
margin: 0 !important;
border: none !important;
background: none !important;
}
/* Portlet links */
.portlet li,
.mw-portlet-body li {
padding: 0 !important;
margin: 0 !important;
list-style: none !important;
border: none !important;
}
.portlet li a,
.mw-portlet-body li a {
display: block !important;
padding: 5px 16px !important;
font-size: 0.82rem !important;
font-family: 'Helvetica Neue', Arial, sans-serif !important;
color: #444 !important;
border-radius: 4px !important;
margin: 0 6px !important;
transition: background 0.12s, color 0.12s !important;
text-decoration: none !important;
}
.portlet li a:hover,
.mw-portlet-body li a:hover {
background: #f0e8ea !important;
color: #a31f34 !important;
text-decoration: none !important;
}
/* ── Main content area (#content) ───────────────────────────── */
#content,
#mw-content-wrapper {
margin-left: 180px !important; /* match sidebar width */
margin-top: 92px !important; /* topbar 32 + header 60 */
margin-right: 0 !important;
margin-bottom: 0 !important;
padding: 0 !important;
background: #fff !important;
border: none !important;
box-shadow: none !important;
border-radius: 0 !important;
float: none !important;
min-height: calc(100vh - 92px) !important;
}
/* Hide MediaWiki "From bmcwiki..." subtitle */
#siteSub,
#contentSub { display: none !important; }
/* ── Page Hero: style #firstHeading as the about.html hero ───── */
#firstHeading,
.mw-first-heading {
background: linear-gradient(135deg, #a31f34 0%, #7a1626 100%) !important;
color: #fff !important;
font-family: 'Helvetica Neue', Arial, sans-serif !important;
font-size: 1.9rem !important;
font-weight: 700 !important;
letter-spacing: -0.5px !important;
padding: 36px 40px 32px !important;
margin: 0 !important;
border: none !important;
width: 100% !important;
display: block !important;
}
/* Breadcrumb "Home ›" before the title */
#firstHeading::before {
content: "Home ›";
display: block;
font-size: 0.78rem;
font-weight: 400;
color: rgba(255,255,255,0.75);
margin-bottom: 8px;
letter-spacing: 0;
}
/* ── Body content area ──────────────────────────────────────── */
#bodyContent {
padding: 36px 40px 60px !important;
max-width: 860px !important;
background: #fff !important;
}
/* ── Typography ─────────────────────────────────────────────── */
.mw-parser-output {
font-family: 'Helvetica Neue', Arial, sans-serif !important;
font-size: 0.9rem !important;
line-height: 1.6 !important;
color: #333 !important;
}
.mw-parser-output h2 {
font-size: 1.35rem !important;
font-weight: 700 !important;
color: #1a1a1a !important;
padding-bottom: 10px !important;
border-bottom: 2px solid #a31f34 !important;
border-left: none !important;
border-top: none !important;
border-right: none !important;
background: none !important;
box-shadow: none !important;
border-radius: 0 !important;
margin: 40px 0 16px !important;
letter-spacing: -0.2px !important;
scroll-margin-top: 100px !important;
}
.mw-parser-output h2:first-child { margin-top: 0 !important; }
.mw-parser-output h3 {
font-size: 1rem !important;
font-weight: 600 !important;
color: #1a1a1a !important;
margin: 24px 0 8px !important;
}
.mw-parser-output h4 {
font-size: 0.88rem !important;
font-weight: 700 !important;
color: #a31f34 !important;
margin: 16px 0 6px !important;
letter-spacing: -0.1px !important;
}
.mw-parser-output p {
margin-bottom: 14px !important;
color: #333 !important;
}
.mw-parser-output ul,
.mw-parser-output ol {
margin: 0 0 14px 22px !important;
color: #333 !important;
}
.mw-parser-output li { margin-bottom: 4px !important; }
/* ── TOC (Table of Contents) ────────────────────────────────── */
#toc, .toc {
background: #f9f9f9 !important;
border: 1px solid #e8e8e8 !important;
border-radius: 8px !important;
padding: 18px 20px !important;
display: inline-block !important;
min-width: 200px !important;
font-size: 0.82rem !important;
float: none !important;
margin: 0 0 28px !important;
}
.toctitle h2,
#toc .toctitle h2 {
font-size: 0.78rem !important;
font-weight: 700 !important;
text-transform: uppercase !important;
letter-spacing: 0.08em !important;
color: #999 !important;
margin-bottom: 10px !important;
border: none !important;
background: none !important;
padding: 0 !important;
box-shadow: none !important;
}
#toc ul, .toc ul {
list-style: none !important;
margin: 0 !important;
padding: 0 !important;
}
#toc ul li, .toc ul li { margin: 0 0 2px !important; }
#toc ul li a, .toc ul li a {
font-size: 0.82rem !important;
color: #444 !important;
padding: 3px 8px !important;
display: block !important;
border-radius: 4px !important;
text-decoration: none !important;
transition: background 0.12s, color 0.12s !important;
}
#toc ul li a:hover, .toc ul li a:hover {
background: #f0e8ea !important;
color: #a31f34 !important;
text-decoration: none !important;
}
/* Sub-items */
#toc ul ul li a, .toc ul ul li a {
padding-left: 18px !important;
font-size: 0.78rem !important;
color: #666 !important;
}
/* ── Edit section links ──────────────────────────────────────── */
.mw-editsection { display: inline !important; }
.mw-editsection a {
font-size: 0.72rem !important;
color: #999 !important;
margin-left: 8px !important;
}
.mw-editsection a:hover { color: #a31f34 !important; }
.mw-editsection-bracket { color: #ddd !important; }
/* ── Tables ─────────────────────────────────────────────────── */
.wikitable,
.mw-parser-output table:not(.toc) {
border-collapse: collapse !important;
width: 100% !important;
margin: 16px 0 !important;
font-size: 0.88rem !important;
border: 1px solid #e8e8e8 !important;
border-radius: 8px !important;
overflow: hidden !important;
background: #fff !important;
}
.wikitable th,
.mw-parser-output table:not(.toc) th {
background: #a31f34 !important;
color: #fff !important;
font-weight: 600 !important;
padding: 10px 14px !important;
text-align: left !important;
border: none !important;
font-size: 0.85rem !important;
}
.wikitable td,
.mw-parser-output table:not(.toc) td {
padding: 9px 14px !important;
border: none !important;
border-bottom: 1px solid #f0f0f0 !important;
vertical-align: top !important;
color: #333 !important;
}
.wikitable tr:nth-child(even) td,
.mw-parser-output table:not(.toc) tr:nth-child(even) td { background: #fafafa !important; }
.wikitable tr:last-child td,
.mw-parser-output table:not(.toc) tr:last-child td { border-bottom: none !important; }
.wikitable tr:hover td,
.mw-parser-output table:not(.toc) tr:hover td { background: rgba(163,31,52,0.03) !important; }
/* ── Code ───────────────────────────────────────────────────── */
.mw-parser-output code,
.mw-parser-output pre,
.mw-parser-output tt {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
background: #f4f4f4 !important;
border: 1px solid #e8e8e8 !important;
border-radius: 4px !important;
font-size: 0.85rem !important;
}
.mw-parser-output code,
.mw-parser-output tt { padding: 1px 5px !important; }
.mw-parser-output pre { padding: 12px 16px !important; overflow-x: auto !important; }
/* ── Component classes (wiki editors add these to markup) ────── */
.service-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
margin: 20px 0 28px;
}
.service-card {
background: #f9f9f9;
border: 1px solid #e8e8e8;
border-radius: 8px;
padding: 20px 22px;
transition: border-color 0.15s, box-shadow 0.15s;
}
.service-card:hover { border-color: #c8a0a8; box-shadow: 0 2px 10px rgba(163,31,52,0.07); }
.service-card h4 { font-size: 0.88rem !important; font-weight: 700 !important; color: #a31f34 !important; margin-bottom: 6px !important; }
.service-card p { font-size: 0.82rem !important; color: #555 !important; margin: 0 !important; line-height: 1.5 !important; }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.staff-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 18px; }
.staff-card .staff-name { font-size: 0.88rem; font-weight: 700; color: #1a1a1a; display: block; }
.staff-card .staff-role { font-size: 0.78rem; color: #666; margin-top: 3px; line-height: 1.4; display: block; }
.staff-card.director { grid-column: 1 / -1; background: #fdf5f6; border-color: #d4a0a8; display: flex; align-items: center; gap: 18px; }
.director-badge { width: 44px; height: 44px; background: #a31f34; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.staff-card.director .staff-name { font-size: 1rem !important; }
.staff-card.director .staff-role { font-size: 0.82rem !important; color: #7a1626 !important; font-weight: 500; }
.pub-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.pub-list li { padding: 14px 0 !important; border-bottom: 1px solid #f0f0f0 !important; font-size: 0.85rem !important; }
.pub-list li:last-child { border-bottom: none !important; }
.pub-list .pub-lab { font-weight: 700; color: #1a1a1a; display: block; }
.pub-list .pub-desc { color: #444; margin-top: 3px; line-height: 1.5; display: block; }
.pub-list .pub-cite { display: inline-block; margin-top: 5px; font-size: 0.75rem; background: #f0f0f0; color: #555; padding: 2px 8px; border-radius: 10px; }
.affil-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 24px; }
.affil-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 18px; }
.affil-card .affil-name { font-size: 0.85rem; font-weight: 700; color: #1a1a1a; display: block; }
.affil-card .affil-rep { font-size: 0.78rem; color: #666; margin-top: 4px; display: block; }
.note { background: #fdf6f0; border-left: 3px solid #e07b39; padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 0.82rem; color: #555; margin: 12px 0 18px; }
.note strong { color: #c0622a; }
.note.note-info { background: #f0f6ff; border-left-color: #3b7dd8; }
.contact-block { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 22px 24px; display: flex; gap: 40px; flex-wrap: wrap; font-size: 0.85rem; }
.contact-item { display: flex; flex-direction: column; gap: 3px; }
.contact-item .label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #999; }
.contact-item .value { color: #1a1a1a; font-weight: 500; }
.contact-item a { color: #a31f34 !important; }
/* ── Footer ─────────────────────────────────────────────────── */
#footer {
background: #1a1a1a !important;
color: #aaa !important;
padding: 32px 40px !important;
margin-left: 180px !important;
border-top: none !important;
font-size: 0.82rem !important;
font-family: 'Helvetica Neue', Arial, sans-serif !important;
}
#footer a { color: #aaa !important; }
#footer a:hover { color: #fff !important; text-decoration: none !important; }
#footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex !important; flex-wrap: wrap !important; gap: 6px 20px !important; }
#footer ul li { padding: 0 !important; margin: 0 !important; font-size: 0.8rem !important; }
#footer-info li::before { content: none !important; }
/* Footer top accent */
#footer::before {
content: "";
display: block;
height: 3px;
background: #a31f34;
margin: -32px -40px 24px;
}
/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
#mw-navigation {
position: static !important;
width: 100% !important;
border-right: none !important;
border-bottom: 1px solid #e8e8e8 !important;
}
#content, #mw-content-wrapper {
margin-left: 0 !important;
margin-top: 0 !important;
}
#footer { margin-left: 0 !important; }
.service-grid, .staff-grid, .affil-grid { grid-template-columns: 1fr !important; }
.contact-block { flex-direction: column !important; gap: 16px !important; }
}