MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
Neoplasm / HemOnc – Global Site Styles | Neoplasm / HemOnc – Global Site Styles | ||
========================================================= */ | ========================================================= */ | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
1. Hide Main Page title (Vector / Vector 2022) | 1. Hide Main Page title (Vector / Vector 2022 only) | ||
--------------------------------------------------------- */ | --------------------------------------------------------- */ | ||
.page-Main_Page h1.firstHeading { | .page-Main_Page h1.firstHeading { | ||
display: none; | display: none; | ||
} | } | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
2. Typography (Google-Docs–like | 2. Typography (centralized, Google-Docs–like) | ||
--------------------------------------------------------- */ | --------------------------------------------------------- */ | ||
.neoplasm-center { | .neoplasm-center { | ||
| Line 31: | Line 33: | ||
margin: 0 auto 24px auto; | margin: 0 auto 24px auto; | ||
} | } | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
| Line 48: | Line 51: | ||
padding: 8px 10px; | padding: 8px 10px; | ||
} | } | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
| Line 58: | Line 62: | ||
.neoplasm-table--quicklinks td { | .neoplasm-table--quicklinks td { | ||
width: 20%; /* 5 equal columns */ | width: 20%; /* 5 equal columns */ | ||
text-align: center; | text-align: center; | ||
} | } | ||
| Line 68: | Line 72: | ||
text-align: center; | text-align: center; | ||
} | } | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
| Line 88: | Line 93: | ||
.neoplasm-chip--tx { background-color: #4a1486; } | .neoplasm-chip--tx { background-color: #4a1486; } | ||
.neoplasm-chip--classical { background-color: #31a354; } | .neoplasm-chip--classical { background-color: #31a354; } | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
| Line 107: | Line 113: | ||
font-size: 1.2em; | font-size: 1.2em; | ||
} | } | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
| Line 118: | Line 125: | ||
width: 25%; | width: 25%; | ||
} | } | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
| Line 127: | Line 135: | ||
margin-top: 24px; | margin-top: 24px; | ||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
9. Vector 2022 – | 9. Vector 2022 – Sidebar behavior (SAFE VERSION) | ||
========================================================= | |||
- Sidebar visible by default on desktop | |||
- Hamburger icon remains available | |||
- Sidebar can still be collapsed | |||
========================================================= */ | ========================================================= */ | ||
@media (min-width: 1000px) { | @media (min-width: 1000px) { | ||
/* | /* Ensure sidebar is visible initially */ | ||
.skin-vector-2022 .vector-sidebar-container, | .skin-vector-2022 .vector-sidebar-container, | ||
.skin-vector-2022 .vector-sidebar | .skin-vector-2022 .vector-sidebar { | ||
visibility: visible; | |||
transform: none; | |||
visibility: visible | |||
transform: none | |||
} | } | ||
/* | /* DO NOT hide hamburger / menu toggle */ | ||
.skin-vector-2022 .vector-main-menu-dropdown { | .skin-vector-2022 .vector-main-menu-dropdown { | ||
display: | display: inline-flex; | ||
} | } | ||
/* | /* Reserve space so content does not overlap sidebar */ | ||
.skin-vector-2022 .mw-page-container { | .skin-vector-2022 .mw-page-container { | ||
margin-left: 16rem | margin-left: 16rem; /* adjust 14–18rem if needed */ | ||
} | } | ||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
End of file | End of file | ||
========================================================= */ | ========================================================= */ | ||
Revision as of 15:31, 28 December 2025
/* =========================================================
Neoplasm / HemOnc – Global Site Styles
========================================================= */
/* ---------------------------------------------------------
1. Hide Main Page title (Vector / Vector 2022 only)
--------------------------------------------------------- */
.page-Main_Page h1.firstHeading {
display: none;
}
/* ---------------------------------------------------------
2. Typography (centralized, Google-Docs–like)
--------------------------------------------------------- */
.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 – Sidebar behavior (SAFE VERSION)
=========================================================
- Sidebar visible by default on desktop
- Hamburger icon remains available
- Sidebar can still be collapsed
========================================================= */
@media (min-width: 1000px) {
/* Ensure sidebar is visible initially */
.skin-vector-2022 .vector-sidebar-container,
.skin-vector-2022 .vector-sidebar {
visibility: visible;
transform: none;
}
/* DO NOT hide hamburger / menu toggle */
.skin-vector-2022 .vector-main-menu-dropdown {
display: inline-flex;
}
/* Reserve space so content does not overlap sidebar */
.skin-vector-2022 .mw-page-container {
margin-left: 16rem; /* adjust 14–18rem if needed */
}
}
/* =========================================================
End of file
========================================================= */