Template:Main Page/Header new/styles.css

From Wikidata
Jump to navigation Jump to search
.wd-mp-header {
	display: grid;
	place-items: center;
	isolation: isolate;
	text-align: center;
	margin-bottom: 10px;
	color: var(--color-base, #54595d);
}
body.skin-minerva:not(.is-authenticated) .wd-mp-header {
	margin-top: 16px;
}
.wd-mp-header > * {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
}
@supports (object-fit:cover) {
	.wd-mp-headerimage img {
		width: 100%;
		object-fit: cover;
		object-position: top center;
	}
}
.wd-mp-overlay {
	display: flex;
	flex-direction: column;
	row-gap: 1em;
	background-color: var(--background-color-base, #fff);
	filter: opacity(0.9);
	font-size: 1rem;
	padding: 2em;
	/* Prevent the box from becoming too wide
	 * and covering the text labels in the background banner image */
	max-width: 550px;
}
.wd-mp-overlay p {
	margin: 0;
}
.wd-mp-headerbox-headline {
	font-size: 1.75em;
	line-height: 1.25;
}
.wd-mp-headerbox-regular {
	line-height: 1.6;
}
.wd-mp-headerbox-footer {
	font-weight: 400;
	font-size: 0.875em;
	line-height: 1.6;
}