MediaWiki:Common.css: Difference between revisions

From Wizards & Warlords Wiki
No edit summary
No edit summary
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* This style is loaded on all media. */
/* 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;
}
 
.toc-page > h2:first-of-type,
.toc-page > .mw-heading2:first-of-type {
width: calc(74% - 24px);
}
 
@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;
}
 
.toc-page > h2:first-of-type,
.toc-page > .mw-heading2:first-of-type {
width: auto;
}
}
 
 
/* 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;
}


/* HEADING RULES */
.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;
}


/* GRID RULES */
.rules-grid-text {
.wiz-grid {
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;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
grid-template-columns: repeat(4, minmax(0, 1fr));
Line 14: Line 101:
}
}


.wiz-grid-item {
.main-grid-item {
width: 100%;
width: 100%;
display: flex;
display: flex;
Line 21: Line 108:
}
}


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


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


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


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


@media (max-width: 700px) {
@media (max-width: 700px) {
.wiz-grid {
.main-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
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;
}
}
}
}

Latest revision as of 07:59, 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;
}

.toc-page > h2:first-of-type,
.toc-page > .mw-heading2:first-of-type {
	width: calc(74% - 24px);
}

@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;
	}

	.toc-page > h2:first-of-type,
	.toc-page > .mw-heading2:first-of-type {
		width: auto;
	}
}


/* 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;
	}
}