MediaWiki:Common.css: Difference between revisions

From Wizards & Warlords Wiki
No edit summary
No edit summary
Line 1: Line 1:
/* RULES PAGE DIV */
/* TOC PAGE DIV */
/* -------------- */
/* ------------ */
.rules-page #toc,
.toc-page #toc,
.rules-page .toc {
.toc-page .toc {
float: right;
float: right;
width: 26%;
width: 26%;
Line 13: Line 13:
}
}


.rules-page h2,
.toc-page h2,
.rules-page h3,
.toc-page h3,
.rules-page h4 {
.toc-page h4 {
clear: none;
clear: none;
}
}


@media (max-width: 700px) {
@media (max-width: 700px) {
.rules-page #toc,
.toc-page #toc,
.rules-page .toc {
.toc-page .toc {
float: none;
float: none;
width: auto;
width: auto;
Line 30: Line 30:
}
}


/* RULES RULES */
 
/* --------------- */
/* RULES GRID RULES */
/* ---------------- */
.rules-grid {
.rules-grid {
display: grid;
display: grid;

Revision as of 07:50, 20 March 2026

/* TOC PAGE DIV */
/* ------------ */
.toc-page #toc,
.toc-page .toc {
	float: right;
	width: 26%;
	max-width: 320px;
	min-width: 220px;
	margin: 0 0 16px 24px;
	clear: right;
	font-size: 0.95em;
	box-sizing: border-box;
}

.toc-page h2,
.toc-page h3,
.toc-page h4 {
	clear: none;
}

@media (max-width: 700px) {
	.toc-page #toc,
	.toc-page .toc {
		float: none;
		width: auto;
		max-width: none;
		min-width: 0;
		margin: 0 0 20px 0;
	}
}


/* RULES GRID RULES */
/* ---------------- */
.rules-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	text-align: center;
	align-items: start;
}

.rules-grid-item {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.rules-grid-title {
	font-variant: small-caps;
	font-weight: bold;
	font-size: 28px;
	line-height: 1.1;
	margin: 0 0 8px 0;
	text-align: center;
}

.rules-grid-item img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

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

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

	.rules-grid-title {
		font-size: 24px;
	}
}


/* MAIN GRID RULES */
/* --------------- */
.main-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	text-align: center;
	align-items: start;
}

.main-grid-item {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.main-grid-title {
	font-variant: small-caps;
	font-weight: bold;
	font-size: 32px;
	line-height: 1.1;
	margin: 0;
	padding: 0 0 4px 0;
	height: 65px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
	overflow: hidden;
}

.main-grid-item img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	border: 1px solid #777;
}

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

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

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

	.main-grid-title {
		height: 88px;
		font-size: 28px;
	}
}


/* VALENDOR GRID RULES */
/* ------------------- */
.val-capital {
	width: 100%;
	margin: 0 0 32px 0;
	padding-top: 24px;
	padding-bottom: 24px;
	border-top: 1px solid #ccc;	
	border-bottom: 1px solid #ccc;
}

.val-capital-title {
	font-variant: small-caps;
	font-weight: bold;
	font-size: 36px;
	line-height: 1.1;
	text-align: center;
	margin: 0 0 16px 0;
}

.val-capital-row {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 20px;
	align-items: start;
}

.val-duchy-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	width: 100%;
}

.val-duchy-item {
	width: 100%;
}

.val-duchy-title {
	font-variant: small-caps;
	font-weight: bold;
	font-size: 30px;
	line-height: 1.1;
	text-align: center;
	margin: 0 0 12px 0;
}

.val-duchy-row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 16px;
	align-items: start;
}

.val-capital-image img,
.val-duchy-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	border: 1px solid #777;
}

.val-capital-text,
.val-duchy-text {
	text-align: left;
}

@media (max-width: 700px) {
	.val-capital-row,
	.val-duchy-row {
		grid-template-columns: 1fr;
	}

	.val-duchy-grid {
		grid-template-columns: 1fr;
	}

	.val-capital-text,
	.val-duchy-text {
		text-align: center;
	}

	.val-capital-title {
		font-size: 30px;
	}

	.val-duchy-title {
		font-size: 26px;
	}
}