Template:Race intro/styles.css

From Wizards and Warlords
Jump to navigation Jump to search
/* 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;
	}
}