Jump to content

MediaWiki:Common.css

From Neoplasm
Revision as of 15:16, 28 December 2025 by Qiangnai (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.
/* CSS placed here will be applied to all skins */


/* Hide the Main Page title (Vector/Vector 2022) */
.page-Main_Page h1.firstHeading {
  display: none;
}

/* Typography blocks (Google-Doc-like editing: page stays clean) */
.neoplasm-center { text-align: center; }

.neoplasm-hero-title{
  font-family: Arial, sans-serif;
  font-size: 2.0em;
  font-weight: 700;
  margin: 8px 0 10px 0;
}

.neoplasm-hero-subtitle{
  font-size: 1.15em;
  line-height: 1.55;
  margin: 12px auto 18px auto;
  max-width: 1100px;
}

/* Tables (shared) */
.neoplasm-table{
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-weight: bold;
}

.neoplasm-table td,
.neoplasm-table th{
  padding: 8px 10px;
}

/* Table titles */
.neoplasm-table-title{
  color: #ffffff;
  background-color: #737373;
  font-size: 1.25em;
  text-align: center;
}

/* Stats table cells */
.neoplasm-stat{
  background-color: #bdbdbd;
  font-size: 1.5em;
  color: #000;
}

/* Quicklink “chips” */
.neoplasm-chip{
  color: #fff;
  font-size: 1.1em;
}

.neoplasm-chip a,
.neoplasm-chip a:visited{
  color: #fff;
  text-decoration: none;
}

.neoplasm-chip--solid     { background-color: #08519c; }
.neoplasm-chip--malignant { background-color: #cf0001; }
.neoplasm-chip--peds      { background-color: #ba871a; }
.neoplasm-chip--tx        { background-color: #4a1486; }
.neoplasm-chip--classical { background-color: #31a354; }

/* Disease grid table headers */
.neoplasm-major{
  color: #fff;
  font-size: 1.5em;
}

.neoplasm-major--solid { background-color: #08519c; }

/* Section headers inside a major group */
.neoplasm-minor{
  font-size: 1.25em;
  color: #000;
  background-color: #6baed6;
}

.neoplasm-sub{
  background-color: #bdd7e7;
  font-size: 1.1em;
}

/* Regular cells */
.neoplasm-cell{
  background-color: #eff3ff;
}

/* Width helper (replaces inline width:25%) */
.neoplasm-cell--w25{
  width: 25%;
}

/* Footer link */
.neoplasm-footer-link{
  font-size: 1.2em;
  margin-top: 20px;
}

/* Equal-width cells for quick-links table */
.neoplasm-table--quicklinks {
  table-layout: fixed;
  width: 100%;
}

.neoplasm-table--quicklinks td {
  width: 20%;           /* 5 cells → 100 / 5 = 20% */
  text-align: center;
}

/* Force sidebar open in Vector 2022 (desktop) */
.skin-vector-2022 .vector-sidebar-container {
  display: block !important;
}

.skin-vector-2022 .vector-page-titlebar {
  margin-left: 15em;
}

/* Vector 2022: keep the left sidebar visible on desktop */
@media screen and (min-width: 1000px) {
  .skin-vector-2022 .vector-sidebar-container {
    transform: none !important;
    visibility: visible !important;
    display: block !important;
  }

  /* Hide the hamburger button (optional) */
  .skin-vector-2022 .vector-main-menu-dropdown {
    display: none !important;
  }
}

body {
  border-top: 6px solid red !important;
}