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
   BioMicro Center Wiki Modern UI
   Skin: Vector-2022  |  Scope: User:USERNAME/common.css
   Paste into: User:USERNAME/common.css
  Promoted to: MediaWiki:Common.css (by sysop)
  Targets: Vector (legacy) + Vector 2022
   ============================================================ */
   ============================================================ */


/* ── 1. Design Tokens ── */
/* ── 1. CSS Variables ───────────────────────────────────────── */
:root {
:root {
   --bmc-crimson:       #a31f34;
   --bmc-red:       #A31F34;
   --bmc-crimson-dark: #7a1626;
   --bmc-red-dark:   #8B1A2C;
   --bmc-crimson-light: #fde8ec;
   --bmc-red-light: #c9374f;
   --bmc-text:         #1a1a1a;
   --bmc-bg:         #F8F9FA;
   --bmc-text-muted:   #666;
   --bmc-white:     #FFFFFF;
   --bmc-bg:           #fff;
   --bmc-text:       #1A1A1A;
   --bmc-bg-card:       #f9f9f9;
   --bmc-muted:     #555555;
   --bmc-border:       #e8e8e8;
   --bmc-border:     #E0E0E0;
   --bmc-border-hover: #c8a0a8;
   --bmc-shadow:    0 2px 8px rgba(0,0,0,0.08);
   --bmc-font:         'Helvetica Neue', Arial, sans-serif;
  --bmc-radius:     6px;
   --bmc-max-width:     1140px;
   --bmc-font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  /* Combined height of topbar (28px) + header (68px) */
                    "Helvetica Neue", Arial, sans-serif;
   --bmc-chrome-height: 96px;
   --bmc-sidebar-w: 180px;
   --bmc-transition: 0.25s ease;
}
}


/* ── 2. Page Base & Body ────────────────────────────────────── */
html, body {
  background-color: var(--bmc-bg) !important;
  font-family: var(--bmc-font) !important;
  font-size: 15px !important;
  color: var(--bmc-text) !important;
  line-height: 1.7 !important;
}
#mw-page-base,
.mw-page-container {
  background-color: var(--bmc-bg) !important;
}


/* ── 2. Hide Vector-2022 Chrome ── */
/* ── 3. Header ──────────────────────────────────────────────── */
/* We replace these with our own injected elements */
/* Legacy Vector */
#mw-head,
#mw-head-base {
  background-color: var(--bmc-red) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}
 
/* Vector 2022 */
.vector-header,
.vector-header,
.vector-sticky-header,
.vector-header-container,
.vector-sticky-header-container,
.vector-header-start,
.vector-main-menu-container,
.vector-header-end {
.vector-footer,
  background-color: var(--bmc-red) !important;
.vector-footer-container,
  border-bottom: none !important;
#footer,
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
.mw-footer,
}
/* Hide original h1 — recreated in our hero */
 
h1.firstHeading,
/* Site name / logo text */
.mw-first-heading {
#p-logo a,
   display: none !important;
.mw-wiki-logo,
.vector-header .mw-logo {
   color: var(--bmc-white) !important;
}
}


/* Search bar */
#searchInput,
#searchform input[type="search"],
.vector-search-box input {
  border: 1px solid rgba(255,255,255,0.4) !important;
  border-radius: var(--bmc-radius) !important;
  background: rgba(255,255,255,0.15) !important;
  color: var(--bmc-white) !important;
  padding: 5px 10px !important;
  transition: background var(--bmc-transition) !important;
}


/* ── 3. Page Container — push down for our fixed header ── */
#searchInput:focus,
html {
.vector-search-box input:focus {
   scroll-behavior: smooth;
  background: rgba(255,255,255,0.95) !important;
   color: var(--bmc-text) !important;
  outline: none !important;
}
}


body {
#searchInput::placeholder,
  font-family: var(--bmc-font) !important;
.vector-search-box input::placeholder {
  background: var(--bmc-bg) !important;
   color: rgba(255,255,255,0.7) !important;
  margin: 0 !important;
   padding: 0 !important;
}
}


.mw-page-container {
/* Search button */
   padding-top: var(--bmc-chrome-height) !important;
#searchButton,
   max-width: 100% !important;
.vector-search-box button[type="submit"] {
   margin: 0 !important;
   background: rgba(255,255,255,0.2) !important;
   padding-left: 0 !important;
   border: 1px solid rgba(255,255,255,0.4) !important;
   padding-right: 0 !important;
   border-radius: var(--bmc-radius) !important;
   padding-bottom: 0 !important;
   color: var(--bmc-white) !important;
   cursor: pointer !important;
   transition: background var(--bmc-transition) !important;
}
}


