MediaWiki:Common.css: Difference between revisions

From Wizards & Warlords Wiki
No edit summary
No edit summary
Line 26: Line 26:
font-size: 32px !important;
font-size: 32px !important;
line-height: 1.1;
line-height: 1.1;
margin: 0 0 8px 0;
height: 2.4em;
height: 2.4em;
margin: 0 !important;
padding: 0 0 8px 0;
display: flex;
display: flex;
align-items: flex-end;
align-items: flex-end;
justify-content: center;
justify-content: center;
text-align: center;
text-align: center;
box-sizing: border-box;
}
}



Revision as of 03:57, 19 March 2026

/* This style is loaded on all media. */

/* HEADING RULES */


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

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

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

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

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

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

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