MediaWiki:Common.css

From Wizards and Warlords
Revision as of 17:54, 7 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.
/* This style is loaded on all media. */

/* Hide the content of the TOC when the checkbox is checked. */
/* stylelint-disable-next-line selector-class-pattern */
.toctogglecheckbox:checked ~ ul {
	display: none;
}

.wiz-grid {
	outline: 5px solid red !important;
}

.wiz-grid-item {
	width: 100%;
}

.wiz-grid-item img {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.wiz-grid-text {
	margin-top: 8px;
}

/* TOC PAGE DIV */
/* ------------ */
/* Wrap __TOC__ in <div class="toc-page">...</div> to float it right. */
.toc-page #toc,
.toc-page .toc {
	float: right;
	width: max-content;
	min-width: 220px;
	max-width: 320px;
	margin: 0 0 16px 24px;
	clear: right;
	font-size: 0.95em;
	box-sizing: border-box;
	padding: 16px 24px;
	border: 1px solid var(--wiz-content-border, #ff942d);
	background: var(--wiz-panel-solid-background, #0f0f0f);
	color: var(--wiz-text, #d2d2d2);
}

.toc-page #toc:has(.toctogglecheckbox:checked),
.toc-page .toc:has(.toctogglecheckbox:checked) {
	width: fit-content;
	min-width: 0;
	padding: 12px 16px;
}

.toc-page #toc .toctitle,
.toc-page .toc .toctitle {
	margin: 0 0 10px;
	color: var(--wiz-text, #d2d2d2);
	text-align: center;
}

.toc-page #toc:has(.toctogglecheckbox:checked) .toctitle,
.toc-page .toc:has(.toctogglecheckbox:checked) .toctitle {
	margin: 0;
	line-height: 1.4;
}

.toc-page #toc .toctitle h2,
.toc-page .toc .toctitle h2 {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--wiz-text, #d2d2d2);
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
}

.toc-page #toc .toctoggle,
.toc-page .toc .toctoggle {
	color: var(--wiz-text, #d2d2d2);
	font-size: 12px;
}

.toc-page #toc .toctoggle a,
.toc-page .toc .toctoggle a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.toc-page #toc ul,
.toc-page .toc ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.toc-page #toc li,
.toc-page .toc li {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1.35;
}

.toc-page #toc > ul > li,
.toc-page .toc > ul > li {
	padding: 2px 0;
}

.toc-page #toc li li,
.toc-page .toc li li {
	margin-left: 12px;
	padding: 2px 0 2px 10px;
	border-left: 1px dotted var(--wiz-content-border, #ff942d);
}

.toc-page #toc .toclevel-3,
.toc-page .toc .toclevel-3 {
	display: none;
}

.toc-page #toc .tocnumber,
.toc-page .toc .tocnumber {
	display: none;
}

.toc-page #toc a,
.toc-page .toc a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.toc-page #toc a:hover,
.toc-page .toc a:hover {
	color: #ffd37a;
	text-decoration: none;
}

/* RACE TABLE */
/* ---------- */
.wikitable.wizlords-race-table,
.wizlords-race-table {
	--wiz-race-table-border-width: 1px;
	--wiz-race-table-border-colour: #4d4d4d;
	--wiz-race-table-divider-colour: #9d7531;
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	border: var(--wiz-race-table-border-width) solid var(--wiz-race-table-border-colour) !important;
	background: var(--wiz-content-background, #222);
	color: var(--wiz-text, #d2d2d2);
}

.wikitable.wizlords-race-table tr,
.wizlords-race-table tr {
	border-color: var(--wiz-race-table-border-colour) !important;
}

.wikitable.wizlords-race-table th,
.wikitable.wizlords-race-table td,
.wizlords-race-table th,
.wizlords-race-table td {
	padding: 5px 8px;
	border: var(--wiz-race-table-border-width) solid var(--wiz-race-table-border-colour) !important;
	background: #1f1e1e;
	vertical-align: middle;
}

.wizlords-race-table th {
	color: var(--wiz-heading, #e7e1d4) !important;
	text-align: center;
	font-weight: bold;
}

.wikitable.wizlords-race-table td.race-name,
.wizlords-race-table td.race-name {
	background: #171717 !important;
	text-align: center;
	font-weight: bold;
	white-space: nowrap;
}

.wizlords-race-table .race-icon {
	display: block;
	width: 100px;
	height: 100px;
	margin: 0 auto 6px;
	object-fit: contain;
}

.wikitable.wizlords-race-table td.subculture,
.wizlords-race-table td.subculture {
	background: #171717 !important;
	text-align: center;
	font-weight: bold;
	vertical-align: middle;
}

.wizlords-race-table .subculture-icon {
	display: block;
	width: 45px;
	height: 45px;
	margin: 4px auto 4px;
	object-fit: contain;
}

.wizlords-race-table .race-bonus,
.wizlords-race-table .subculture-bonus {
	min-width: 280px;
}

.wizlords-race-table ul {
	margin: 0;
	padding-left: 20px;
	list-style: disc outside;
}

.wizlords-race-table li {
	display: list-item;
	margin: 0 0 3px;
	list-style: disc outside;
}

.wizlords-race-table li::marker {
	color: var(--wiz-text, #d2d2d2);
}

.wizlords-race-table .race-divider td {
	height: 8px;
	padding: 0;
	border: var(--wiz-race-table-border-width) solid var(--wiz-race-table-divider-colour) !important;
	background: var(--wiz-race-table-divider-colour);
}

/* RACES LANDING PAGE */
/* ------------------ */
.wizlords-races-landing {
	max-width: 100%;
}

.wizlords-races-landing .race-note {
	margin: 14px 0 18px;
	font-style: italic;
}

.wizlords-races-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px 44px;
	margin: 26px auto 24px;
	max-width: 860px;
}

.wizlords-race-link {
	display: block;
	width: 120px;
	text-align: center;
	text-decoration: none;
}

.wizlords-race-link img {
	display: block;
	width: 100px;
	height: 100px;
	margin: 0 auto 8px;
	object-fit: contain;
	border: 0;
	background: transparent;
	transition: transform 120ms ease, filter 120ms ease;
}

.wizlords-race-label,
.wizlords-race-label a {
	display: block;
	color: var(--wiz-link, #ff942d);
	font-weight: bold;
	line-height: 1.3;
	text-decoration: none;
}

.wizlords-race-link:hover img {
	filter: brightness(1.15);
	transform: translateY(-2px);
}

.wizlords-race-link:hover .wizlords-race-label,
.wizlords-race-link:hover .wizlords-race-label a {
	color: #ffd37a;
	text-decoration: none;
}

/* RACE DETAIL PAGES */
/* ----------------- */
.wizlords-race-page {
	max-width: 100%;
}

.wizlords-race-intro {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 18px 0 24px;
}

.wizlords-race-intro-icon {
	flex: 0 0 auto;
}

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

.wizlords-race-quote {
	position: relative;
	margin: 0;
	padding: 0 34px;
	color: var(--wiz-text, #d2d2d2);
	font-size: 16px;
	font-style: italic;
	line-height: 1.6;
}

.wizlords-race-quote::before,
.wizlords-race-quote::after {
	position: absolute;
	color: #555;
	font-size: 42px;
	line-height: 1;
}

.wizlords-race-quote::before {
	content: "\201C";
	left: 0;
	top: -6px;
}

.wizlords-race-quote::after {
	content: "\201D";
	right: 0;
	bottom: -18px;
}

.wizlords-race-quote-source {
	margin-top: 8px;
	text-align: right;
	font-size: 12px;
	font-style: normal;
	font-weight: bold;
}

.wizlords-culture-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	margin: 18px auto 24px;
}

.wizlords-culture-card {
	display: flex;
	flex-direction: column;
	grid-column: span 2;
	min-height: 100%;
	border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
	background: #171717;
}

.wizlords-culture-grid.cultures-2 .wizlords-culture-card,
.wizlords-culture-grid.cultures-4 .wizlords-culture-card {
	grid-column: span 3;
}

.wizlords-culture-grid.cultures-5 .wizlords-culture-card:nth-child(4) {
	grid-column: 2 / span 2;
}

.wizlords-culture-grid.cultures-5 .wizlords-culture-card:nth-child(5) {
	grid-column: 4 / span 2;
}

.wizlords-culture-grid.cultures-7 .wizlords-culture-card:nth-child(7) {
	grid-column: 3 / span 2;
}

.wizlords-culture-card-header {
	padding: 16px 12px 12px;
	text-align: center;
	border-bottom: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
}

.wizlords-culture-card-header img {
	display: block;
	width: 250px;
	height: 250px;
	max-width: 100%;
	margin: 0 auto 10px;
	object-fit: contain;
	border: 0;
	background: transparent;
}

.wizlords-culture-card-title,
.wizlords-culture-card-title a {
	color: var(--wiz-link, #ff942d);
	font-size: 16px;
	font-weight: bold;
	line-height: 1.25;
	text-decoration: none;
}

.wizlords-culture-card-body {
	flex: 1 1 auto;
	padding: 12px;
	background: #1f1e1e;
}

.wizlords-culture-card-body p {
	margin: 0 0 12px;
	font-style: italic;
	line-height: 1.55;
}

.wizlords-culture-separator {
	width: 110px;
	height: 1px;
	margin: 14px auto 12px;
	background: var(--wiz-race-table-divider-colour, #9d7531);
}

.wizlords-culture-classes {
	margin-top: 12px;
	font-weight: bold;
}

.wizlords-culture-card-body ul {
	margin: 4px 0 0;
	padding-left: 28px;
	list-style: disc outside;
}

.wizlords-culture-card-body li {
	display: list-item;
	margin: 0 0 3px;
}

.wizlords-culture-card-body a,
.wizlords-culture-row-classes a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.wizlords-culture-card-body a:hover,
.wizlords-culture-row-classes a:hover {
	color: #ffd37a;
	text-decoration: none;
}

.wizlords-culture-list {
	margin: 18px 0 24px;
}

.wizlords-culture-row {
	padding: 20px 0 24px;
	border-bottom: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
}

.wizlords-culture-row-feature {
	display: grid;
	grid-template-columns: 150px 1px minmax(0, 1fr) 300px;
	align-items: center;
	gap: 22px;
	margin: 10px 0 18px;
}

.wizlords-culture-row-icon img {
	display: block;
	width: 150px;
	height: 150px;
	object-fit: contain;
	border: 0;
	background: transparent;
}

.wizlords-culture-row-divider {
	width: 1px;
	height: 150px;
	background: var(--wiz-race-table-border-colour, #4d4d4d);
}

.wizlords-culture-row-title,
.wizlords-culture-row-title a {
	color: var(--wiz-heading, #e7e1d4);
	font-size: 18px;
	font-weight: bold;
	line-height: 1.3;
	text-decoration: none;
}

.wizlords-culture-row-description {
	position: relative;
	margin: 0;
	padding: 0 34px;
	color: var(--wiz-text, #d2d2d2);
	font-size: 16px;
	font-style: italic;
	line-height: 1.6;
}

.wizlords-culture-row-description::before,
.wizlords-culture-row-description::after {
	position: absolute;
	color: #555;
	font-size: 42px;
	line-height: 1;
}

.wizlords-culture-row-description::before {
	content: "\201C";
	left: 0;
	top: -6px;
}

.wizlords-culture-row-description::after {
	content: "\201D";
	right: 0;
	bottom: -18px;
}

.wizlords-culture-appearance {
	box-sizing: border-box;
	width: 300px;
	padding: 4px;
	border: 1px solid var(--wiz-race-table-divider-colour, #9d7531);
	background: #171717;
}

.wizlords-culture-appearance img {
	display: block;
	width: 300px;
	height: 138px;
	object-fit: cover;
	border: 0;
	background: transparent;
}

.wizlords-culture-appearance-caption {
	margin-top: 4px;
	color: var(--wiz-text, #d2d2d2);
	font-size: 12px;
	line-height: 1.3;
}

.wizlords-culture-row-classes {
	color: var(--wiz-text, #d2d2d2);
	font-size: 14px;
}

.wizlords-culture-class-list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(130px, max-content);
	grid-template-rows: repeat(4, auto);
	gap: 4px 18px;
	margin: 6px 0 0;
	padding-left: 28px;
	list-style: disc outside;
}

.wizlords-culture-class-list li {
	display: list-item;
	margin: 0;
	padding: 0;
}

.wizlords-culture-class-list li::marker {
	color: var(--wiz-text, #d2d2d2);
}

@media (max-width: 1100px) {
	.wiz-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 700px) {
	.wiz-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}