.mw-page-container-inner {
#searchButton:hover,
   padding: 0 !important;
.vector-search-box button[type="submit"]:hover {
  margin: 0 !important;
   background: rgba(255,255,255,0.35) !important;
}
}


/* Personal tools (login, user links) */
#pt-userpage a,
#pt-login a,
#pt-logout a,
.vector-user-menu a,
#p-personal li a {
  color: var(--bmc-white) !important;
  opacity: 0.9;
  transition: opacity var(--bmc-transition) !important;
}


/* ── 4. Content Container — match our 1140px centered layout ── */
#pt-userpage a:hover,
.mw-content-container {
#pt-login a:hover,
  max-width: var(--bmc-max-width) !important;
#pt-logout a:hover,
  margin: 0 auto !important;
.vector-user-menu a:hover,
   padding: 40px 24px 80px !important;
#p-personal li a:hover {
   box-sizing: border-box !important;
   opacity: 1 !important;
   text-decoration: underline !important;
}
}


/* The main content area */
/* ── 4. Navigation Tabs ─────────────────────────────────────── */
#content,
#left-navigation,
.mw-body {
#right-navigation,
  margin: 0 !important;
.vector-menu-tabs {
  padding: 0 !important;
  border: none !important;
   background: transparent !important;
   background: transparent !important;
  border-bottom: 2px solid var(--bmc-border) !important;
  margin-bottom: 0 !important;
}
}


/* Vector's page toolbar (edit / talk / history tabs) — restyle subtly */
/* Tab links */
.vector-page-toolbar {
#left-navigation li a,
   max-width: var(--bmc-max-width) !important;
#right-navigation li a,
   margin: 0 auto !important;
.vector-menu-tabs li a {
   padding: 0 !important;
   color: var(--bmc-muted) !important;
   border-bottom: 1px solid var(--bmc-border) !important;
   border: none !important;
   background: var(--bmc-bg) !important;
  background: transparent !important;
  font-size: 13px !important;
   padding: 6px 12px !important;
   border-radius: var(--bmc-radius) var(--bmc-radius) 0 0 !important;
   transition: color var(--bmc-transition), background var(--bmc-transition) !important;
}
}


.vector-page-toolbar-tabs {
#left-navigation li a:hover,
   font-family: var(--bmc-font) !important;
#right-navigation li a:hover,
   font-size: 0.83rem !important;
.vector-menu-tabs li a:hover {
   color: var(--bmc-red) !important;
   background: rgba(163,31,52,0.06) !important;
}
}


/* Style the active edit tab in crimson */
/* Active tab */
.vector-menu-tabs .selected a {
#left-navigation li.selected a,
   color: var(--bmc-crimson) !important;
#left-navigation li.new.selected a,
   border-bottom-color: var(--bmc-crimson) !important;
.vector-menu-tabs li.selected a {
   color: var(--bmc-red) !important;
   border-bottom: 2px solid var(--bmc-red) !important;
  background: transparent !important;
  font-weight: 600 !important;
}
}


 
/* ── 5. Sidebar ─────────────────────────────────────────────── */
/* ── 5. TOC — restyle Vector's existing TOC to match our sidebar card ── */
/* Legacy Vector */
/* Vector-2022 positions the TOC in a left column inside #content */
#mw-panel {
.vector-toc-landmark,
  background: var(--bmc-white) !important;
#mw-panel-toc {
  border-right: 1px solid var(--bmc-border) !important;
   width: 220px !important;
  padding-top: 12px !important;
   flex-shrink: 0 !important;
   width: var(--bmc-sidebar-w) !important;
   transition: transform var(--bmc-transition), width var(--bmc-transition) !important;
}
}


