MediaWiki:Vector-2022.css

From LinnDocs
Revision as of 09:25, 27 October 2026 by Yoda (talk | contribs)
Jump to navigation Jump to search

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 affect users of the Vector skin */
@media print {
    ol.references {display: none;}
}

.left-column {
  position: sticky;
  top: 3.5rem;            /* clears Vector 2022's sticky header */
  max-height: calc(100vh - 3.5rem);
  overflow-y: auto;
}
 
   .mw-parser-output img {
     max-width: 100%;
     height: auto;
   }

/* Don't shrink images inside tables, tabs and the left column */
.mw-parser-output table img,
.mw-parser-output .tabber img,
.mw-parser-output .tabs img,
.mw-parser-output .left-column img {
  max-width: none !important;
}

/* Hide the Colour option in the Appearance menu */
#skin-client-prefs-skin-theme {
  display: none !important;
}

 /* Header height – adjust this one value if things overlap or leave a gap */
:root {
  --linn-header-h: 3.5rem;
}

/* Header: fixed to the top of the window at all times */
.vector-header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 20;
  background-color: var(--background-color-base, #fff);
}

/* Push the page down so the fixed header doesn't cover it */
body {
  padding-top: var(--linn-header-h);
}

/* Links to headings (e.g. from the contents) stop below the header */
html {
  scroll-padding-top: calc(var(--linn-header-h) + 0.5rem);
}

/* Vector's own compact sticky header isn't needed */
.vector-sticky-header-container {
  display: none !important;
}

/* Left column (main menu + contents): stays in view, own scroll bar */
.vector-column-start {
  position: sticky;
  top: calc(var(--linn-header-h) + 0.5rem);
  align-self: start;
  max-height: calc(100vh - var(--linn-header-h) - 1rem);
  overflow-y: auto;
}

/* Contents block: no separate sticking inside the left column */
.vector-column-start .vector-sticky-pinned-container {
  position: static !important;
  top: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Remove Vector's scroll "fade" overlay on the contents block */
.vector-column-start .vector-sticky-pinned-container::after {
  display: none !important;
}

/* A little space between the menu and the contents */
.vector-column-start .vector-main-menu-container {
  margin-bottom: 1rem;
}

/* Right column: keep it below the fixed header */
.vector-column-end .vector-sticky-pinned-container {
  top: calc(var(--linn-header-h) + 0.5rem);
  max-height: calc(100vh - var(--linn-header-h) - 1rem);
}


/* side menu */
#mw-panel {
	position: fixed;
	overflow: hidden;
	height: 100%;
}

#mw-panel:hover {
	overflow: hidden auto;
}

#mw-panel {
  position: static !important;
  height: auto !important;
  overflow: visible !important;
}

/* Second (Linn) logo in the header */
#linn-site-logo {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}
#linn-site-logo img {
  height: 30px;
  width: auto;
}

/* Hide it on narrow screens so the header doesn't get crowded */
@media (max-width: 720px) {
  #linn-site-logo { display: none; }
}


/* In-page contents box (built by Vector-2022.js) */
#toc.toc {
  display: inline-block;
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  padding: 0.5em 1em;
  font-size: 95%;
}
#toc .toctitle {
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.3em;
}
#toc ul {
  list-style: none;
  margin: 0.3em 0 0;
  padding: 0;
}
#toc ul ul {
  margin-left: 2em;
}
#toc .tocnumber {
  color: #202122;
  padding-right: 0.5em;
}

/* Products page has its own navigation */
.page-Products #vector-toc-pinned-container,
.page-Products #vector-page-titlebar-toc {
  display: none !important;
}