Jump to content

User:Udays108/common.css

From BioMicro Center
Revision as of 21:51, 8 May 2026 by Udays108 (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 — Modern UI (matches about.html)
   Paste into: User:USERNAME/common.css
   Promoted to: MediaWiki:Common.css (by sysop)
   ============================================================ */

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  color: #1a1a1a !important;
  background: #fff !important;
  line-height: 1.6 !important;
}

a { color: #a31f34 !important; text-decoration: none !important; }
a:hover { text-decoration: underline !important; }

/* ── Topbar (injected by JS as .bmc-topbar) ─────────────────── */
.bmc-topbar {
  background: #a31f34;
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 0;
  text-align: right;
  width: 100%;
  position: relative;
  z-index: 200;
}
.bmc-topbar .bmc-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.bmc-topbar a { color: #fff !important; opacity: 0.85; }
.bmc-topbar a:hover { opacity: 1; text-decoration: none !important; }
.bmc-topbar span { margin: 0 6px; opacity: 0.5; }

/* ── Header: restyle #mw-head to white bar ──────────────────── */
/* Legacy Vector */
#mw-head,
#mw-head-base {
  background: #fff !important;
  border-bottom: 1px solid #e0e0e0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
  height: 68px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* Vector 2022 */
.vector-header,
.vector-header-container {
  background: #fff !important;
  border-bottom: 1px solid #e0e0e0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
  height: 68px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

/* Inner wrapper for header content (flex row) */
#mw-head .bmc-header-inner,
.bmc-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ── Logo ───────────────────────────────────────────────────── */
/* Hide default MediaWiki logo (replaced by JS-injected logo in header) */
#p-logo,
.mw-wiki-logo {
  display: none !important;
}

.bmc-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.bmc-logo-mark {
  width: 40px;
  height: 40px;
  background: #a31f34;
  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-text .bmc-logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.2px;
  display: block;
}
.bmc-logo-text .bmc-logo-sub {
  font-size: 0.72rem;
  color: #666;
  font-weight: 400;
  display: block;
}

/* ── Horizontal Navigation (injected by JS as .bmc-hnav) ────── */
.bmc-hnav {
  display: flex;
  align-items: center;
}
.bmc-hnav > ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.bmc-hnav > ul > li {
  position: relative;
  margin: 0;
}
.bmc-hnav > ul > li > a {
  display: block !important;
  padding: 8px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #333 !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  transition: background 0.15s, color 0.15s !important;
  text-decoration: none !important;
}
.bmc-hnav > ul > li > a:hover,
.bmc-hnav > ul > li.bmc-active > a {
  background: #f5f5f5 !important;
  color: #a31f34 !important;
  text-decoration: none !important;
}
.bmc-hnav .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: 200;
}
.bmc-dropdown:hover .bmc-dropdown-menu { display: block; }
.bmc-dropdown-menu a {
  display: block !important;
  padding: 8px 18px !important;
  font-size: 0.83rem !important;
  color: #333 !important;
  transition: background 0.12s !important;
  text-decoration: none !important;
}
.bmc-dropdown-menu a:hover {
  background: #faf0f0 !important;
  color: #a31f34 !important;
  text-decoration: none !important;
}
.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;
}

/* Hide original MediaWiki nav elements that are replaced */
#mw-head #left-navigation,
#mw-head #right-navigation,
#mw-panel,
.vector-column-start,
#p-personal,
#pt-userpage,
#p-namespaces {
  display: none !important;
}

/* Keep search accessible but repositioned into header by JS */
#p-search, .vector-search-box {
  display: none !important;
}