.vector-toc {
/* Vector 2022 */
   background: var(--bmc-bg-card) !important;
.vector-column-start {
   border: 1px solid var(--bmc-border) !important;
   background: var(--bmc-white) !important;
   border-radius: 8px !important;
   border-right: 1px solid var(--bmc-border) !important;
  padding: 20px !important;
   transition: width var(--bmc-transition) !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 {
/* Collapsed state (class added by JS) */
   border-bottom: 1px solid var(--bmc-border) !important;
body.sidebar-collapsed #mw-panel,
   padding-bottom: 10px !important;
body.sidebar-collapsed .vector-column-start {
   margin-bottom: 10px !important;
   width: 0 !important;
   background: none !important;
   overflow: hidden !important;
   border-right: none !important;
   padding: 0 !important;
}
}


.vector-toc .vector-toc-title-text {
/* Portlet headings */
   font-size: 0.78rem !important;
.portlet h3,
.mw-portlet-heading,
.vector-menu-heading {
   font-size: 11px !important;
   font-weight: 700 !important;
   font-weight: 700 !important;
  letter-spacing: 0.08em !important;
   text-transform: uppercase !important;
   text-transform: uppercase !important;
   letter-spacing: 0.08em !important;
   color: var(--bmc-muted) !important;
   color: #999 !important;
  padding: 10px 14px 4px !important;
   font-family: var(--bmc-font) !important;
   margin: 0 !important;
   border: none !important;
}
}


/* Hide the expand/collapse toggle button */
/* Portlet links */
.vector-toc-toggle { display: none !important; }
.portlet li a,
 
.mw-portlet-body li a,
.vector-toc .vector-toc-link {
.vector-menu-content li a {
   font-size: 0.82rem !important;
   color: var(--bmc-text) !important;
   color: #444 !important;
   font-size: 13px !important;
   padding: 4px 8px !important;
   padding: 4px 14px !important;
  border-radius: 4px !important;
  transition: background 0.12s, color 0.12s !important;
  text-decoration: none !important;
   display: block !important;
   display: block !important;
   font-family: var(--bmc-font) !important;
   border-radius: 3px !important;
  transition: color var(--bmc-transition), background var(--bmc-transition) !important;
}
}


.vector-toc .vector-toc-link:hover {
.portlet li a:hover,
   background: #f0e8ea !important;
.mw-portlet-body li a:hover,
   color: var(--bmc-crimson) !important;
.vector-menu-content li a:hover {
   color: var(--bmc-red) !important;
   background: rgba(163,31,52,0.06) !important;
   text-decoration: none !important;
   text-decoration: none !important;
}
}


.vector-toc-list-item-active > .vector-toc-link {
/* Active page link */
   color: var(--bmc-crimson) !important;
.portlet li.active a {
   color: var(--bmc-red) !important;
   font-weight: 600 !important;
   font-weight: 600 !important;
  background: #fdf5f6 !important;
}
}


/* Indent sub-sections */
/* ── 6. Sidebar Toggle Button ───────────────────────────────── */
.vector-toc .vector-toc-list .vector-toc-list > li > .vector-toc-link {
#bmc-sidebar-toggle {
   padding-left: 20px !important;
  position: fixed;
   font-size: 0.78px !important;
  top: 12px;
   color: var(--bmc-text-muted) !important;
  left: 12px;
  z-index: 9999;
  background: var(--bmc-red);
  color: var(--bmc-white);
  border: none;
  border-radius: var(--bmc-radius);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
   justify-content: center;
   font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
   transition: background var(--bmc-transition);
}
}


#bmc-sidebar-toggle:hover {
  background: var(--bmc-red-dark);
}


/* ── 6. Content Typography ── */
/* ── 7. Content Area ────────────────────────────────────────── */
.mw-parser-output,
#content,
.mw-body-content {
.mw-body,
.vector-body {
  background: var(--bmc-white) !important;
  border: 1px solid var(--bmc-border) !important;
  border-radius: var(--bmc-radius) !important;
  box-shadow: var(--bmc-shadow) !important;
  padding: 28px 36px !important;
  margin: 16px !important;
}
 
/* Page title */
#firstHeading,
.mw-first-heading {
   font-family: var(--bmc-font) !important;
   font-family: var(--bmc-font) !important;
   font-size: 0.9rem;
   font-size: 26px !important;
   color: #333;
  font-weight: 700 !important;
   line-height: 1.6;
   color: var(--bmc-text) !important;
  border-bottom: 2px solid var(--bmc-red) !important;
  padding-bottom: 10px !important;
   margin-bottom: 20px !important;
}
}


.mw-parser-output a,
/* ── 8. Typography ──────────────────────────────────────────── */
.mw-body-content a {
.mw-parser-output {
   color: var(--bmc-crimson);
   font-family: var(--bmc-font) !important;
   text-decoration: none;
   font-size: 15px !important;
  line-height: 1.75 !important;
  color: var(--bmc-text) !important;
}
}
.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 h1 {
.mw-parser-output a.external { color: var(--bmc-crimson); }
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--bmc-text) !important;
  margin: 28px 0 12px !important;
}


