Vorlage:PokémonPrevNext/style.css

Aus PokéWiki
.pokemon-prevnext {
	margin-bottom: 1em;
	border-radius: 0.5em;
	padding: 2px;
}

.pokemon-prevnext img {
	margin: 0 2px 0 2px;
}

.pokemon-prevnext > div:first-child {
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	gap: 2px;
	padding: 2px;
	border-radius: 0.5em;
}

.pokemon-prevnext div:first-child div {
	display: flex;
	align-items: center;
}

.pokemon-prevnext div:first-child div:first-child {
	border-radius: 0.5em 0 0 0.5em;
}

.pokemon-prevnext div:first-child div:nth-child(2) {
	justify-content: center;
}

.pokemon-prevnext div:first-child div:nth-child(3) {
	justify-content: flex-end;
	border-radius: 0 0.5em 0.5em 0;
}

@media only screen and (max-width: 600px) {
	.pokemon-prevnext > div:first-child {
		grid-template-columns: 1fr 1fr;
	}
	
	.pokemon-prevnext div:first-child div:first-child {
		border-radius: 0 0 0 0.5em;
	}
	
	.pokemon-prevnext div:first-child div:nth-child(2) {
		grid-row-start: 1;
		grid-column-end: span 2;
		border-radius: 0.5em 0.5em 0 0;
	}
	
	.pokemon-prevnext div:first-child div:nth-child(3) {
		border-radius: 0 0 0.5em 0;
	}
}

/* [[Kategorie:Vorlage:Non-Wikitext]] */