MediaWiki:Citizen.css: различия между версиями
Askell (обсуждение | вклад) Нет описания правки |
Askell (обсуждение | вклад) Нет описания правки |
||
Строка 1016: | Строка 1016: | ||
.character-card { | .character-card-container { | ||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 20px; | |||
} | } | ||
.character-card | .character-card { | ||
width: 200px; | |||
height: 300px; | |||
border: 1px solid #aaa; | |||
background-color: #f9f9f9; | |||
text-align: center; | |||
padding: 10px; | |||
box-sizing: border-box; | |||
font-family: sans-serif; | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: space-between; | |||
} | } | ||
.character- | .character-card .image { | ||
height: 150px; | |||
overflow: hidden; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | } | ||
.character- | .character-card .image > div { | ||
. | max-height: 100%; | ||
max-width: 100%; | |||
} | } | ||
.character-card- | .character-card .text { | ||
flex-grow: 1; | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: center; | |||
} | } |