MediaWiki:Vector-2022.css
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;
}
/* Quick guide overlay */
#linn-tour {
position: fixed;
inset: 0;
z-index: 1000;
background: rgba( 0, 0, 0, 0.55 );
cursor: pointer;
}
.linn-tour-ring {
position: fixed;
border: 3px solid #fc3;
border-radius: 6px;
box-shadow: 0 0 0 4px rgba( 255, 204, 51, 0.35 );
pointer-events: none;
}
.linn-tour-tip {
position: fixed;
max-width: 260px;
background: #fff;
color: #202122;
padding: 0.6em 0.8em;
border-radius: 6px;
box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.3 );
font-size: 0.9em;
line-height: 1.4;
}
.linn-tour-tip strong {
display: block;
margin-bottom: 0.2em;
}
.linn-tour-panel {
position: fixed;
left: 50%;
top: 50%;
transform: translate( -50%, -50% );
max-width: 360px;
background: #fff;
color: #202122;
padding: 1.2em 1.5em;
border-radius: 8px;
box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.35 );
text-align: center;
cursor: default;
}
.linn-tour-panel strong {
font-size: 1.2em;
}
.linn-tour-panel button {
padding: 0.4em 1.4em;
border: none;
border-radius: 4px;
background: #36c;
color: #fff;
font-weight: bold;
cursor: pointer;
}
/* "?" button in the header */
#linn-help-btn {
width: 2rem;
height: 2rem;
margin-right: 0.5rem;
border: 1px solid #a2a9b1;
border-radius: 50%;
background: #f8f9fa;
color: #202122;
font-weight: bold;
cursor: pointer;
align-self: center;
}