.mw-parser-output h2 {
.mw-parser-output h2 {
   font-size: 1.35rem !important;
   font-size: 20px !important;
   font-weight: 700 !important;
   font-weight: 700 !important;
   color: var(--bmc-text) !important;
   color: var(--bmc-text) !important;
  padding-bottom: 10px !important;
   border-bottom: none !important;
   border-bottom: 2px solid var(--bmc-crimson) !important;
   margin: 32px 0 0 !important;
   margin: 48px 0 18px !important;
   padding: 0 !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 {
.mw-parser-output h3 {
   font-size: 1rem !important;
   font-size: 16px !important;
   font-weight: 600 !important;
   font-weight: 600 !important;
   color: var(--bmc-text) !important;
   color: var(--bmc-text) !important;
   margin: 28px 0 10px !important;
   margin: 18px 0 8px !important;
  scroll-margin-top: calc(var(--bmc-chrome-height) + 20px);
  font-family: var(--bmc-font) !important;
}
}


.mw-parser-output h4 {
.mw-parser-output h4,
   font-size: 0.88rem !important;
.mw-parser-output h5,
   font-weight: 700 !important;
.mw-parser-output h6 {
   color: #444 !important;
   font-size: 14px !important;
   margin: 20px 0 8px !important;
   font-weight: 600 !important;
   font-family: var(--bmc-font) !important;
   color: var(--bmc-muted) !important;
   text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
   margin: 16px 0 6px !important;
}
}


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


/* ── 9. Section Cards (h2 blocks) ───────────────────────────── */
.mw-parser-output .mw-headline {
  display: block !important;
}


/* ── 7. Tables (.wikitable) ── */
/* Wrap each h2 section visually */
.mw-parser-output .wikitable {
.mw-parser-output h2 {
   width: 100%;
   background: var(--bmc-white) !important;
   border-collapse: collapse !important;
   border-left: 4px solid var(--bmc-red) !important;
   font-size: 0.83rem;
   border-radius: 0 var(--bmc-radius) var(--bmc-radius) 0 !important;
  font-family: var(--bmc-font);
   padding: 12px 16px !important;
  background: var(--bmc-bg);
   margin-top: 28px !important;
   border: 1px solid #e4e4e4 !important;
  box-shadow: var(--bmc-shadow) !important;
   margin-bottom: 26px;
}
}
.mw-parser-output .wikitable thead th,
 
.mw-parser-output .wikitable > tr > th {
/* ── 10. Links ──────────────────────────────────────────────── */
  background: #1a1a1a !important;
.mw-parser-output a,
   color: #fff !important;
#bodyContent a {
   padding: 11px 14px !important;
   color: var(--bmc-red) !important;
   font-weight: 600;
   text-decoration: none !important;
  font-size: 0.78rem;
   transition: color var(--bmc-transition) !important;
  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 {
.mw-parser-output a:hover,
   padding: 10px 14px !important;
#bodyContent a:hover {
  vertical-align: top;
   color: var(--bmc-red-dark) !important;
  border-bottom: 1px solid #f0f0f0 !important;
   text-decoration: underline !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; }
/* External link icon tint */
.mw-parser-output .wikitable .section-row td {
.mw-parser-output a.external {
   background: #f5f5f5 !important;
   color: var(--bmc-red) !important;
  font-weight: 600;
  font-size: 0.8rem;
  color: #555;
  padding: 7px 14px !important;
}
}


/* ── 11. Tables ─────────────────────────────────────────────── */
.mw-parser-output table,
.wikitable {
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 16px 0 !important;
  font-size: 14px !important;
  border-radius: var(--bmc-radius) !important;
  overflow: hidden !important;
  box-shadow: var(--bmc-shadow) !important;
  border: 1px solid var(--bmc-border) !important;
}


/* ── 8. Our Injected Topbar ── */
.wikitable th,
.bmc-topbar {
.mw-parser-output table th {
  position: fixed;
   background: var(--bmc-red) !important;
  top: 0;
   color: var(--bmc-white) !important;
  left: 0;
   font-weight: 600 !important;
  right: 0;
   padding: 10px 14px !important;
  z-index: 1000;
   text-align: left !important;
   background: var(--bmc-crimson);
   border: none !important;
   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);
.wikitable td,
   margin: 0 auto;
.mw-parser-output table td {
  padding: 0 24px;
   padding: 9px 14px !important;
  border: none !important;
  border-bottom: 1px solid var(--bmc-border) !important;
   vertical-align: top !important;
}
}
.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; }


.wikitable tr:nth-child(even) td,
.mw-parser-output table tr:nth-child(even) td {
  background: #fafafa !important;
}


/* ── 9. Our Injected Header ── */
.wikitable tr:hover td,
.bmc-header {
.mw-parser-output table tr:hover td {
  position: fixed;
   background: rgba(163,31,52,0.04) !important;
  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);
/* ── 12. Table of Contents ──────────────────────────────────── */
   margin: 0 auto;
#toc,
   padding: 0 24px;
.toc {
   display: flex;
  background: var(--bmc-white) !important;
   align-items: center;
   border: 1px solid var(--bmc-border) !important;
   justify-content: space-between;
   border-radius: var(--bmc-radius) !important;
   height: 68px;
   box-shadow: var(--bmc-shadow) !important;
   padding: 14px 18px !important;
   font-size: 13px !important;
   display: inline-block !important;
   min-width: 200px !important;
}
}


/* Logo */
.toctitle h2,
.bmc-logo {
#toc .toctitle h2 {
   display: flex; align-items: center; gap: 12px;
   font-size: 13px !important;
   text-decoration: none; flex-shrink: 0;
  font-weight: 700 !important;
  text-transform: uppercase !important;
   letter-spacing: 0.06em !important;
  color: var(--bmc-muted) !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}
}
.bmc-logo-mark {
 
   width: 40px; height: 40px;
.toc a {
  background: var(--bmc-crimson);
   color: var(--bmc-text) !important;
  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);
.toc a:hover {
  letter-spacing: -0.2px; line-height: 1.2; display: block;
   color: var(--bmc-red) !important;
}
}
.bmc-logo-sub {
 
   font-size: 0.72rem; color: var(--bmc-text-muted); display: block;
/* ── 13. Footer ─────────────────────────────────────────────── */
#footer,
.mw-footer {
   background: #2a2a2a !important;
  color: #ccc !important;
  border-top: 3px solid var(--bmc-red) !important;
  padding: 20px 24px !important;
  font-size: 13px !important;
  margin-top: 24px !important;
}
}


/* Right side wrapper (nav + search + user tools) */
#footer a,
.bmc-header-right {
.mw-footer a {
   display: flex; align-items: center; gap: 8px;
   color: #ddd !important;
  text-decoration: underline !important;
}
}


/* Vector search box moved into our header */
#footer a:hover,
.bmc-header-right .vector-search-box { margin: 0 !important; padding: 0 !important; }
.mw-footer a:hover {
.bmc-header-right #searchform input[type="search"],
   color: var(--bmc-white) !important;
.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 {
#footer-info li,
   border-color: var(--bmc-crimson) !important;
#footer-places li {
  outline: none !important;
   display: inline !important;
   width: 200px !important;
   margin-right: 16px !important;
   transition: width 0.2s !important;
   list-style: none !important;
}
}


/* Vector user links moved into our header */
/* ── 14. Responsive ─────────────────────────────────────────── */
.bmc-header-right .vector-user-links,
@media (max-width: 768px) {
.bmc-header-right #p-personal {
  #content,
  margin: 0 !important; padding: 0 !important;
  .mw-body,
  font-size: 0.82rem !important;
  .vector-body {
   font-family: var(--bmc-font) !important;
    margin: 8px !important;
}
    padding: 16px !important;
   }


  #mw-panel,
  .vector-column-start {
    display: none !important;
  }


/* ── 10. Navigation ── */
   #firstHeading,
.bmc-nav > ul {
   .mw-first-heading {
  list-style: none; display: flex; gap: 2px; margin: 0; padding: 0;
    font-size: 22px !important;
}
   }
.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;
}


  .mw-parser-output h2 {
    font-size: 17px !important;
  }


