Vorlage:Generation/Typ/style.css

Aus PokéWiki
Zur Navigation springen Zur Suche springen
.generation-typ {
	display: grid;
	grid-template-columns: 1fr 1fr 3fr;
	width: 70%;
	padding: 2px;
	gap: 2px;
	border-radius: 0.5em;
	margin: auto;
	text-align: center;
}

.generation-typ div {
	display: flex;
	justify-content: center;
	align-items: center;
}

.generation-typ > div:first-child {
	grid-row-end: span 2;
	border-top-left-radius: 0.5em;
}

.generation-typ > div:nth-child(2) {
	grid-column-end: span 2;
	border-top-right-radius: 0.5em;
}

.generation-typ > div:first-child,
.generation-typ > div:nth-child(2),
.generation-typ > div:nth-child(3),
.generation-typ > div:nth-child(4) {
	font-weight: bold;
	padding: 4px;
}

.generation-typ div > span {
	margin: 4px;
}

.generation-typ .rowspan2 {
	grid-row-end: span 2;
}

.generation-typ .rowspan3 {
	grid-row-end: span 3;
}

.generation-typ .rowspan4 {
	grid-row-end: span 4;
}

.generation-typ .datei {
	background: #E1E1E1;
	padding: 4px;
}

.generation-typ .flexbox {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	align-items: stretch;
}

.generation-typ .flexbox .subgrid {
	display: grid;
	flex-grow: 1;
	flex-basis: 120px;
	background: #E1E1E1;
	padding: 4px;
}

.generation-typ .flexbox .subgrid div:first-child {
	font-weight: bold;
}

.generation-typ > div:nth-last-child(3) {
	border-bottom-left-radius: 0.5em;
}

.generation-typ > div:last-child div:last-child,
.generation-typ > div:last-child {
	border-bottom-right-radius: 0.5em;
}

/* @media only screen and (max-width: 600px) {
	.generation-typ {
		width: auto;
	}
} */

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