Vorlage:Spielmechanik-Navigation/style.css
Zur Navigation springen
Zur Suche springen
.spielmechanik-nav {
box-shadow: 1px 1px 2px #989898;
display: grid;
border-radius: 0.5em;
text-align: center;
padding: 4px;
gap: 2px;
margin-top: 1em;
}
.spielmechanik-nav > div:first-child {
padding: 8px;
font-weight: bold;
font-size: large;
}
/* Flexcontainer für die Generationsknöpfe */
.spielmechanik-nav > div:nth-child(2) {
display: flex;
flex-wrap: wrap;
gap: 2px;
}
.spielmechanik-nav > div:nth-child(2) div {
background: #FFFFFF;
flex-grow: 1;
flex-basis: 80px;
padding: 8px;
border-radius: 0.5em;
}
/* Erster Toggleinhalt */
.spielmechanik-nav .clicktoggle-target {
padding: 2px;
border-radius: 0.5em;
}
/* Flexbox für Spielknöpfe */
.spielmechanik-nav .clicktoggle-target div:first-child {
display: flex;
flex-wrap: wrap;
gap: 2px;
padding: 2px;
}
.spielmechanik-nav .clicktoggle-target div:first-child div {
border-radius: 0.5em;
flex-grow: 1;
flex-basis: 150px;
display: flex;
justify-content: center;
align-items: center;
padding: 2px;
font-weight: bold;
background: #FFFFFF;
}
/* Grid für Spielmechanikunterteilung */
.spielmechanik-nav .clicktoggle-target .clicktoggle-target {
display: grid;
grid-template-columns: 1fr 3fr;
gap: 2px;
}
/* Flexbox für linke Spalte */
.spielmechanik-nav .clicktoggle-target .clicktoggle-target div:nth-child(2n+1) {
display: flex;
justify-content: center;
align-items: center;
background: #FFFFFF;
border-radius: 0.5em;
font-weight: bold;
padding: 8px;
}
/* Flexbox für Links */
.spielmechanik-nav .clicktoggle-target .clicktoggle-target div:nth-child(2n+2) {
display: flex;
flex-wrap: wrap;
gap: 2px;
}
.spielmechanik-nav .clicktoggle-target .clicktoggle-target div:nth-child(2n+2) a,
.spielmechanik-nav .clicktoggle-target .clicktoggle-target div:nth-child(2n+2) span{
background: #FFFFFF;
flex-grow: 1;
flex-basis: 140px;
padding: 2px;
border-radius: 0.5em;
display: flex;
justify-content: center;
align-items: center;
}
/*@media only screen and (max-width: 600px) {
.spielmechanik-nav .clicktoggle-target .clicktoggle-target {
grid-template-columns: 1fr;
}
}*/
/* [[Kategorie:Vorlage:Non-Wikitext]] */