/* ── 11. Our Injected Hero ── */
   #bmc-sidebar-toggle {
.bmc-hero {
    display: none !important;
   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;
/* ── 15. Edit / Action Buttons ──────────────────────────────── */
.mw-editsection a,
.mw-editsection-bracket {
   color: var(--bmc-muted) !important;
  font-size: 12px !important;
}
}
.bmc-breadcrumb { font-size: 0.78rem; margin-bottom: 10px; opacity: 0.75; }
 
.bmc-breadcrumb a { color: #fff; text-decoration: none; }
.mw-editsection a:hover {
.bmc-breadcrumb a:hover { text-decoration: underline; }
   color: var(--bmc-red) !important;
.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;
}
}


 
/* ── 16. Notices & Infoboxes ────────────────────────────────── */
/* ── 12. Our Injected Footer ── */
.mw-parser-output .infobox {
.bmc-footer {
   border: 1px solid var(--bmc-border) !important;
   background: #1a1a1a; color: #aaa;
  border-radius: var(--bmc-radius) !important;
   padding: 40px 0; font-size: 0.82rem;
   background: var(--bmc-white) !important;
   font-family: var(--bmc-font);
  font-size: 13px !important;
   box-shadow: var(--bmc-shadow) !important;
}
}
.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) ── */
.mw-parser-output .infobox th {
.bmc-card {
   background: var(--bmc-red) !important;
   background: var(--bmc-bg-card); border: 1px solid var(--bmc-border);
   color: var(--bmc-white) !important;
   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; }
/* ── 17. Code blocks ────────────────────────────────────────── */
.bmc-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 20px 0 28px; }
.mw-parser-output code,
.bmc-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 20px 0 28px; }
.mw-parser-output pre {
 
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
.bmc-note {
   background: #f4f4f4 !important;
   background: #fdf6f0; border-left: 3px solid #e07b39;
  border: 1px solid var(--bmc-border) !important;
   padding: 10px 14px; border-radius: 0 6px 6px 0;
   border-radius: 4px !important;
   font-size: 0.82rem; color: #555; margin: 12px 0 18px;
   font-size: 13px !important;
}
}
.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; }
.mw-parser-output code {
.bmc-badge-red  { background: var(--bmc-crimson-light); color: var(--bmc-crimson); }
   padding: 1px 5px !important;
.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 ── */
.mw-parser-output pre {
@media screen and (max-width: 860px) {
   padding: 12px 16px !important;
  .bmc-grid-2, .bmc-grid-3, .bmc-grid-4 { grid-template-columns: 1fr; }
   overflow-x: auto !important;
  .bmc-footer-inner { grid-template-columns: 1fr 1fr; }
   line-height: 1.5 !important;
   .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; }
}
}

