Vorlage:RandomPerson/style.css: Unterschied zwischen den Versionen
Aus Sacra.Wiki
Ansichten
Aktionen
Namensräume
Varianten
Werkzeuge
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
Zeile 10: | Zeile 10: | ||
border-radius: 4px; | border-radius: 4px; | ||
border: 1px solid rgba(0, 0, 0, 0.05); | border: 1px solid rgba(0, 0, 0, 0.05); | ||
} | |||
.random-person .person-image { | |||
padding-top: 100%; | |||
height: 0; | |||
width: 100%; | |||
background-size: cover; | |||
background-position: center center; | |||
background-repeat: no-repeat; | |||
} | } | ||
.random-person h2 { | .random-person h2 { |
Version vom 19. Oktober 2021, 10:23 Uhr
.people-container {
display: flex;
flex-direction: row;
}
.random-person {
margin: 8px;
flex-basis: 25%;
flex-grow: 1;
flex-shrink: 0;
border-radius: 4px;
border: 1px solid rgba(0, 0, 0, 0.05);
}
.random-person .person-image {
padding-top: 100%;
height: 0;
width: 100%;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
}
.random-person h2 {
font-size: 16px;
text-align: center;
padding: 8px;
}