Vorlage:Berühmte Trainer/style.css
Aus PokéWiki
.beruehmte-trainer {
border-radius: 0.5em;
border-style: solid;
border-width: 2px;
margin: auto;
text-align: center;
}
.beruehmte-trainer td {
background: #FFFFFF;
padding: 2px;
}
.beruehmte-trainer tr:first-child th:first-child {
border-top-left-radius: 0.5em;
}
.beruehmte-trainer tr:first-child th:last-child {
border-top-right-radius: 0.5em;
}
.beruehmte-trainer tr:last-child td:first-child {
border-bottom-left-radius: 0.5em;
}
.beruehmte-trainer tr:last-child td:last-child {
border-bottom-right-radius: 0.5em;
}
/* Sk-Fix für Größenproblem. Sorgt für Umbruch bei geringen Seitenbreiten */
@media only screen and (max-width: 650px) {
.beruehmte-trainer .sk {
display: flex;
flex-wrap: wrap;
justify-content: center;
row-gap: 2px;
}
.beruehmte-trainer .sk > a {
display: contents;
}
}
@media only screen and (max-width: 650px) and (min-width: 500px) {
.beruehmte-trainer .sk > a:nth-child(5n)::after {
content: "";
width: 100%;
}
.beruehmte-trainer .sk > a:nth-child(5n) > span {
border-bottom-right-radius: 0.5em;
border-top-right-radius: 0.5em;
}
.beruehmte-trainer .sk > a:nth-child(5n) + a > span {
border-bottom-left-radius: 0.5em;
border-top-left-radius: 0.5em;
}
}
@media only screen and (max-width: 499px) and (min-width: 400px) {
.beruehmte-trainer .sk > a:nth-child(4n)::after {
content: "";
width: 100%;
}
.beruehmte-trainer .sk > a:nth-child(4n) > span {
border-bottom-right-radius: 0.5em;
border-top-right-radius: 0.5em;
}
.beruehmte-trainer .sk > a:nth-child(4n) + a > span {
border-bottom-left-radius: 0.5em;
border-top-left-radius: 0.5em;
}
}
@media only screen and (max-width: 399px) {
.beruehmte-trainer .sk > a:nth-child(3n)::after {
content: "";
width: 100%;
}
.beruehmte-trainer .sk > a:nth-child(3n) > span {
border-bottom-right-radius: 0.5em;
border-top-right-radius: 0.5em;
}
.beruehmte-trainer .sk > a:nth-child(3n) + a > span {
border-bottom-left-radius: 0.5em;
border-top-left-radius: 0.5em;
}
}
/* [[Kategorie:Vorlage:Non-Wikitext]] */