Revision as of 21:31, 8 May 2026

/* ============================================================
   BioMicro Center Wiki — Modern UI
   Paste into: User:USERNAME/common.css
   Promoted to: MediaWiki:Common.css (by sysop)
   Targets: Vector (legacy) + Vector 2022
   ============================================================ */

/* ── 1. CSS Variables ───────────────────────────────────────── */
:root {
  --bmc-red:        #A31F34;
  --bmc-red-dark:   #8B1A2C;
  --bmc-red-light:  #c9374f;
  --bmc-bg:         #F8F9FA;
  --bmc-white:      #FFFFFF;
  --bmc-text:       #1A1A1A;
  --bmc-muted:      #555555;
  --bmc-border:     #E0E0E0;
  --bmc-shadow:     0 2px 8px rgba(0,0,0,0.08);
  --bmc-radius:     6px;
  --bmc-font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                    "Helvetica Neue", Arial, sans-serif;
  --bmc-sidebar-w:  180px;
  --bmc-transition: 0.25s ease;
}

/* ── 2. Page Base & Body ────────────────────────────────────── */
html, body {
  background-color: var(--bmc-bg) !important;
  font-family: var(--bmc-font) !important;
  font-size: 15px !important;
  color: var(--bmc-text) !important;
  line-height: 1.7 !important;
}

#mw-page-base,
.mw-page-container {
  background-color: var(--bmc-bg) !important;
}

/* ── 3. Header ──────────────────────────────────────────────── */
/* Legacy Vector */
#mw-head,
#mw-head-base {
  background-color: var(--bmc-red) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}

/* Vector 2022 */
.vector-header,
.vector-header-container,
.vector-header-start,
.vector-header-end {
  background-color: var(--bmc-red) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}

/* Site name / logo text */
#p-logo a,
.mw-wiki-logo,
.vector-header .mw-logo {
  color: var(--bmc-white) !important;
}

/* Search bar */
#searchInput,
#searchform input[type="search"],
.vector-search-box input {
  border: 1px solid rgba(255,255,255,0.4) !important;
  border-radius: var(--bmc-radius) !important;
  background: rgba(255,255,255,0.15) !important;
  color: var(--bmc-white) !important;
  padding: 5px 10px !important;
  transition: background var(--bmc-transition) !important;
}

#searchInput:focus,
.vector-search-box input:focus {
  background: rgba(255,255,255,0.95) !important;
  color: var(--bmc-text) !important;
  outline: none !important;
}

#searchInput::placeholder,
.vector-search-box input::placeholder {
  color: rgba(255,255,255,0.7) !important;
}

/* Search button */
#searchButton,
.vector-search-box button[type="submit"] {
  background: rgba(255,255,255,0.2) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  border-radius: var(--bmc-radius) !important;
  color: var(--bmc-white) !important;
  cursor: pointer !important;
  transition: background var(--bmc-transition) !important;
}

#searchButton:hover,
.vector-search-box button[type="submit"]:hover {
  background: rgba(255,255,255,0.35) !important;
}

/* Personal tools (login, user links) */
#pt-userpage a,
#pt-login a,
#pt-logout a,
.vector-user-menu a,
#p-personal li a {
  color: var(--bmc-white) !important;
  opacity: 0.9;
  transition: opacity var(--bmc-transition) !important;
}

#pt-userpage a:hover,
#pt-login a:hover,
#pt-logout a:hover,
.vector-user-menu a:hover,
#p-personal li a:hover {
  opacity: 1 !important;
  text-decoration: underline !important;
}

