Jump to content

User:Udays108/common.css: Difference between revisions

From BioMicro Center
Udays108 (talk | contribs)
No edit summary
Udays108 (talk | contribs)
No edit summary
Line 1: Line 1:
/* ============================================================
/* ============================================================
   MIT BioMicro Center — MediaWiki Custom Styles
   MIT BioMicro Center — MediaWiki Custom Styles
   Skin: Vector-2022
   Skin: Vector-2022 Scope: User:USERNAME/common.css
  Scope: User:USERNAME/common.css (personal preview)
   ============================================================ */
   ============================================================ */


 
/* ── 1. Design Tokens ── */
/* ── 1. Design Tokens ───────────────────────────────────────── */
:root {
:root {
   --bmc-crimson:      #a31f34;
   --bmc-crimson:      #a31f34;
Line 20: Line 17:
   --bmc-font:          'Helvetica Neue', Arial, sans-serif;
   --bmc-font:          'Helvetica Neue', Arial, sans-serif;
   --bmc-max-width:    1140px;
   --bmc-max-width:    1140px;
  /* Combined height of topbar (28px) + header (68px) */
  --bmc-chrome-height: 96px;
}
}




/* ── 2. Hide Vector-2022 Chrome ─────────────────────────────── */
/* ── 2. Hide Vector-2022 Chrome ── */
/* We replace header, left nav sidebar, and footer with our own */
/* We replace these with our own injected elements */
 
.vector-header,
.vector-header,
.vector-sticky-header,
.vector-sticky-header,
.vector-sticky-header-container,
.vector-main-menu-container,
.vector-main-menu-container,
.vector-footer,
.vector-footer,
.vector-footer-container,
#footer,
#footer,
.mw-footer {
.mw-footer,
/* Hide original h1 — recreated in our hero */
h1.firstHeading,
.mw-first-heading {
   display: none !important;
   display: none !important;
}
}


/* Remove Vector's default page padding that assumes its header height */
 
/* ── 3. Page Container — push down for our fixed header ── */
html {
  scroll-behavior: smooth;
}
 
body {
  font-family: var(--bmc-font) !important;
  background: var(--bmc-bg) !important;
  margin: 0 !important;
  padding: 0 !important;
}
 
.mw-page-container {
.mw-page-container {
   padding-top: 0 !important;
   padding-top: var(--bmc-chrome-height) !important;
  margin-top: 0 !important;
   max-width: 100% !important;
   max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}
}


.mw-page-container-inner {
.mw-page-container-inner {
  display: block !important;
   padding: 0 !important;
   padding: 0 !important;
   margin: 0 !important;
   margin: 0 !important;
}
}


/* Content container: remove Vector's column layout so our layout takes over */
 
/* ── 4. Content Container — match our 1140px centered layout ── */
.mw-content-container {
.mw-content-container {
   max-width: 100% !important;
   max-width: var(--bmc-max-width) !important;
   margin: 0 !important;
   margin: 0 auto !important;
   padding: 0 !important;
   padding: 40px 24px 80px !important;
   display: block !important;
   box-sizing: border-box !important;
}
}


/* The actual content area */
/* The main content area */
#mw-content {
#content,
.mw-body {
   margin: 0 !important;
   margin: 0 !important;
   padding: 0 !important;
   padding: 0 !important;
   border: none !important;
   border: none !important;
  background: transparent !important;
}
}


/* Hide original h1 — we recreate it in the hero banner */
/* Vector's page toolbar (edit / talk / history tabs) — restyle subtly */
h1.firstHeading,
.mw-first-heading {
  display: none !important;
}
 
/* Hide Vector's page toolbar (edit tabs area) background/border,
  but keep the actual edit buttons visible and accessible */
.vector-page-toolbar {
.vector-page-toolbar {
  border-bottom: 1px solid var(--bmc-border) !important;
  background: #fff !important;
   max-width: var(--bmc-max-width) !important;
   max-width: var(--bmc-max-width) !important;
   margin: 0 auto !important;
   margin: 0 auto !important;
   padding: 0 24px !important;
   padding: 0 !important;
  border-bottom: 1px solid var(--bmc-border) !important;
  background: var(--bmc-bg) !important;
}
}


/* Vector-2022 TOC — restyle to match our sidebar card */
.vector-page-toolbar-tabs {
  font-family: var(--bmc-font) !important;
  font-size: 0.83rem !important;
}
 
/* Style the active edit tab in crimson */
.vector-menu-tabs .selected a {
  color: var(--bmc-crimson) !important;
  border-bottom-color: var(--bmc-crimson) !important;
}
 
 
/* ── 5. TOC — restyle Vector's existing TOC to match our sidebar card ── */
/* Vector-2022 positions the TOC in a left column inside #content */
.vector-toc-landmark,
.vector-toc-landmark,
#mw-panel-toc {
#mw-panel-toc {
   margin: 0 !important;
   width: 220px !important;
   padding: 0 !important;
   flex-shrink: 0 !important;
}
}


Line 93: Line 119:
   box-shadow: none !important;
   box-shadow: none !important;
   font-family: var(--bmc-font) !important;
   font-family: var(--bmc-font) !important;
  position: sticky !important;
  top: calc(var(--bmc-chrome-height) + 16px) !important;
}
}


