MediaWiki:Common.css: Difference between revisions

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


.home-section-intro {
.home-section-intro {
margin: 0 0 20px 0;
margin: 0 0 28px 0;
font-size: 1.25em;
font-size: 1.25em;
line-height: 1.65;
line-height: 1.65;
Line 200: Line 200:
width: 100%;
width: 100%;
align-items: start;
align-items: start;
margin-bottom: 8px;
margin-bottom: 12px;
}
}


.grid-four .grid-item {
.grid-four .grid-item {
display: grid;
display: flex;
grid-template-rows: 72px auto 1fr;
flex-direction: column;
align-items: start;
align-items: stretch;
min-width: 0;
min-width: 0;
}
}
Line 215: Line 215:
line-height: 1.1;
line-height: 1.1;
text-align: left;
text-align: left;
margin: 0 0 2px 0;
margin: 0 0 6px 0;
height: 72px;
min-height: 2.2em;
display: flex;
max-height: 2.2em;
align-items: flex-start;
overflow: hidden;
min-width: 0;
overflow-wrap: anywhere;
overflow-wrap: anywhere;
word-break: normal;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
}


Line 227: Line 230:
width: 100%;
width: 100%;
height: auto;
height: auto;
margin: 0 auto;
margin: 0;
border: 1px solid #777;
border: 1px solid #777;
}
}


.grid-four .grid-text {
.grid-four .grid-text {
margin-top: 10px;
margin-top: 12px;
font-size: 1.1em;
font-size: 1.1em;
line-height: 1.55;
line-height: 1.6;
text-align: left;
text-align: left;
min-width: 0;
overflow-wrap: anywhere;
overflow-wrap: anywhere;
}
}
Line 244: Line 246:
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
gap: 20px;
}
.grid-four .grid-item {
grid-template-rows: 64px auto 1fr;
}
}


.grid-four .grid-title {
.grid-four .grid-title {
font-size: 24px;
font-size: 24px;
height: 64px;
min-height: 2.2em;
margin: 0 0 6px 0;
max-height: 2.2em;
}
}
}
}
Line 269: Line 267:


.grid-three .grid-item {
.grid-three .grid-item {
display: grid;
display: flex;
grid-template-rows: 82px auto 1fr;
flex-direction: column;
align-items: start;
align-items: stretch;
min-width: 0;
min-width: 0;
}
}


.grid-three .grid-title {
.grid-three .grid-title {
height: 82px;
font-weight: bold;
display: flex;
font-size: 26px;
align-items: flex-start;
font-size: 30px;
line-height: 1.1;
line-height: 1.1;
text-align: left;
text-align: left;
margin: 0 0 10px 0;
margin: 0 0 6px 0;
min-height: 2.2em;
max-height: 2.2em;
overflow: hidden;
overflow-wrap: anywhere;
overflow-wrap: anywhere;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.grid-three .grid-item img {
display: block;
width: 100%;
height: auto;
margin: 0;
border: 1px solid #777;
}
}


.grid-three .grid-text {
.grid-three .grid-text {
font-size: 1.1em;
margin-top: 12px;
font-size: 1.08em;
line-height: 1.6;
line-height: 1.6;
text-align: left;
text-align: left;
Line 296: Line 307:
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
gap: 20px;
}
.grid-three .grid-item {
grid-template-rows: 74px auto 1fr;
}
}


.grid-three .grid-title {
.grid-three .grid-title {
height: 74px;
font-size: 24px;
font-size: 27px;
}
}
}
}

Revision as of 23:27, 23 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;
	}
}

/* PAGE BANNERS */
/* ------------ */
.page-banner {
	text-align: left;
	margin: 0 0 16px 0;
}

.page-banner img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.page-banner-desktop {
	display: block;
}

.page-banner-desktop img {
	max-width: 1600px;
}

.page-banner-mobile {
	display: none;
}

.page-banner-mobile img {
	max-width: 900px;
}

@media (max-width: 700px) {
	.page-banner-desktop {
		display: none;
	}

	.page-banner-mobile {
		display: block;
	}
}

/* MAIN INTRO */
/* ---------- */
.main-intro {
	margin: 0 0 24px 0;
	text-align: left;
	font-size: 1.3em;
	line-height: 1.65;
	max-width: none;
}

.main-intro p {
	margin: 0 0 14px 0;
}

/* PAGE INTRO */
/* ---------- */
.page-intro {
	margin: 0 0 24px 0;
	font-size: 1.2em;
	line-height: 1.65;
	text-align: left;
}

.page-intro p {
	margin: 0 0 14px 0;
}