/* ── 4. Navigation Tabs ─────────────────────────────────────── */
#left-navigation,
#right-navigation,
.vector-menu-tabs {
  background: transparent !important;
  border-bottom: 2px solid var(--bmc-border) !important;
  margin-bottom: 0 !important;
}

/* Tab links */
#left-navigation li a,
#right-navigation li a,
.vector-menu-tabs li a {
  color: var(--bmc-muted) !important;
  border: none !important;
  background: transparent !important;
  font-size: 13px !important;
  padding: 6px 12px !important;
  border-radius: var(--bmc-radius) var(--bmc-radius) 0 0 !important;
  transition: color var(--bmc-transition), background var(--bmc-transition) !important;
}

#left-navigation li a:hover,
#right-navigation li a:hover,
.vector-menu-tabs li a:hover {
  color: var(--bmc-red) !important;
  background: rgba(163,31,52,0.06) !important;
}

/* Active tab */
#left-navigation li.selected a,
#left-navigation li.new.selected a,
.vector-menu-tabs li.selected a {
  color: var(--bmc-red) !important;
  border-bottom: 2px solid var(--bmc-red) !important;
  background: transparent !important;
  font-weight: 600 !important;
}

/* ── 5. Sidebar ─────────────────────────────────────────────── */
/* Legacy Vector */
#mw-panel {
  background: var(--bmc-white) !important;
  border-right: 1px solid var(--bmc-border) !important;
  padding-top: 12px !important;
  width: var(--bmc-sidebar-w) !important;
  transition: transform var(--bmc-transition), width var(--bmc-transition) !important;
}

/* Vector 2022 */
.vector-column-start {
  background: var(--bmc-white) !important;
  border-right: 1px solid var(--bmc-border) !important;
  transition: width var(--bmc-transition) !important;
}

/* Collapsed state (class added by JS) */
body.sidebar-collapsed #mw-panel,
body.sidebar-collapsed .vector-column-start {
  width: 0 !important;
  overflow: hidden !important;
  border-right: none !important;
  padding: 0 !important;
}

/* Portlet headings */
.portlet h3,
.mw-portlet-heading,
.vector-menu-heading {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--bmc-muted) !important;
  padding: 10px 14px 4px !important;
  margin: 0 !important;
  border: none !important;
}

/* Portlet links */
.portlet li a,
.mw-portlet-body li a,
.vector-menu-content li a {
  color: var(--bmc-text) !important;
  font-size: 13px !important;
  padding: 4px 14px !important;
  display: block !important;
  border-radius: 3px !important;
  transition: color var(--bmc-transition), background var(--bmc-transition) !important;
}

.portlet li a:hover,
.mw-portlet-body li a:hover,
.vector-menu-content li a:hover {
  color: var(--bmc-red) !important;
  background: rgba(163,31,52,0.06) !important;
  text-decoration: none !important;
}

/* Active page link */
.portlet li.active a {
  color: var(--bmc-red) !important;
  font-weight: 600 !important;
}

/* ── 6. Sidebar Toggle Button ───────────────────────────────── */
#bmc-sidebar-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  background: var(--bmc-red);
  color: var(--bmc-white);
  border: none;
  border-radius: var(--bmc-radius);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background var(--bmc-transition);
}

#bmc-sidebar-toggle:hover {
  background: var(--bmc-red-dark);
}

/* ── 7. Content Area ────────────────────────────────────────── */
#content,
.mw-body,
.vector-body {
  background: var(--bmc-white) !important;
  border: 1px solid var(--bmc-border) !important;
  border-radius: var(--bmc-radius) !important;
  box-shadow: var(--bmc-shadow) !important;
  padding: 28px 36px !important;
  margin: 16px !important;
}

/* Page title */
#firstHeading,
.mw-first-heading {
  font-family: var(--bmc-font) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--bmc-text) !important;
  border-bottom: 2px solid var(--bmc-red) !important;
  padding-bottom: 10px !important;
  margin-bottom: 20px !important;
}

/* ── 8. Typography ──────────────────────────────────────────── */
.mw-parser-output {
  font-family: var(--bmc-font) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: var(--bmc-text) !important;
}

.mw-parser-output h1 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--bmc-text) !important;
  margin: 28px 0 12px !important;
}

.mw-parser-output h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--bmc-text) !important;
  border-bottom: none !important;
  margin: 32px 0 0 !important;
  padding: 0 !important;
}

.mw-parser-output h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--bmc-text) !important;
  margin: 18px 0 8px !important;
}

.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6 {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--bmc-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin: 16px 0 6px !important;
}

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

/* ── 9. Section Cards (h2 blocks) ───────────────────────────── */
.mw-parser-output .mw-headline {
  display: block !important;
}

