Vorlage:Trainerpokémon/style.css
Aus PokéWiki
.trainerpokemon {
border-radius: 0.5em;
border-style: solid;
border-width: 2px;
display: grid;
gap: 2px;
margin-bottom: 5px;
padding: 2px;
}
.trainerpokemon > div:not(:nth-child(3)) a:not(.new),
.trainerpokemon > div:not(:nth-child(3)) a:visited:not(.new) {
color: #000000;
}
.trainerpokemon div.wlink,
.trainerpokemon div.wlink a:not(.new),
.trainerpokemon div.wlink a:visited:not(.new) {
color: #FFFFFF;
}
.trainerpokemon > div:nth-child(1) {
align-items: center;
border-radius: 0.5em;
display: flex;
flex-flow: column;
gap: 2px;
grid-row-end: span 2;
padding: 2px;
justify-content: center;
}
.trainerpokemon > div:nth-child(1) a:first-child img {
border-top-left-radius: 0.5em;
border-top-right-radius: 0.5em;
}
.trainerpokemon > div:nth-child(1) a:last-child img {
border-bottom-left-radius: 0.5em;
border-bottom-right-radius: 0.5em;
}
.trainerpokemon > div:nth-child(2) {
border-radius: 0.5em;
display: grid;
text-align: center;
}
.trainerpokemon > div:nth-child(2) > div:first-child {
font-size: larger;
}
.trainerpokemon > div:nth-child(3) {
background: #FFFFFF;
border-radius: 0.5em;
display: grid;
padding: 5px;
}
.trainerpokemon > div:nth-child(4),
.trainerpokemon > div:nth-child(5),
.trainerpokemon > div:last-child {
border-radius: 0.5em;
display: grid;
gap: 2px;
grid-template-rows: 1fr auto;
padding: 2px;
text-align: center;
}
.trainerpokemon > div:nth-child(4) > div:first-child,
.trainerpokemon > div:nth-child(5) > div:first-child,
.trainerpokemon > div:last-child > div:first-child {
align-items: center;
font-weight: bold;
}
.trainerpokemon > div:nth-child(4) > div,
.trainerpokemon > div:nth-child(5) > div,
.trainerpokemon > div:last-child > div {
align-items: stretch;
display: flex;
flex-wrap: wrap;
gap: 2px;
justify-content: center;
}
.trainerpokemon > div:nth-child(4) > div > div,
.trainerpokemon > div:nth-child(5) > div > div,
.trainerpokemon > div:last-child > div > div {
align-items: center;
background: #FFFFFF;
display: flex;
flex-basis: 45%;
flex-grow: 1;
justify-content: center;
padding: 2px;
}
.trainerpokemon > div:nth-child(4) > div > div:only-child,
.trainerpokemon > div:nth-child(5) > div > div,
.trainerpokemon > div:last-child > div > div {
border-radius: 0.5em;
}
.trainerpokemon > div:nth-child(4) > div > div:first-child {
border-top-left-radius: 0.5em;
}
.trainerpokemon > div:nth-child(4) > div > div:nth-child(2) {
border-top-right-radius: 0.5em;
}
.trainerpokemon > div:nth-child(4) > div > div:nth-last-child(2):nth-child(odd),
.trainerpokemon > div:nth-child(4) > div > div:last-child:nth-child(odd) {
border-bottom-left-radius: 0.5em;
}
.trainerpokemon > div:nth-child(4) > div > div:last-child {
border-bottom-right-radius: 0.5em;
}
.trainerpokemon > div:nth-child(4) > div > div > a:not(.new),
.trainerpokemon > div:nth-child(4) > div > div > a:visited:not(.new),
.trainerpokemon > div:nth-child(5) > div > div > a:not(.new),
.trainerpokemon > div:nth-child(5) > div > div > a:visited:not(.new),
.trainerpokemon > div:last-child > div > div > a:not(.new),
.trainerpokemon > div:last-child > div > div > a:visited:not(.new) {
color: #000000;
}
@media only screen and (min-width: 651px) {
.trainerpokemon {
grid-template-columns: 250px 1fr;
}
}
@media only screen and (max-width: 650px) {
.trainerpokemon > div:nth-child(2) {
order: -1;
}
}
/* [[Kategorie:Vorlage:Non-Wikitext]] */