Line 99: Line 127:
   padding-bottom: 10px !important;
   padding-bottom: 10px !important;
   margin-bottom: 10px !important;
   margin-bottom: 10px !important;
  background: none !important;
}
}


Line 107: Line 136:
   letter-spacing: 0.08em !important;
   letter-spacing: 0.08em !important;
   color: #999 !important;
   color: #999 !important;
  font-family: var(--bmc-font) !important;
}
}


/* Hide the expand/collapse toggle button */
.vector-toc-toggle { display: none !important; }
.vector-toc-toggle { display: none !important; }


Line 119: Line 150:
   text-decoration: none !important;
   text-decoration: none !important;
   display: block !important;
   display: block !important;
  font-family: var(--bmc-font) !important;
}
}


Line 133: Line 165:
}
}


/* Indent sub-sections */
.vector-toc .vector-toc-list .vector-toc-list > li > .vector-toc-link {
.vector-toc .vector-toc-list .vector-toc-list > li > .vector-toc-link {
   padding-left: 20px !important;
   padding-left: 20px !important;
   font-size: 0.78rem !important;
   font-size: 0.78px !important;
   color: var(--bmc-text-muted) !important;
   color: var(--bmc-text-muted) !important;
}
}




/* ── 3. Our Injected Topbar ─────────────────────────────────── */
/* ── 6. Content Typography ── */
.mw-parser-output,
.mw-body-content {
  font-family: var(--bmc-font) !important;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}
 
.mw-parser-output a,
.mw-body-content a {
  color: var(--bmc-crimson);
  text-decoration: none;
}
.mw-parser-output a:hover { color: var(--bmc-crimson-dark); text-decoration: underline; }
.mw-parser-output a:visited { color: var(--bmc-crimson); }
 
/* External link icon */
.mw-parser-output a.external { color: var(--bmc-crimson); }
 
.mw-parser-output h2 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--bmc-text) !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--bmc-crimson) !important;
  margin: 48px 0 18px !important;
  letter-spacing: -0.2px;
  scroll-margin-top: calc(var(--bmc-chrome-height) + 20px);
  font-family: var(--bmc-font) !important;
}
.mw-parser-output h2:first-child { margin-top: 0 !important; }
 
.mw-parser-output h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--bmc-text) !important;
  margin: 28px 0 10px !important;
  scroll-margin-top: calc(var(--bmc-chrome-height) + 20px);
  font-family: var(--bmc-font) !important;
}
 
.mw-parser-output h4 {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #444 !important;
  margin: 20px 0 8px !important;
  font-family: var(--bmc-font) !important;
}
 