/* Wrap each h2 section visually */
.mw-parser-output h2 {
  background: var(--bmc-white) !important;
  border-left: 4px solid var(--bmc-red) !important;
  border-radius: 0 var(--bmc-radius) var(--bmc-radius) 0 !important;
  padding: 12px 16px !important;
  margin-top: 28px !important;
  box-shadow: var(--bmc-shadow) !important;
}

/* ── 10. Links ──────────────────────────────────────────────── */
.mw-parser-output a,
#bodyContent a {
  color: var(--bmc-red) !important;
  text-decoration: none !important;
  transition: color var(--bmc-transition) !important;
}

.mw-parser-output a:hover,
#bodyContent a:hover {
  color: var(--bmc-red-dark) !important;
  text-decoration: underline !important;
}

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

/* ── 11. Tables ─────────────────────────────────────────────── */
.mw-parser-output table,
.wikitable {
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 16px 0 !important;
  font-size: 14px !important;
  border-radius: var(--bmc-radius) !important;
  overflow: hidden !important;
  box-shadow: var(--bmc-shadow) !important;
  border: 1px solid var(--bmc-border) !important;
}

.wikitable th,
.mw-parser-output table th {
  background: var(--bmc-red) !important;
  color: var(--bmc-white) !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  text-align: left !important;
  border: none !important;
}

.wikitable td,
.mw-parser-output table td {
  padding: 9px 14px !important;
  border: none !important;
  border-bottom: 1px solid var(--bmc-border) !important;
  vertical-align: top !important;
}

.wikitable tr:nth-child(even) td,
.mw-parser-output table tr:nth-child(even) td {
  background: #fafafa !important;
}

.wikitable tr:hover td,
.mw-parser-output table tr:hover td {
  background: rgba(163,31,52,0.04) !important;
}

/* ── 12. Table of Contents ──────────────────────────────────── */
#toc,
.toc {
  background: var(--bmc-white) !important;
  border: 1px solid var(--bmc-border) !important;
  border-radius: var(--bmc-radius) !important;
  box-shadow: var(--bmc-shadow) !important;
  padding: 14px 18px !important;
  font-size: 13px !important;
  display: inline-block !important;
  min-width: 200px !important;
}

.toctitle h2,
#toc .toctitle h2 {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--bmc-muted) !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

.toc a {
  color: var(--bmc-text) !important;
}

.toc a:hover {
  color: var(--bmc-red) !important;
}

/* ── 13. Footer ─────────────────────────────────────────────── */
#footer,
.mw-footer {
  background: #2a2a2a !important;
  color: #ccc !important;
  border-top: 3px solid var(--bmc-red) !important;
  padding: 20px 24px !important;
  font-size: 13px !important;
  margin-top: 24px !important;
}

#footer a,
.mw-footer a {
  color: #ddd !important;
  text-decoration: underline !important;
}

#footer a:hover,
.mw-footer a:hover {
  color: var(--bmc-white) !important;
}

#footer-info li,
#footer-places li {
  display: inline !important;
  margin-right: 16px !important;
  list-style: none !important;
}

/* ── 14. Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  #content,
  .mw-body,
  .vector-body {
    margin: 8px !important;
    padding: 16px !important;
  }

  #mw-panel,
  .vector-column-start {
    display: none !important;
  }

  #firstHeading,
  .mw-first-heading {
    font-size: 22px !important;
  }

  .mw-parser-output h2 {
    font-size: 17px !important;
  }

  #bmc-sidebar-toggle {
    display: none !important;
  }
}

/* ── 15. Edit / Action Buttons ──────────────────────────────── */
.mw-editsection a,
.mw-editsection-bracket {
  color: var(--bmc-muted) !important;
  font-size: 12px !important;
}

.mw-editsection a:hover {
  color: var(--bmc-red) !important;
}

/* ── 16. Notices & Infoboxes ────────────────────────────────── */
.mw-parser-output .infobox {
  border: 1px solid var(--bmc-border) !important;
  border-radius: var(--bmc-radius) !important;
  background: var(--bmc-white) !important;
  font-size: 13px !important;
  box-shadow: var(--bmc-shadow) !important;
}

.mw-parser-output .infobox th {
  background: var(--bmc-red) !important;
  color: var(--bmc-white) !important;
}

/* ── 17. Code blocks ────────────────────────────────────────── */
.mw-parser-output code,
.mw-parser-output pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
  background: #f4f4f4 !important;
  border: 1px solid var(--bmc-border) !important;
  border-radius: 4px !important;
  font-size: 13px !important;
}

.mw-parser-output code {
  padding: 1px 5px !important;
}

.mw-parser-output pre {
  padding: 12px 16px !important;
  overflow-x: auto !important;
  line-height: 1.5 !important;
}