Jump to content

User:Gibcus/common.css

From BioMicro Center
Revision as of 18:45, 29 June 2026 by Gibcus (talk | contribs)

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.
/* ============================================================
   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; }

/* Universal sans-serif — covers every element MW might leave in a serif/system font */
body.bmc-active, body.bmc-active * { font-family: 'Helvetica Neue', Arial, sans-serif !important; }
body.bmc-active code, body.bmc-active pre, body.bmc-active kbd,
body.bmc-active tt, body.bmc-active samp { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important; }

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: #750014 !important; text-decoration: none !important; }
a:hover { text-decoration: underline !important; color: #5c0010 !important; }

/* ── Contact topbar (CSS pseudo-element, decorative) ─────────── */
/* Shows contact info as a red strip above the header */
#mw-page-base {
  background: #750014 !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: #750014 !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: #750014 !important; }
#searchButton, #mw-searchButton {
  background: #750014 !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: #750014 !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: #750014;
  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: #750014 !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, #750014 0%, #5c0010 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 #750014 !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: #1a1a1a !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: #750014 !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: #750014 !important; }
.mw-editsection-bracket { color: #ddd !important; }

/* ── Tables ─────────────────────────────────────────────────── */
/* ── Tables ─────────────────────────────────────────────────
   Clean rebuild: no !important on cell borders so rowspan/colspan
   work correctly without CSS specificity battles.
   ──────────────────────────────────────────────────────────── */

.wikitable {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 1em 0;
  font-size: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  table-layout: auto;
}

.wikitable th {
  background: #750014;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 13px 18px;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
  border-bottom: 1px solid #5c0010;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.wikitable th:last-child { border-right: none; }

.wikitable td {
  padding: 11px 18px;
  border-bottom: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  vertical-align: top;
  color: #222;
  font-size: 0.875rem;
  text-align: left;
  line-height: 1.5;
  background: #fff;
  overflow-wrap: break-word;
}
.wikitable td:last-child { border-right: none; }
.wikitable tr:last-child td { border-bottom: none; }

/* Alternating row tint */
.wikitable tbody tr:nth-child(even) td { background: #fafafa; }

/* Hover */
.wikitable tbody tr:hover td { background: #f5eaec; }

/* colspan sub-header rows */
.wikitable td[colspan] {
  background: #f5f5f5;
  color: #444;
  font-size: 0.82rem;
  font-style: italic;
}

/* rowspan cells — no horizontal borders so nothing cuts through the span */
.wikitable td[rowspan] {
  border-bottom: none;
  border-top: none;
  vertical-align: middle;
  font-weight: 600;
  border-right: 2px solid #d8d8d8;
  background: #fff;
}

/* Links inside table cells */
.wikitable td a { color: #750014; }
.wikitable td a:hover { color: #750014; text-decoration: underline; }

/* Images inside table cells */
.wikitable td img {
  max-width: 160px;
  height: auto;
  display: block;
  margin: 6px 0 8px;
}

/* Paragraphs inside table cells */
.wikitable td p {
  margin: 0 0 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #222;
}
.wikitable td p:last-child { margin-bottom: 0; }

/* Header cells with inline style backgrounds — override to brand color */
.wikitable th[style*="background"] { background: #750014 !important; color: #fff !important; }

/* ── Layout tables (non-wikitable) ──────────────────────────
   The wiki uses plain tables for service grids and homepage layouts.
   Strip legacy inline styling and apply clean card-style appearance. */
.bmc-content .mw-parser-output > table:not(.wikitable):not(.navbox):not(.infobox) {
  border: none;
  background: transparent;
  border-spacing: 12px;
  border-collapse: separate;
  width: 100%;
}

/* Service card cells (have inline border style) */
.bmc-content .mw-parser-output > table:not(.wikitable) td[style*="border"] {
  border: 1px solid #e8e8e8 !important;
  border-radius: 6px !important;
  padding: 18px 20px !important;
  vertical-align: top !important;
  background: #ffffff !important;
  transition: background 0.18s ease !important;
}

/* Section-header cells (colspan rows) */
.bmc-content .mw-parser-output > table:not(.wikitable) td[colspan][style*="border"] {
  background: transparent !important;
  border-radius: 6px !important;
  padding: 10px 16px !important;
  text-align: left !important;
}

/* Inner nested tables inside service cards */
.bmc-content .mw-parser-output td > table:not(.wikitable) {
  border: none !important;
  background: transparent !important;
  border-spacing: 0 !important;
  width: 100% !important;
}
.bmc-content .mw-parser-output td > table:not(.wikitable) td {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Service card headings */
.bmc-content .mw-parser-output big b,
.bmc-content .mw-parser-output big strong {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  display: block !important;
  margin-bottom: 6px !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
}

/* Lists inside service cards */
.bmc-content .mw-parser-output > table:not(.wikitable) ul,
.bmc-content .mw-parser-output > table:not(.wikitable) li {
  font-size: 1rem !important;
  color: #444 !important;
  margin-bottom: 3px !important;
}

/* Plain layout cells without border */
.bmc-content .mw-parser-output > table:not(.wikitable) td:not([style*="border"]) {
  border: none !important;
  padding: 6px 8px !important;
  vertical-align: top !important;
  background: transparent !important;
}