MediaWiki:Vector.css: Difference between revisions

From Wizards and Warlords
Jump to navigation Jump to search
No edit summary
No edit summary
Line 32: Line 32:
}
}


/* LEFT SIDEBAR PANEL */
/* ------------------ */
body.skin-vector-legacy #mw-panel {
left: var(--wiki-shell-gap);
top: 190px;
width: var(--wiki-sidebar-width);
box-sizing: border-box;
background: #f7f3ec;
border-left: 1px solid #d8d0c4;
border-right: 1px solid #d8d0c4;
padding: 0 14px 24px 14px;
min-height: calc(100vh - 190px);
}
/* Move the logo down with the sidebar */
body.skin-vector-legacy #p-logo {
top: -165px;
left: 0;
width: 100%;
}
/* Keep sidebar menus visually inside the panel */
body.skin-vector-legacy #mw-panel .portal {
margin: 0 0 18px 0;
padding: 0;
}
body.skin-vector-legacy #mw-panel .portal h3 {
margin: 0 0 6px 0;
padding: 0;
color: #555;
font-weight: normal;
}
body.skin-vector-legacy #mw-panel .portal .body {
margin: 0;
padding: 0;
background: transparent;
}


/* PAGE HEADING TEXT RULES */
/* PAGE HEADING TEXT RULES */

Revision as of 18:09, 1 June 2026

/* CENTERED VECTOR LAYOUT */
/* ---------------------- */

:root {
	--wiki-shell-width: 1400px;
	--wiki-sidebar-width: 170px;
	--wiki-shell-gap: max(0px, calc((100vw - var(--wiki-shell-width)) / 2));
}

/* Optional page background around the centered wiki */
body.skin-vector-legacy {
	background: #f5f3ee;
}

/* Left sidebar moves into the centered shell */
body.skin-vector-legacy #mw-panel {
	left: var(--wiki-shell-gap);
	width: var(--wiki-sidebar-width);
}

/* Main page body sits beside the sidebar inside the centered shell */
body.skin-vector-legacy #content.mw-body {
	margin-left: calc(var(--wiki-shell-gap) + var(--wiki-sidebar-width));
	max-width: calc(var(--wiki-shell-width) - var(--wiki-sidebar-width));
	box-sizing: border-box;
	background: #fff;
}

/* Keep the top personal links from stretching oddly */
body.skin-vector-legacy #p-personal {
	right: var(--wiki-shell-gap);
}

/* LEFT SIDEBAR PANEL */
/* ------------------ */
body.skin-vector-legacy #mw-panel {
	left: var(--wiki-shell-gap);
	top: 190px;
	width: var(--wiki-sidebar-width);
	box-sizing: border-box;

	background: #f7f3ec;
	border-left: 1px solid #d8d0c4;
	border-right: 1px solid #d8d0c4;

	padding: 0 14px 24px 14px;
	min-height: calc(100vh - 190px);
}

/* Move the logo down with the sidebar */
body.skin-vector-legacy #p-logo {
	top: -165px;
	left: 0;
	width: 100%;
}

/* Keep sidebar menus visually inside the panel */
body.skin-vector-legacy #mw-panel .portal {
	margin: 0 0 18px 0;
	padding: 0;
}

body.skin-vector-legacy #mw-panel .portal h3 {
	margin: 0 0 6px 0;
	padding: 0;
	color: #555;
	font-weight: normal;
}

body.skin-vector-legacy #mw-panel .portal .body {
	margin: 0;
	padding: 0;
	background: transparent;
}

/* PAGE HEADING TEXT RULES */
/* ----------------------- */
h1#firstHeading,
h1#firstHeading .mw-page-title-main {
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: clamp(34px, 4vw, 44px) !important;
	line-height: 1.1 !important;
	font-weight: bold !important;
}

@media (max-width: 1000px) {
	h1#firstHeading,
	h1#firstHeading .mw-page-title-main {
		font-size: 1.9em !important;
	}
}

@media (max-width: 700px) {
	h1#firstHeading,
	h1#firstHeading .mw-page-title-main {
		font-size: 1.6em !important;
		line-height: 1.15 !important;
	}
}