/* ── Page Hero (injected by JS as .bmc-page-hero) ───────────── */
.bmc-page-hero {
  background: linear-gradient(135deg, #a31f34 0%, #7a1626 100%);
  color: #fff;
  padding: 40px 0 36px;
  width: 100%;
}
.bmc-page-hero .bmc-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.bmc-breadcrumb {
  font-size: 0.78rem;
  margin-bottom: 10px;
  opacity: 0.75;
}
.bmc-breadcrumb a { color: #fff !important; }
.bmc-breadcrumb span { margin: 0 6px; }
.bmc-page-hero h1 {
  font-size: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  color: #fff !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide original page title (shown in hero instead) */
#firstHeading,
.mw-first-heading {
  display: none !important;
}

/* ── Page Layout Container ──────────────────────────────────── */
#content,
.mw-body,
.vector-body {
  max-width: 1140px !important;
  margin: 0 auto !important;
  padding: 40px 24px 80px !important;
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  float: none !important;
}

/* Remove MediaWiki's default content margin-left (for sidebar offset) */
#mw-content-wrapper,
.mw-content-container {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* ── Table of Contents ──────────────────────────────────────── */
#toc,
.toc {
  background: #f9f9f9 !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  padding: 20px !important;
  display: inline-block !important;
  min-width: 200px !important;
  font-size: 0.82rem !important;
  float: none !important;
  margin: 0 0 28px 0 !important;
}
#toc .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: 12px !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}
#toc ul, .toc ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#toc ul li, .toc ul li { margin-bottom: 2px !important; }
#toc ul li a, .toc ul li a {
  font-size: 0.82rem !important;
  color: #444 !important;
  padding: 4px 8px !important;
  display: block !important;
  border-radius: 4px !important;
  transition: background 0.12s, color 0.12s !important;
  text-decoration: none !important;
}
#toc ul li a:hover, .toc ul li a:hover {
  background: #f0e8ea !important;
  color: #a31f34 !important;
  text-decoration: none !important;
}
/* Sub-items */
#toc ul li ul li a, .toc ul li ul li a {
  padding-left: 20px !important;
  color: #666 !important;
  font-size: 0.78rem !important;
}

/* ── Typography ─────────────────────────────────────────────── */
.mw-parser-output {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #333 !important;
}

.mw-parser-output h2 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #a31f34 !important;
  margin: 48px 0 18px !important;
  letter-spacing: -0.2px !important;
  scroll-margin-top: 88px !important;
  /* remove any card styling from prior CSS */
  background: none !important;
  box-shadow: none !important;
  border-left: none !important;
  border-top: none !important;
  border-right: none !important;
  border-radius: 0 !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: 28px 0 10px !important;
  scroll-margin-top: 88px !important;
}

.mw-parser-output h4 {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #a31f34 !important;
  margin-bottom: 6px !important;
  letter-spacing: -0.1px !important;
}

.mw-parser-output p {
  margin-bottom: 14px !important;
  font-size: 0.9rem !important;
  color: #333 !important;
}

/* ── Links ──────────────────────────────────────────────────── */
.mw-parser-output a,
#bodyContent a {
  color: #a31f34 !important;
  text-decoration: none !important;
}
.mw-parser-output a:hover,
#bodyContent a:hover {
  text-decoration: underline !important;
}

/* ── Service Cards ──────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
}
.service-card {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.service-card:hover {
  border-color: #c8a0a8;
  box-shadow: 0 2px 10px rgba(163,31,52,0.07);
}
.service-card h4 {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #a31f34 !important;
  margin-bottom: 6px !important;
}
.service-card p {
  font-size: 0.82rem !important;
  color: #555 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* ── Staff Grid ─────────────────────────────────────────────── */