/* HOME PAGE SECTIONS */
/* ------------------ */
.home-section {
	margin: 0 0 24px 0;
}

h2.home-section-title {
	margin: 0 0 10px 0;
	font-size: 3em;
	line-height: 1.1;
	font-weight: bold;
	text-align: left;
	font-family: Arial, Helvetica, sans-serif !important;
	color: #000;
	border-bottom: 1px solid #c8ccd1;
	padding-bottom: 4px;
}

.home-section-intro {
	margin: 0 0 28px 0;
	font-size: 1.25em;
	line-height: 1.65;
	text-align: left;
	max-width: none;
}

/* SHARED GRID RULES */
/* ----------------- */
.grid-item {
	width: 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

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

.grid-title {
	font-weight: bold;
	font-size: 32px;
	line-height: 1.1;
	text-align: left;
	margin: 0 0 10px 0;
	overflow-wrap: break-word;
	word-break: normal;
}

.grid-title a {
	text-decoration: none;
}

.grid-text {
	margin-top: 12px;
	font-size: 1.15em;
	line-height: 1.6;
	text-align: left;
	overflow-wrap: break-word;
	word-break: normal;
}

.grid-four .image,
.grid-three .image,
.grid-two-image,
.grid-one-image {
	display: block;
	line-height: 0;
}

.grid-four .image img,
.grid-three .image img,
.grid-two-image img,
.grid-one-image img {
	display: block;
	margin: 0;
}

/* GRID FOUR */
/* --------- */
.grid-four {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	align-items: start;
	margin-bottom: 12px;
}

.grid-four .grid-item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
}

.grid-four .grid-title {
	font-weight: bold;
	font-size: 28px;
	line-height: 1.1;
	text-align: left;
	margin: 0 0 6px 0;
	min-height: 2.2em;
	max-height: 2.2em;
	overflow: hidden;
	overflow-wrap: anywhere;
	word-break: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

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

.grid-four .grid-text {
	margin-top: 12px;
	font-size: 1.1em;
	line-height: 1.6;
	text-align: left;
	overflow-wrap: anywhere;
}

@media (max-width: 1450px) {
	.grid-four {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.grid-four .grid-title {
		font-size: 24px;
		min-height: 2.2em;
		max-height: 2.2em;
	}
}


/* GRID THREE */
/* ---------- */
.grid-three {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	align-items: start;
}

.grid-three .grid-item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
}

.grid-three .grid-title {
	font-weight: bold;
	font-size: 26px;
	line-height: 1.1;
	text-align: left;
	margin: 0 0 6px 0;
	min-height: 2.2em;
	max-height: 2.2em;
	overflow: hidden;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

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

.grid-three .grid-text {
	margin-top: 12px;
	font-size: 1.08em;
	line-height: 1.6;
	text-align: left;
}

@media (max-width: 1200px) {
	.grid-three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

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


/* GRID TWO */
/* -------- */
.grid-two {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	width: 100%;
	align-items: start;
}

.grid-two-item {
	width: 100%;
	min-width: 0;
	display: grid;
	grid-template-rows: 90px auto;
	align-items: start;
}

.grid-two-title {
	font-weight: bold;
	font-size: 32px;
	line-height: 1.1;
	text-align: left;
	margin: 0 0 12px 0;
	height: 90px;
	display: flex;
	align-items: end;
	overflow-wrap: break-word;
	word-break: normal;
}

.grid-two-row {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 18px;
	align-items: start;
}

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

.grid-two-text {
	text-align: left;
	font-size: 1.08em;
	line-height: 1.6;
	overflow-wrap: break-word;
	word-break: normal;
}

@media (max-width: 1000px) {
	.grid-two {
		grid-template-columns: 1fr;
	}

	.grid-two-item {
		grid-template-rows: auto auto;
	}

	.grid-two-title {
		height: auto;
		font-size: 28px;
	}

	.grid-two-row {
		grid-template-columns: 1fr;
	}
}


/* GRID ONE */
/* -------- */
.grid-one {
	width: 100%;
	margin: 0 0 32px 0;
	padding: 20px 0;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

.grid-one-title {
	font-weight: bold;
	font-size: 36px;
	line-height: 1.1;
	text-align: left;
	margin: 0 0 16px 0;
	overflow-wrap: break-word;
	word-break: normal;
}

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

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

.grid-one-text {
	text-align: left;
	font-size: 1.08em;
	line-height: 1.6;
	overflow-wrap: break-word;
	word-break: normal;
}

@media (max-width: 1000px) {
	.grid-one-title {
		font-size: 30px;
	}

	.grid-one-row {
		grid-template-columns: 1fr;
	}
}