Jump to content

MediaWiki:Common.css: Difference between revisions

From Neoplasm
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* =========================================================
  Neoplasm / HemOnc – Global Site Styles
  ========================================================= */


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


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


.neoplasm-hero-title{
.neoplasm-title {
   font-family: Arial, sans-serif;
   font-family: Arial, Helvetica, sans-serif;
   font-size: 2.0em;
   font-size: 2.2em;
   font-weight: 700;
   font-weight: 700;
   margin: 8px 0 10px 0;
  color: #003366;
   margin: 12px 0 20px 0;
}
}


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


/* Tables (shared) */
/* ---------------------------------------------------------
.neoplasm-table{
  3. Base tables
  --------------------------------------------------------- */
.neoplasm-table {
   width: 100%;
   width: 100%;
   margin-left: auto;
   margin-left: auto;
Line 31: Line 41:
   text-align: center;
   text-align: center;
   font-weight: bold;
   font-weight: bold;
  border-collapse: collapse;
}
}


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


/* Table titles */
/* ---------------------------------------------------------
.neoplasm-table-title{
  4. Quick links table (equal-width cells)
   color: #ffffff;
  --------------------------------------------------------- */
   background-color: #737373;
.neoplasm-table--quicklinks {
   font-size: 1.25em;
   table-layout: fixed;
   width: 100%;
}
 
.neoplasm-table--quicklinks td {
   width: 20%; /* 5 equal columns */
   text-align: center;
   text-align: center;
}
}


/* Stats table cells */
.neoplasm-table-title {
.neoplasm-stat{
   background-color: #737373;
   background-color: #bdbdbd;
  color: #ffffff;
   font-size: 1.5em;
   font-size: 1.3em;
   color: #000;
   text-align: center;
}
}


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


.neoplasm-chip a,
.neoplasm-chip a,
.neoplasm-chip a:visited{
.neoplasm-chip a:visited {
   color: #fff;
   color: #ffffff;
   text-decoration: none;
   text-decoration: none;
}
}
Line 71: Line 89:
.neoplasm-chip--classical { background-color: #31a354; }
.neoplasm-chip--classical { background-color: #31a354; }


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


.neoplasm-major--solid { background-color: #08519c; }
.neoplasm-major--solid     { background-color: #08519c; }
 
.neoplasm-major--heme      { background-color: #cf0001; }
/* Section headers inside a major group */
.neoplasm-major--peds      { background-color: #ba871a; }
.neoplasm-minor{
.neoplasm-major--tx        { background-color: #4a1486; }
  font-size: 1.25em;
.neoplasm-major--classical { background-color: #31a354; }
  color: #000;
  background-color: #6baed6;
}


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


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


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


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


/* Equal-width cells for quick-links table */
/* =========================================================
.neoplasm-table--quicklinks {
  9. Vector 2022 – Keep LEFT SIDEBAR ALWAYS VISIBLE (Desktop)
  table-layout: fixed;
  ========================================================= */
  width: 100%;
@media (min-width: 1000px) {
}
 
.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;
  }
}


/* Vector 2022: keep sidebar always visible on desktop */
  /* Force sidebar open */
@media (min-width: 1000px) {
   .skin-vector-2022 .vector-sidebar-container,
   .skin-vector-2022 .vector-sidebar-container,
   .skin-vector-2022 .vector-sidebar {
   .skin-vector-2022 .vector-sidebar,
  .skin-vector-2022 .vector-main-menu-container {
     display: block !important;
     display: block !important;
     visibility: visible !important;
     visibility: visible !important;
Line 150: Line 142:
   }
   }


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


  /* Shift page content so it does not overlap sidebar */
   .skin-vector-2022 .mw-page-container {
   .skin-vector-2022 .mw-page-container {
     margin-left: 16rem !important; /* adjust if needed */
     margin-left: 16rem !important; /* adjust 14–18rem if needed */
   }
   }
}
}
/* =========================================================
  End of file
  ========================================================= */

Revision as of 15:22, 28 December 2025

/* =========================================================
   Neoplasm / HemOnc – Global Site Styles
   ========================================================= */

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

/* ---------------------------------------------------------
   2. Typography (Google-Docs–like editing)
   --------------------------------------------------------- */
.neoplasm-center {
  text-align: center;
}

.neoplasm-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  color: #003366;
  margin: 12px 0 20px 0;
}

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

/* ---------------------------------------------------------
   3. Base tables
   --------------------------------------------------------- */
.neoplasm-table {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-weight: bold;
  border-collapse: collapse;
}

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

/* ---------------------------------------------------------
   4. Quick links table (equal-width cells)
   --------------------------------------------------------- */
.neoplasm-table--quicklinks {
  table-layout: fixed;
  width: 100%;
}

.neoplasm-table--quicklinks td {
  width: 20%; /* 5 equal columns */
  text-align: center;
}

.neoplasm-table-title {
  background-color: #737373;
  color: #ffffff;
  font-size: 1.3em;
  text-align: center;
}

/* ---------------------------------------------------------
   5. Quick-link “chips”
   --------------------------------------------------------- */
.neoplasm-chip {
  font-size: 1.1em;
  color: #ffffff;
}

.neoplasm-chip a,
.neoplasm-chip a:visited {
  color: #ffffff;
  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; }

/* ---------------------------------------------------------
   6. Disease section headers
   --------------------------------------------------------- */
.neoplasm-major {
  color: #ffffff;
  font-size: 1.5em;
}

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

.neoplasm-subheader {
  background-color: #bdd7e7;
  font-size: 1.2em;
}

/* ---------------------------------------------------------
   7. Standard table cells
   --------------------------------------------------------- */
.neoplasm-cell {
  background-color: #eff3ff;
}

.neoplasm-cell--w25 {
  width: 25%;
}

/* ---------------------------------------------------------
   8. Footer link
   --------------------------------------------------------- */
.neoplasm-footer-link {
  text-align: center;
  font-size: 1.2em;
  margin-top: 24px;
}

/* =========================================================
   9. Vector 2022 – Keep LEFT SIDEBAR ALWAYS VISIBLE (Desktop)
   ========================================================= */
@media (min-width: 1000px) {

  /* Force sidebar open */
  .skin-vector-2022 .vector-sidebar-container,
  .skin-vector-2022 .vector-sidebar,
  .skin-vector-2022 .vector-main-menu-container {
    display: block !important;
    visibility: visible !important;
    transform: none !important;
  }

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

  /* Shift page content so it does not overlap sidebar */
  .skin-vector-2022 .mw-page-container {
    margin-left: 16rem !important; /* adjust 14–18rem if needed */
  }
}

/* =========================================================
   End of file
   ========================================================= */