Template:Race intro/styles.css: Difference between revisions

From Wizards and Warlords
Jump to navigation Jump to search
Created page with "Template:Race intro/styles.css: .wizlords-race-intro--with-examples { display: grid; grid-template-columns: 100px minmax(16rem, 1fr) minmax(240px, 34%); align-items: center; gap: 28px; margin: 18px 0 24px; } .wizlords-race-intro--with-examples .wizlords-race-intro-icon { min-width: 0; } .wizlords-race-intro--with-examples .wizlords-race-intro-icon img { display: block; width: 100px; height: 100px; object-fit: contain; border: 0; background: transparent..."
 
No edit summary
Line 2: Line 2:
.wizlords-race-intro--with-examples {
.wizlords-race-intro--with-examples {
display: grid;
display: grid;
grid-template-columns: 100px minmax(16rem, 1fr) minmax(240px, 34%);
grid-template-columns: 100px minmax(16rem, 1fr) minmax(220px, 300px);
align-items: center;
align-items: center;
gap: 28px;
gap: 28px;
Line 27: Line 27:
.wizlords-race-intro-examples {
.wizlords-race-intro-examples {
min-width: 0;
min-width: 0;
width: 100%;
box-sizing: border-box;
margin: 0;
margin: 0;
padding: 4px;
padding: 4px;
Line 41: Line 43:
.wizlords-race-intro-example-image {
.wizlords-race-intro-example-image {
min-width: 0;
min-width: 0;
aspect-ratio: 3 / 4;
aspect-ratio: 4 / 5;
overflow: hidden;
overflow: hidden;
background: rgba(255, 255, 255, 0.04);
background: rgba(255, 255, 255, 0.04);

Revision as of 05:35, 16 July 2026

/* Template:Race intro/styles.css */
.wizlords-race-intro--with-examples {
	display: grid;
	grid-template-columns: 100px minmax(16rem, 1fr) minmax(220px, 300px);
	align-items: center;
	gap: 28px;
	margin: 18px 0 24px;
}

.wizlords-race-intro--with-examples .wizlords-race-intro-icon {
	min-width: 0;
}

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

.wizlords-race-intro--with-examples .wizlords-race-quote {
	min-width: 0;
}

.wizlords-race-intro-examples {
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 4px;
	border: 1px solid var(--wiz-content-border, #ff942d);
	background: var(--wiz-panel-solid-background, #0f0f0f);
}

.wizlords-race-intro-example-images {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
}

.wizlords-race-intro-example-image {
	min-width: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
}

.wizlords-race-intro-example-image a,
.wizlords-race-intro-example-image span {
	display: block;
	width: 100%;
	height: 100%;
}

.wizlords-race-intro-example-image img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border: 0;
}

.wizlords-race-intro-caption {
	margin: 5px 2px 1px;
	color: var(--wiz-text, #d2d2d2);
	font-size: 12px;
	line-height: 1.25;
}

@media screen and (max-width: 899px) {
	.wizlords-race-intro--with-examples {
		grid-template-columns: 100px minmax(0, 1fr);
		align-items: start;
		gap: 16px;
	}

	.wizlords-race-intro--with-examples .wizlords-race-quote {
		padding-right: 20px;
	}

	.wizlords-race-intro--with-examples .wizlords-race-intro-examples {
		grid-column: 1 / -1;
		width: 100%;
		box-sizing: border-box;
	}
}

@media screen and (max-width: 420px) {
	.wizlords-race-intro--with-examples {
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 12px;
	}

	.wizlords-race-intro--with-examples .wizlords-race-intro-icon img {
		width: 84px;
		height: 84px;
	}

	.wizlords-race-intro--with-examples .wizlords-race-quote {
		padding-right: 14px;
		padding-left: 28px;
		font-size: 15px;
	}
}