.staff-section { margin-bottom: 32px; }
.staff-section h3 { margin-bottom: 16px !important; }
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.staff-card {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px 18px;
}
.staff-card .staff-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
}
.staff-card .staff-role {
  font-size: 0.78rem;
  color: #666;
  margin-top: 3px;
  line-height: 1.4;
}
.staff-card.director {
  grid-column: 1 / -1;
  background: #fdf5f6;
  border-color: #d4a0a8;
  display: flex;
  align-items: center;
  gap: 18px;
}
.director-badge {
  width: 44px;
  height: 44px;
  background: #a31f34;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.staff-card.director .staff-name { font-size: 1rem; }
.staff-card.director .staff-role {
  font-size: 0.82rem;
  color: #7a1626;
  font-weight: 500;
}

/* ── Publication List ───────────────────────────────────────── */
.pub-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.pub-list li {
  padding: 14px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  font-size: 0.85rem !important;
}
.pub-list li:last-child { border-bottom: none !important; }
.pub-list .pub-lab { font-weight: 700; color: #1a1a1a; }
.pub-list .pub-desc { color: #444; margin-top: 3px; line-height: 1.5; }
.pub-list .pub-cite {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.75rem;
  background: #f0f0f0;
  color: #555;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── Affiliation Grid ───────────────────────────────────────── */
.affil-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0 24px;
}
.affil-card {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px 18px;
}
.affil-card .affil-name { font-size: 0.85rem; font-weight: 700; color: #1a1a1a; }
.affil-card .affil-rep { font-size: 0.78rem; color: #666; margin-top: 4px; }

/* ── Contact Block ──────────────────────────────────────────── */
.contact-block {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.contact-item { display: flex; flex-direction: column; gap: 3px; }
.contact-item .label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #999;
}
.contact-item .value { color: #1a1a1a; font-weight: 500; }
.contact-item a { color: #a31f34 !important; }

/* ── Note / Info Boxes ──────────────────────────────────────── */
.note {
  background: #fdf6f0;
  border-left: 3px solid #e07b39;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #555;
  margin: 12px 0 18px;
}
.note strong { color: #c0622a; }
.note.note-info {
  background: #f0f6ff;
  border-left-color: #3b7dd8;
}

/* ── Tables ─────────────────────────────────────────────────── */
.wikitable,
.mw-parser-output table {
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 16px 0 !important;
  font-size: 0.88rem !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
.wikitable th,
.mw-parser-output table th {
  background: #a31f34 !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  text-align: left !important;
  border: none !important;
  font-size: 0.85rem !important;
}
.wikitable td,
.mw-parser-output table td {
  padding: 9px 14px !important;
  border: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  vertical-align: top !important;
  color: #333 !important;
}
.wikitable tr:nth-child(even) td,
.mw-parser-output table tr:nth-child(even) td {
  background: #fafafa !important;
}
.wikitable tr:last-child td,
.mw-parser-output table tr:last-child td {
  border-bottom: none !important;
}
.wikitable tr:hover td,
.mw-parser-output table tr:hover td {
  background: rgba(163,31,52,0.03) !important;
}

/* ── Edit Section Links ─────────────────────────────────────── */
.mw-editsection a,
.mw-editsection-bracket {
  color: #999 !important;
  font-size: 0.75rem !important;
}
.mw-editsection a:hover { color: #a31f34 !important; }

/* ── Code ───────────────────────────────────────────────────── */
.mw-parser-output code,
.mw-parser-output pre,
.mw-parser-output tt {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
  background: #f4f4f4 !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 4px !important;
  font-size: 0.85rem !important;
}
.mw-parser-output code, .mw-parser-output tt { padding: 1px 5px !important; }
.mw-parser-output pre { padding: 12px 16px !important; overflow-x: auto !important; }

/* ── Footer ─────────────────────────────────────────────────── */
#footer,
.mw-footer {
  background: #1a1a1a !important;
  color: #aaa !important;
  padding: 40px 0 !important;
  font-size: 0.82rem !important;
  margin: 0 !important;
  border: none !important;
}
.bmc-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
#footer h4,
.mw-footer h4,
.bmc-footer-inner h4 {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #fff !important;
  margin-bottom: 12px !important;
}
#footer ul,
.mw-footer ul,
.bmc-footer-inner ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#footer ul li,
.mw-footer ul li,
.bmc-footer-inner li { margin-bottom: 6px !important; }
#footer ul li a,
.mw-footer ul li a,
.bmc-footer-inner a { color: #aaa !important; }
#footer ul li a:hover,
.mw-footer ul li a:hover,
.bmc-footer-inner a:hover { color: #fff !important; text-decoration: none !important; }

/* Footer bottom bar */
.bmc-footer-bottom {
  max-width: 1140px;
  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;
}

/* Hide default MediaWiki footer items (replaced by JS-injected structure) */
#footer-info,
#footer-places,
#footer-icons {
  display: none !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .bmc-hnav { display: none !important; }

  /* Restore wiki sidebar on mobile */
  #mw-panel,
  .vector-column-start {
    display: block !important;
    background: #f9f9f9 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    width: 100% !important;
  }

  .staff-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .bmc-footer-inner { grid-template-columns: 1fr 1fr !important; }

  #content,
  .mw-body,
  .vector-body {
    padding: 24px 16px 48px !important;
  }
}

@media (max-width: 580px) {
  .bmc-page-hero h1 { font-size: 1.5rem !important; }
  .service-grid,
  .staff-grid,
  .affil-grid { grid-template-columns: 1fr !important; }
  .staff-card.director { flex-direction: column !important; }
  .contact-block { flex-direction: column !important; gap: 16px !important; }
  .bmc-footer-inner { grid-template-columns: 1fr !important; }
}