Vorlage:Effizienz-Tabelle/style.css

Aus PokéWiki
Zur Navigation springen Zur Suche springen
.effizienz-tabelle {
	display: grid;
	gap: 2px;
	padding: 2px;
	margin: auto;
	width: min-content;
	text-align: center;
	border-radius: 0.5em;
}

.effizienz-tabelle > div:first-child {
	padding: 4px;
	font-weight: bold;
	border-radius: 0.5em 0.5em 0 0;
}

.effizienz-tabelle > div:nth-child(2) {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 2px;
}

.effizienz-tabelle > div:nth-child(2) div:nth-child(n+7) {
	background: #FFFFFF;
	padding: 2px;
	min-width: 56px;
}

.effizienz-tabelle .effizienz-tabelle-round-bottom-left {
	border-bottom-left-radius: 0.5em;
}

.effizienz-tabelle .effizienz-tabelle-round-bottom-right {
	border-bottom-right-radius: 0.5em;
}

.effizienz-tabelle > div:nth-child(2) div:nth-child(n+7) a span {
	margin-bottom: 2px;
}

.effizienz-tabelle > div:nth-child(3) {
	border-radius: 0 0 0.5em 0.5em;
	background: #FFFFFF;
	padding: 2px;
	text-align: left;
}

.effizienz-tabelle > div:nth-child(3) ul {
	margin: 0 0 0 1.6em;
}

/* @media only screen and (max-width: 480px) {
	.effizienz-tabelle {
		width: auto;
		text-align: left;
	}
	
	.effizienz-tabelle > div:first-child {
		text-align: center;
	}
	
	.effizienz-tabelle > div:nth-child(2) {
		grid-auto-flow: column;
		grid-template-columns: 50px 1fr;
		grid-template-rows: repeat(6, min-content);
	}
	
	.effizienz-tabelle > div:nth-child(2) div:first-child,
	.effizienz-tabelle > div:nth-child(2) div:nth-child(2),
	.effizienz-tabelle > div:nth-child(2) div:nth-child(3),
	.effizienz-tabelle > div:nth-child(2) div:nth-child(4),
	.effizienz-tabelle > div:nth-child(2) div:nth-child(5),
	.effizienz-tabelle > div:nth-child(2) div:nth-child(6) {
		display: flex;
		justify-content: center;
		align-items: center;
		min-height: 28px;
	}
	
	.effizienz-tabelle > div:nth-child(2) div:nth-child(7),
	.effizienz-tabelle > div:nth-child(2) div:nth-child(8),
	.effizienz-tabelle > div:nth-child(2) div:nth-child(9),
	.effizienz-tabelle > div:nth-child(2) div:nth-child(10),
	.effizienz-tabelle > div:nth-child(2) div:nth-child(11),
	.effizienz-tabelle > div:nth-child(2) div:nth-child(12) {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}
	
	.effizienz-tabelle > div:nth-child(2) div:nth-child(n+7) {
		padding: 1px;
	}
	
	.effizienz-tabelle > div:nth-child(2) div:nth-child(n+7) a span {
		margin: 1px;
	}
}*/

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