MediaWiki:Vector.css

From Wizards and Warlords
Revision as of 23:06, 2 June 2026 by Aurelian (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.
/*
 * Wizards & Warlords Vector skin overrides.
 * Fresh base: center the wiki and align the content body with the top search.
 */

:root {
	--wiz-page-width: 1400px;
	--wiz-page-gutter: 24px;
	--wiz-content-padding: 20px;
	--wiz-content-border: #a2a9b1;
}

html {
	background: #f3f3f3;
}

body {
	position: relative;
	width: min(100%, var(--wiz-page-width));
	margin: 0 auto;
	background: #fff;
}

#right-navigation {
	margin-right: var(--wiz-page-gutter);
}

#p-personal {
	right: var(--wiz-page-gutter);
}

#p-search {
	margin-right: 0;
}

#content.mw-body {
	box-sizing: border-box;
	margin-right: var(--wiz-page-gutter);
	padding: var(--wiz-content-padding);
	border: 1px solid var(--wiz-content-border);
}

#firstHeading.firstHeading.mw-first-heading {
	box-sizing: border-box;
	display: block !important;
	height: 40px;
	margin: 12px 0 8px;
	padding: 0;
	border-bottom: 1px solid var(--wiz-content-border);
	font-size: 28px;
	line-height: 40px;
}

body.page-Main_Page #firstHeading.firstHeading.mw-first-heading {
	font-size: 0;
}

body.page-Main_Page #firstHeading.firstHeading.mw-first-heading::before {
	content: "Wizards and Warlords Wiki";
	font-size: 28px;
}

#bodyContent {
	clear: both;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
}

.wizlords-mainpage-left {
	box-sizing: border-box;
	float: left;
	width: calc(50% - 25px);
	padding-left: 10px;
	padding-right: 15px;
}

.wizlords-mainpage-right {
	box-sizing: border-box;
	float: right;
	width: calc(50% - 25px);
	padding-left: 15px;
	padding-right: 10px;
}

.wizlords-mainpage-clear {
	clear: both;
}

.wizlords-mainpage-left > h2.center,
.wizlords-mainpage-right > h2.center {
	margin: 20px 0;
	padding: 0;
	border-bottom: 1px solid var(--wiz-content-border);
	font-size: 20px;
	font-weight: normal;
	line-height: 30px;
	text-align: center;
}

.wizlords-mainpage-left > h2.center .mw-headline,
.wizlords-mainpage-right > h2.center .mw-headline {
	text-decoration: none;
}

.wizlords-mainpage-left > h2.center a,
.wizlords-mainpage-right > h2.center a {
	border-bottom: 0;
	text-decoration: none;
}

.wizlords-mainpage-left > .center,
.wizlords-mainpage-right > .center,
.wizlords-mainpage-items {
	text-align: center;
}

.wizlords-imagetext {
	display: inline-block;
	box-sizing: border-box;
	width: 100px;
	min-height: 122px;
	margin: 5px;
	vertical-align: top;
	text-align: center;
}

.wizlords-imagetext-image {
	width: 100px;
	height: 100px;
}

.wizlords-imagetext-image img {
	display: block;
	width: 100px;
	height: 100px;
	object-fit: contain;
	border: 0;
	background: transparent;
}

.wizlords-imagetext-text {
	width: 100px;
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
}

@media (max-width: 700px) {
	:root {
		--wiz-page-gutter: 12px;
		--wiz-content-padding: 14px;
	}

	.wizlords-mainpage-left,
	.wizlords-mainpage-right {
		float: none;
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}
}