.mw-parser-output p { margin-bottom: 14px !important; }
 
 
/* ── 7. Tables (.wikitable) ── */
.mw-parser-output .wikitable {
  width: 100%;
  border-collapse: collapse !important;
  font-size: 0.83rem;
  font-family: var(--bmc-font);
  background: var(--bmc-bg);
  border: 1px solid #e4e4e4 !important;
  margin-bottom: 26px;
}
.mw-parser-output .wikitable thead th,
.mw-parser-output .wikitable > tr > th {
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 11px 14px !important;
  font-weight: 600;
  font-size: 0.78rem;
  text-align: left;
  border: none !important;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.mw-parser-output .wikitable tbody td,
.mw-parser-output .wikitable > tr > td {
  padding: 10px 14px !important;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}
.mw-parser-output .wikitable tbody tr:hover td { background: #fafafa; }
.mw-parser-output .wikitable tbody tr:last-child td { border-bottom: none !important; }
.mw-parser-output .wikitable .section-row td {
  background: #f5f5f5 !important;
  font-weight: 600;
  font-size: 0.8rem;
  color: #555;
  padding: 7px 14px !important;
}
 
 
/* ── 8. Our Injected Topbar ── */
.bmc-topbar {
.bmc-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
   background: var(--bmc-crimson);
   background: var(--bmc-crimson);
   color: #fff;
   color: #fff;
   font-size: 0.75rem;
   font-size: 0.75rem;
   padding: 6px 0;
   padding: 5px 0;
   text-align: right;
   text-align: right;
   font-family: var(--bmc-font);
   font-family: var(--bmc-font);
  height: 28px;
  box-sizing: border-box;
}
}
.bmc-topbar .bmc-inner {
.bmc-topbar .bmc-inner {
Line 159: Line 294:




/* ── 4. Our Injected Header ─────────────────────────────────── */
/* ── 9. Our Injected Header ── */
.bmc-header {
.bmc-header {
  position: fixed;
  top: 28px; /* sits below topbar */
  left: 0;
  right: 0;
  z-index: 999;
   background: #fff;
   background: #fff;
   border-bottom: 1px solid #e0e0e0;
   border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 500;
   box-shadow: 0 1px 4px rgba(0,0,0,0.07);
   box-shadow: 0 1px 4px rgba(0,0,0,0.07);
   font-family: var(--bmc-font);
   font-family: var(--bmc-font);
  height: 68px;
}
}
.bmc-header-inner {
.bmc-header-inner {
Line 181: Line 319:
/* Logo */
/* Logo */
.bmc-logo {
.bmc-logo {
   display: flex;
   display: flex; align-items: center; gap: 12px;
  align-items: center;
   text-decoration: none; flex-shrink: 0;
  gap: 12px;
   text-decoration: none;
  flex-shrink: 0;
}
}
.bmc-logo-mark {
.bmc-logo-mark {
Line 195: Line 330:
   flex-shrink: 0;
   flex-shrink: 0;
}
}
.bmc-logo-text .bmc-logo-name {
.bmc-logo-name {
   font-size: 1rem; font-weight: 700; color: var(--bmc-text); letter-spacing: -0.2px;
   font-size: 1rem; font-weight: 700; color: var(--bmc-text);
  line-height: 1.2;
  letter-spacing: -0.2px; line-height: 1.2; display: block;
}
}
.bmc-logo-text .bmc-logo-sub {
.bmc-logo-sub {
   font-size: 0.72rem; color: var(--bmc-text-muted); font-weight: 400;
   font-size: 0.72rem; color: var(--bmc-text-muted); display: block;
}
}


/* Right side: search + user tools from Vector (moved into our header) */
/* Right side wrapper (nav + search + user tools) */
.bmc-header-right {
.bmc-header-right {
   display: flex;
   display: flex; align-items: center; gap: 8px;
  align-items: center;
  gap: 12px;
}
}


/* The Vector search form we move into our header */
/* Vector search box moved into our header */
.bmc-header-right .vector-search-box,
.bmc-header-right .vector-search-box { margin: 0 !important; padding: 0 !important; }
.bmc-header-right #p-search {
.bmc-header-right #searchform input[type="search"],
  margin: 0 !important;
.bmc-header-right .vector-search-box-input {
  padding: 0 !important;
}
 
.bmc-header-right .vector-search-box-input,
.bmc-header-right #searchInput {
   border: 1px solid #e0e0e0 !important;
   border: 1px solid #e0e0e0 !important;
   border-radius: 6px !important;
   border-radius: 6px !important;
   padding: 6px 10px !important;
   padding: 5px 10px !important;
   font-size: 0.83rem !important;
   font-size: 0.82rem !important;
   font-family: var(--bmc-font) !important;
   font-family: var(--bmc-font) !important;
   width: 180px !important;
   width: 160px !important;
  transition: border-color 0.15s !important;
}
}
 
.bmc-header-right #searchform input[type="search"]:focus,
.bmc-header-right .vector-search-box-input:focus,
.bmc-header-right .vector-search-box-input:focus {
.bmc-header-right #searchInput:focus {
   border-color: var(--bmc-crimson) !important;
   border-color: var(--bmc-crimson) !important;
   outline: none !important;
   outline: none !important;
  width: 200px !important;
  transition: width 0.2s !important;
}
}


/* User menu moved into our header */
/* Vector user links moved into our header */
.bmc-header-right .vector-user-links {
.bmc-header-right .vector-user-links,
   display: flex !important;
.bmc-header-right #p-personal {
   align-items: center !important;
   margin: 0 !important; padding: 0 !important;
  font-size: 0.82rem !important;
   font-family: var(--bmc-font) !important;
}
}




/* ── 5. Our Injected Navigation ─────────────────────────────── */
/* ── 10. Navigation ── */
.bmc-nav { display: flex; align-items: center; }
.bmc-nav > ul {
.bmc-nav > ul {
   list-style: none;
   list-style: none; display: flex; gap: 2px; margin: 0; padding: 0;
  display: flex;
  gap: 2px;
  margin: 0; padding: 0;
}
}
.bmc-nav > ul > li { position: relative; }
.bmc-nav > ul > li { position: relative; }
.bmc-nav > ul > li > a {
.bmc-nav > ul > li > a {
   display: block;
   display: block; padding: 8px 14px;
  padding: 8px 14px;
   font-size: 0.85rem; font-weight: 500; color: #333;
   font-size: 0.85rem; font-weight: 500; color: #333;
   border-radius: 4px; white-space: nowrap;
   border-radius: 4px; white-space: nowrap;
   transition: background 0.15s, color 0.15s;
   transition: background 0.15s, color 0.15s;
   text-decoration: none;
   text-decoration: none; font-family: var(--bmc-font);
  font-family: var(--bmc-font);
}
}
.bmc-nav > ul > li > a:hover,
.bmc-nav > ul > li > a:hover,
.bmc-nav > ul > li.bmc-active > a {
.bmc-nav > ul > li.bmc-active > a {
   background: #f5f5f5;
   background: #f5f5f5; color: var(--bmc-crimson); text-decoration: none;
  color: var(--bmc-crimson);
  text-decoration: none;
}
}
/* Dropdown arrow */
.bmc-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.6; }
.bmc-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.6; }
/* Dropdown menu */
.bmc-dropdown-menu {
.bmc-dropdown-menu {
   display: none;
   display: none;
Line 275: Line 393:
   background: #fff; border: 1px solid #e0e0e0;
   background: #fff; border: 1px solid #e0e0e0;
   border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.10);
   border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.10);
   min-width: 200px; padding: 6px 0; z-index: 600;
   min-width: 200px; padding: 6px 0; z-index: 1100;
   font-family: var(--bmc-font);
   font-family: var(--bmc-font);
}
}
Line 282: Line 400:
   display: block; padding: 8px 18px;
   display: block; padding: 8px 18px;
   font-size: 0.83rem; color: #333;
   font-size: 0.83rem; color: #333;
   transition: background 0.12s;
   transition: background 0.12s; text-decoration: none;
  text-decoration: none;
}
.bmc-dropdown-menu a:hover {
  background: #faf0f0; color: var(--bmc-crimson); text-decoration: none;
}
}
.bmc-dropdown-menu a:hover { background: #faf0f0; color: var(--bmc-crimson); text-decoration: none; }
.bmc-dropdown-menu .bmc-divider { border-top: 1px solid #eee; margin: 4px 0; }
.bmc-dropdown-menu .bmc-divider { border-top: 1px solid #eee; margin: 4px 0; }
.bmc-dropdown-menu .bmc-group-label {
.bmc-dropdown-menu .bmc-group-label {
Line 295: Line 410:




/* ── 6. Our Injected Hero ───────────────────────────────────── */
/* ── 11. Our Injected Hero ── */
.bmc-hero {
.bmc-hero {
   background: linear-gradient(135deg, var(--bmc-crimson) 0%, var(--bmc-crimson-dark) 100%);
   background: linear-gradient(135deg, var(--bmc-crimson) 0%, var(--bmc-crimson-dark) 100%);
   color: #fff;
   color: #fff; padding: 40px 0 36px;
  padding: 40px 0 36px;
   font-family: var(--bmc-font);
   font-family: var(--bmc-font);
}
}
.bmc-hero .bmc-inner {
.bmc-hero .bmc-inner {
   max-width: var(--bmc-max-width);
   max-width: var(--bmc-max-width); margin: 0 auto; padding: 0 24px;
  margin: 0 auto;
  padding: 0 24px;
}
.bmc-breadcrumb {
  font-size: 0.78rem; margin-bottom: 10px; opacity: 0.75;
}
}
.bmc-breadcrumb { font-size: 0.78rem; margin-bottom: 10px; opacity: 0.75; }
.bmc-breadcrumb a { color: #fff; text-decoration: none; }
.bmc-breadcrumb a { color: #fff; text-decoration: none; }
.bmc-breadcrumb a:hover { text-decoration: underline; }
.bmc-breadcrumb a:hover { text-decoration: underline; }
.bmc-breadcrumb .bmc-sep { margin: 0 6px; }
.bmc-breadcrumb .bmc-sep { margin: 0 6px; }
.bmc-hero h1 {
.bmc-hero-title {
   font-size: 2rem; font-weight: 700; letter-spacing: -0.5px;
   font-size: 2rem; font-weight: 700; letter-spacing: -0.5px;
   color: #fff !important; display: block !important;
   color: #fff; margin: 0; padding: 0; border: none;
  border: none !important; padding: 0 !important; margin: 0 !important;
}
}




/* ── 7. Page Layout Wrapper ─────────────────────────────────── */
/* ── 12. Our Injected Footer ── */
/* Wraps Vector's content region in our grid */
.bmc-footer {
.bmc-page-layout {
   background: #1a1a1a; color: #aaa;
   max-width: var(--bmc-max-width);
   padding: 40px 0; font-size: 0.82rem;
  margin: 0 auto;
   padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
   font-family: var(--bmc-font);
   font-family: var(--bmc-font);
}
}
 
.bmc-footer-inner {
.bmc-sidebar {
   max-width: var(--bmc-max-width); margin: 0 auto; padding: 0 24px;
   position: sticky;
   display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
   top: 84px;
  align-self: start;
}
}
 
.bmc-footer h4 {
.bmc-content-col {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
   min-width: 0; /* prevent grid blowout */
   letter-spacing: 0.08em; color: #fff; margin-bottom: 12px;
}
}
 
.bmc-footer ul { list-style: none; margin: 0; padding: 0; }
 
.bmc-footer ul li { margin-bottom: 6px; }
/* ── 8. Content Typography ──────────────────────────────────── */
.bmc-footer a { color: #aaa; text-decoration: none; }
.mw-parser-output {
.bmc-footer a:hover { color: #fff; }
  font-family: var(--bmc-font) !important;
.bmc-footer-bottom {
  font-size: 0.9rem;
   max-width: var(--bmc-max-width); margin: 24px auto 0;
  color: #333;
   padding: 20px 24px 0; border-top: 1px solid #333;
  line-height: 1.6;
   display: flex; justify-content: space-between; align-items: center;
}
   flex-wrap: wrap; gap: 8px; font-size: 0.77rem; color: #666;
 
.mw-parser-output a,
.mw-body-content a {
  color: var(--bmc-crimson);
  text-decoration: none;
}
.mw-parser-output a:hover { color: var(--bmc-crimson-dark); text-decoration: underline; }
.mw-parser-output a:visited { color: var(--bmc-crimson); }
 
.mw-parser-output h2 {
   font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--bmc-text) !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--bmc-crimson) !important;
  margin: 48px 0 18px !important;
   letter-spacing: -0.2px;
  scroll-margin-top: 88px;
}
.mw-parser-output h2:first-child { margin-top: 0 !important; }
 
.mw-parser-output h3 {
   font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--bmc-text) !important;
  margin: 28px 0 10px !important;
  scroll-margin-top: 88px;
}
 
.mw-parser-output h4 {
  font-size: 0.88rem !important;
   font-weight: 700 !important;
  color: #444 !important;
  margin: 20px 0 8px !important;
}
 
.mw-parser-output p { margin-bottom: 14px !important; }
 
 
/* ── 9. Tables ──────────────────────────────────────────────── */
.mw-parser-output .wikitable {
  width: 100%;
  border-collapse: collapse !important;
  font-size: 0.83rem;
  font-family: var(--bmc-font);
  background: var(--bmc-bg);
  border: 1px solid #e4e4e4 !important;
  margin-bottom: 26px;
}
}
.mw-parser-output .wikitable thead th,
.mw-parser-output .wikitable > tr > th {
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 11px 14px !important;
  font-weight: 600;
  font-size: 0.78rem;
  text-align: left;
  border: none !important;
  white-space: nowrap;
}
.mw-parser-output .wikitable tbody td,
.mw-parser-output .wikitable > tr > td {
  padding: 10px 14px !important;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}
.mw-parser-output .wikitable tbody tr:hover td { background: #fafafa; }
.mw-parser-output .wikitable tbody tr:last-child td { border-bottom: none !important; }
/* ── 10. Note Boxes ─────────────────────────────────────────── */
.bmc-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;
  font-family: var(--bmc-font);
}
.bmc-note strong { color: #c0622a; }
.bmc-note-info { background: #f0f6ff; border-left-color: #3b7dd8; }
.bmc-note-warn { background: #fff9e6; border-left-color: #d4a017; }




/* ── 11. Cards & Grids ──────────────────────────────────────── */
/* ── 13. Component Classes (for use in wiki markup) ── */
.bmc-card {
.bmc-card {
   background: var(--bmc-bg-card); border: 1px solid var(--bmc-border);
   background: var(--bmc-bg-card); border: 1px solid var(--bmc-border);
Line 442: Line 462:
   font-family: var(--bmc-font);
   font-family: var(--bmc-font);
}
}
.bmc-card:hover {
.bmc-card:hover { border-color: var(--bmc-border-hover); box-shadow: 0 2px 10px rgba(163,31,52,0.07); }
  border-color: var(--bmc-border-hover);
  box-shadow: 0 2px 10px rgba(163,31,52,0.07);
}
.bmc-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--bmc-crimson); margin-bottom: 6px; }
.bmc-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--bmc-crimson); margin-bottom: 6px; }
.bmc-card p  { font-size: 0.82rem; color: #555; margin: 0; line-height: 1.5; }
.bmc-card p  { font-size: 0.82rem; color: #555; margin: 0; line-height: 1.5; }
Line 453: Line 470:
.bmc-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 20px 0 28px; }
.bmc-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 20px 0 28px; }


.bmc-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;
}
.bmc-note strong { color: #c0622a; }
.bmc-note-info { background: #f0f6ff; border-left-color: #3b7dd8; }
.bmc-note-warn { background: #fff9e6; border-left-color: #d4a017; }


/* ── 12. Badges ─────────────────────────────────────────────── */
.bmc-badge { display: inline-block; font-size: 0.68rem; padding: 2px 7px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.bmc-badge {
  display: inline-block; font-size: 0.68rem; padding: 2px 7px;
  border-radius: 10px; font-weight: 600; white-space: nowrap;
  font-family: var(--bmc-font);
}
.bmc-badge-red  { background: var(--bmc-crimson-light); color: var(--bmc-crimson); }
.bmc-badge-red  { background: var(--bmc-crimson-light); color: var(--bmc-crimson); }
.bmc-badge-blue  { background: #e8f4fd; color: #1a6fa8; }
.bmc-badge-blue  { background: #e8f4fd; color: #1a6fa8; }
Line 466: Line 486:




/* ── 13. Our Injected Footer ────────────────────────────────── */
/* ── 14. Tab Panel System ── */
.bmc-footer {
  background: #1a1a1a; color: #aaa;
  padding: 40px 0; font-size: 0.82rem;
  font-family: var(--bmc-font);
}
.bmc-footer-inner {
  max-width: var(--bmc-max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
}
.bmc-footer h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #fff; margin-bottom: 12px;
}
.bmc-footer ul { list-style: none; margin: 0; padding: 0; }
.bmc-footer ul li { margin-bottom: 6px; }
.bmc-footer ul li a { color: #aaa; text-decoration: none; }
.bmc-footer ul li a:hover { color: #fff; }
.bmc-footer-bottom {
  max-width: var(--bmc-max-width); margin: 24px auto 0;
  padding: 20px 24px 0; border-top: 1px solid #333;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 0.77rem; color: #666;
}
.bmc-footer-bottom a { color: #666; }
.bmc-footer-bottom a:hover { color: #aaa; }
 
 
/* ── 14. Tab Panel System ───────────────────────────────────── */
.tab-bar-wrap {
.tab-bar-wrap {
   background: linear-gradient(135deg, var(--bmc-crimson) 0%, var(--bmc-crimson-dark) 100%);
   background: linear-gradient(135deg, var(--bmc-crimson) 0%, var(--bmc-crimson-dark) 100%);
Line 520: Line 512:




/* ── 15. Responsive ─────────────────────────────────────────── */
/* ── 15. Responsive ── */
@media screen and (max-width: 860px) {
@media screen and (max-width: 860px) {
  .bmc-page-layout { grid-template-columns: 1fr; }
  .bmc-sidebar { position: static; }
   .bmc-grid-2, .bmc-grid-3, .bmc-grid-4 { grid-template-columns: 1fr; }
   .bmc-grid-2, .bmc-grid-3, .bmc-grid-4 { grid-template-columns: 1fr; }
   .bmc-footer-inner { grid-template-columns: 1fr 1fr; }
   .bmc-footer-inner { grid-template-columns: 1fr 1fr; }
  .mw-content-container { padding: 24px 16px 60px !important; }
}
}
@media screen and (max-width: 580px) {
@media screen and (max-width: 580px) {
   .bmc-hero h1 { font-size: 1.5rem !important; }
   .bmc-hero-title { font-size: 1.5rem; }
   .bmc-footer-inner { grid-template-columns: 1fr; }
   .bmc-footer-inner { grid-template-columns: 1fr; }
   .bmc-nav > ul { display: none; }
   .bmc-nav > ul { display: none; }
}
}

Revision as of 20:15, 8 May 2026

/* ============================================================
   MIT BioMicro Center — MediaWiki Custom Styles
   Skin: Vector-2022  |  Scope: User:USERNAME/common.css
   ============================================================ */

/* ── 1. Design Tokens ── */
:root {
  --bmc-crimson:       #a31f34;
  --bmc-crimson-dark:  #7a1626;
  --bmc-crimson-light: #fde8ec;
  --bmc-text:          #1a1a1a;
  --bmc-text-muted:    #666;
  --bmc-bg:            #fff;
  --bmc-bg-card:       #f9f9f9;
  --bmc-border:        #e8e8e8;
  --bmc-border-hover:  #c8a0a8;
  --bmc-font:          'Helvetica Neue', Arial, sans-serif;
  --bmc-max-width:     1140px;
  /* Combined height of topbar (28px) + header (68px) */
  --bmc-chrome-height: 96px;
}


/* ── 2. Hide Vector-2022 Chrome ── */
/* We replace these with our own injected elements */
.vector-header,
.vector-sticky-header,
.vector-sticky-header-container,
.vector-main-menu-container,
.vector-footer,
.vector-footer-container,
#footer,
.mw-footer,
/* Hide original h1 — recreated in our hero */
h1.firstHeading,
.mw-first-heading {
  display: none !important;
}


/* ── 3. Page Container — push down for our fixed header ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bmc-font) !important;
  background: var(--bmc-bg) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mw-page-container {
  padding-top: var(--bmc-chrome-height) !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.mw-page-container-inner {
  padding: 0 !important;
  margin: 0 !important;
}


/* ── 4. Content Container — match our 1140px centered layout ── */
.mw-content-container {
  max-width: var(--bmc-max-width) !important;
  margin: 0 auto !important;
  padding: 40px 24px 80px !important;
  box-sizing: border-box !important;
}

/* The main content area */
#content,
.mw-body {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Vector's page toolbar (edit / talk / history tabs) — restyle subtly */
.vector-page-toolbar {
  max-width: var(--bmc-max-width) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--bmc-border) !important;
  background: var(--bmc-bg) !important;
}

.vector-page-toolbar-tabs {
  font-family: var(--bmc-font) !important;
  font-size: 0.83rem !important;
}

/* Style the active edit tab in crimson */
.vector-menu-tabs .selected a {
  color: var(--bmc-crimson) !important;
  border-bottom-color: var(--bmc-crimson) !important;
}


/* ── 5. TOC — restyle Vector's existing TOC to match our sidebar card ── */
/* Vector-2022 positions the TOC in a left column inside #content */
.vector-toc-landmark,
#mw-panel-toc {
  width: 220px !important;
  flex-shrink: 0 !important;
}

.vector-toc {
  background: var(--bmc-bg-card) !important;
  border: 1px solid var(--bmc-border) !important;
  border-radius: 8px !important;
  padding: 20px !important;
  box-shadow: none !important;
  font-family: var(--bmc-font) !important;
  position: sticky !important;
  top: calc(var(--bmc-chrome-height) + 16px) !important;
}

.vector-toc .vector-toc-title-bar {
  border-bottom: 1px solid var(--bmc-border) !important;
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
  background: none !important;
}

.vector-toc .vector-toc-title-text {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #999 !important;
  font-family: var(--bmc-font) !important;
}

/* Hide the expand/collapse toggle button */
.vector-toc-toggle { display: none !important; }

.vector-toc .vector-toc-link {
  font-size: 0.82rem !important;
  color: #444 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  transition: background 0.12s, color 0.12s !important;
  text-decoration: none !important;
  display: block !important;
  font-family: var(--bmc-font) !important;
}

.vector-toc .vector-toc-link:hover {
  background: #f0e8ea !important;
  color: var(--bmc-crimson) !important;
  text-decoration: none !important;
}

.vector-toc-list-item-active > .vector-toc-link {
  color: var(--bmc-crimson) !important;
  font-weight: 600 !important;
  background: #fdf5f6 !important;
}

/* Indent sub-sections */
.vector-toc .vector-toc-list .vector-toc-list > li > .vector-toc-link {
  padding-left: 20px !important;
  font-size: 0.78px !important;
  color: var(--bmc-text-muted) !important;
}


/* ── 6. Content Typography ── */
.mw-parser-output,
.mw-body-content {
  font-family: var(--bmc-font) !important;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}

.mw-parser-output a,
.mw-body-content a {
  color: var(--bmc-crimson);
  text-decoration: none;
}
.mw-parser-output a:hover { color: var(--bmc-crimson-dark); text-decoration: underline; }
.mw-parser-output a:visited { color: var(--bmc-crimson); }

/* External link icon */
.mw-parser-output a.external { color: var(--bmc-crimson); }

.mw-parser-output h2 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--bmc-text) !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--bmc-crimson) !important;
  margin: 48px 0 18px !important;
  letter-spacing: -0.2px;
  scroll-margin-top: calc(var(--bmc-chrome-height) + 20px);
  font-family: var(--bmc-font) !important;
}
.mw-parser-output h2:first-child { margin-top: 0 !important; }

.mw-parser-output h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--bmc-text) !important;
  margin: 28px 0 10px !important;
  scroll-margin-top: calc(var(--bmc-chrome-height) + 20px);
  font-family: var(--bmc-font) !important;
}

.mw-parser-output h4 {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #444 !important;
  margin: 20px 0 8px !important;
  font-family: var(--bmc-font) !important;
}

.mw-parser-output p { margin-bottom: 14px !important; }


/* ── 7. Tables (.wikitable) ── */
.mw-parser-output .wikitable {
  width: 100%;
  border-collapse: collapse !important;
  font-size: 0.83rem;
  font-family: var(--bmc-font);
  background: var(--bmc-bg);
  border: 1px solid #e4e4e4 !important;
  margin-bottom: 26px;
}
.mw-parser-output .wikitable thead th,
.mw-parser-output .wikitable > tr > th {
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 11px 14px !important;
  font-weight: 600;
  font-size: 0.78rem;
  text-align: left;
  border: none !important;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.mw-parser-output .wikitable tbody td,
.mw-parser-output .wikitable > tr > td {
  padding: 10px 14px !important;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}
.mw-parser-output .wikitable tbody tr:hover td { background: #fafafa; }
.mw-parser-output .wikitable tbody tr:last-child td { border-bottom: none !important; }
.mw-parser-output .wikitable .section-row td {
  background: #f5f5f5 !important;
  font-weight: 600;
  font-size: 0.8rem;
  color: #555;
  padding: 7px 14px !important;
}


/* ── 8. Our Injected Topbar ── */
.bmc-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bmc-crimson);
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 0;
  text-align: right;
  font-family: var(--bmc-font);
  height: 28px;
  box-sizing: border-box;
}
.bmc-topbar .bmc-inner {
  max-width: var(--bmc-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.bmc-topbar a { color: #fff; opacity: 0.85; text-decoration: none; }
.bmc-topbar a:hover { opacity: 1; }
.bmc-topbar .bmc-sep { margin: 0 6px; opacity: 0.5; }


/* ── 9. Our Injected Header ── */
.bmc-header {
  position: fixed;
  top: 28px; /* sits below topbar */
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  font-family: var(--bmc-font);
  height: 68px;
}
.bmc-header-inner {
  max-width: var(--bmc-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.bmc-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.bmc-logo-mark {
  width: 40px; height: 40px;
  background: var(--bmc-crimson);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.bmc-logo-name {
  font-size: 1rem; font-weight: 700; color: var(--bmc-text);
  letter-spacing: -0.2px; line-height: 1.2; display: block;
}
.bmc-logo-sub {
  font-size: 0.72rem; color: var(--bmc-text-muted); display: block;
}

/* Right side wrapper (nav + search + user tools) */
.bmc-header-right {
  display: flex; align-items: center; gap: 8px;
}

/* Vector search box moved into our header */
.bmc-header-right .vector-search-box { margin: 0 !important; padding: 0 !important; }
.bmc-header-right #searchform input[type="search"],
.bmc-header-right .vector-search-box-input {
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  font-size: 0.82rem !important;
  font-family: var(--bmc-font) !important;
  width: 160px !important;
}
.bmc-header-right #searchform input[type="search"]:focus,
.bmc-header-right .vector-search-box-input:focus {
  border-color: var(--bmc-crimson) !important;
  outline: none !important;
  width: 200px !important;
  transition: width 0.2s !important;
}

/* Vector user links moved into our header */
.bmc-header-right .vector-user-links,
.bmc-header-right #p-personal {
  margin: 0 !important; padding: 0 !important;
  font-size: 0.82rem !important;
  font-family: var(--bmc-font) !important;
}


/* ── 10. Navigation ── */
.bmc-nav > ul {
  list-style: none; display: flex; gap: 2px; margin: 0; padding: 0;
}
.bmc-nav > ul > li { position: relative; }
.bmc-nav > ul > li > a {
  display: block; padding: 8px 14px;
  font-size: 0.85rem; font-weight: 500; color: #333;
  border-radius: 4px; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  text-decoration: none; font-family: var(--bmc-font);
}
.bmc-nav > ul > li > a:hover,
.bmc-nav > ul > li.bmc-active > a {
  background: #f5f5f5; color: var(--bmc-crimson); text-decoration: none;
}
.bmc-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.6; }
.bmc-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border: 1px solid #e0e0e0;
  border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  min-width: 200px; padding: 6px 0; z-index: 1100;
  font-family: var(--bmc-font);
}
.bmc-dropdown:hover .bmc-dropdown-menu { display: block; }
.bmc-dropdown-menu a {
  display: block; padding: 8px 18px;
  font-size: 0.83rem; color: #333;
  transition: background 0.12s; text-decoration: none;
}
.bmc-dropdown-menu a:hover { background: #faf0f0; color: var(--bmc-crimson); text-decoration: none; }
.bmc-dropdown-menu .bmc-divider { border-top: 1px solid #eee; margin: 4px 0; }
.bmc-dropdown-menu .bmc-group-label {
  padding: 6px 18px 2px; font-size: 0.7rem;
  font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.05em;
}


/* ── 11. Our Injected Hero ── */
.bmc-hero {
  background: linear-gradient(135deg, var(--bmc-crimson) 0%, var(--bmc-crimson-dark) 100%);
  color: #fff; padding: 40px 0 36px;
  font-family: var(--bmc-font);
}
.bmc-hero .bmc-inner {
  max-width: var(--bmc-max-width); margin: 0 auto; padding: 0 24px;
}
.bmc-breadcrumb { font-size: 0.78rem; margin-bottom: 10px; opacity: 0.75; }
.bmc-breadcrumb a { color: #fff; text-decoration: none; }
.bmc-breadcrumb a:hover { text-decoration: underline; }
.bmc-breadcrumb .bmc-sep { margin: 0 6px; }
.bmc-hero-title {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.5px;
  color: #fff; margin: 0; padding: 0; border: none;
}


/* ── 12. Our Injected Footer ── */
.bmc-footer {
  background: #1a1a1a; color: #aaa;
  padding: 40px 0; font-size: 0.82rem;
  font-family: var(--bmc-font);
}
.bmc-footer-inner {
  max-width: var(--bmc-max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
}
.bmc-footer h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #fff; margin-bottom: 12px;
}
.bmc-footer ul { list-style: none; margin: 0; padding: 0; }
.bmc-footer ul li { margin-bottom: 6px; }
.bmc-footer a { color: #aaa; text-decoration: none; }
.bmc-footer a:hover { color: #fff; }
.bmc-footer-bottom {
  max-width: var(--bmc-max-width); margin: 24px auto 0;
  padding: 20px 24px 0; border-top: 1px solid #333;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 0.77rem; color: #666;
}


/* ── 13. Component Classes (for use in wiki markup) ── */
.bmc-card {
  background: var(--bmc-bg-card); border: 1px solid var(--bmc-border);
  border-radius: 8px; padding: 20px 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--bmc-font);
}
.bmc-card:hover { border-color: var(--bmc-border-hover); box-shadow: 0 2px 10px rgba(163,31,52,0.07); }
.bmc-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--bmc-crimson); margin-bottom: 6px; }
.bmc-card p  { font-size: 0.82rem; color: #555; margin: 0; line-height: 1.5; }

.bmc-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin: 20px 0 28px; }
.bmc-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 20px 0 28px; }
.bmc-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 20px 0 28px; }

.bmc-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;
}
.bmc-note strong { color: #c0622a; }
.bmc-note-info { background: #f0f6ff; border-left-color: #3b7dd8; }
.bmc-note-warn { background: #fff9e6; border-left-color: #d4a017; }

.bmc-badge { display: inline-block; font-size: 0.68rem; padding: 2px 7px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.bmc-badge-red   { background: var(--bmc-crimson-light); color: var(--bmc-crimson); }
.bmc-badge-blue  { background: #e8f4fd; color: #1a6fa8; }
.bmc-badge-green { background: #e8f9ef; color: #1a8042; }
.bmc-badge-gray  { background: #f0f0f0; color: #555; }


/* ── 14. Tab Panel System ── */
.tab-bar-wrap {
  background: linear-gradient(135deg, var(--bmc-crimson) 0%, var(--bmc-crimson-dark) 100%);
  border-bottom: 3px solid rgba(0,0,0,0.15);
}
.tab-bar {
  max-width: var(--bmc-max-width); margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0; padding: 13px 22px;
  font-size: 0.87rem; font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: transparent; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
  cursor: pointer; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  border-radius: 4px 4px 0 0; font-family: var(--bmc-font);
}
.tab-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.tab-btn.active { color: #fff; font-weight: 600; background: rgba(255,255,255,0.12); border-bottom-color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }


/* ── 15. Responsive ── */
@media screen and (max-width: 860px) {
  .bmc-grid-2, .bmc-grid-3, .bmc-grid-4 { grid-template-columns: 1fr; }
  .bmc-footer-inner { grid-template-columns: 1fr 1fr; }
  .mw-content-container { padding: 24px 16px 60px !important; }
}
@media screen and (max-width: 580px) {
  .bmc-hero-title { font-size: 1.5rem; }
  .bmc-footer-inner { grid-template-columns: 1fr; }
  .bmc-nav > ul { display: none; }
}