MediaWiki:Citizen.css: различия между версиями
Askell (обсуждение | вклад) Нет описания правки |
Askell (обсуждение | вклад) Нет описания правки |
||
| Строка 1020: | Строка 1020: | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 20px; | gap: 20px; | ||
justify-content: center; | |||
} | } | ||
.character-card { | .character-card { | ||
position: relative; | |||
width: 200px; | width: 200px; | ||
height: 300px; | height: 300px; | ||
border: | overflow: hidden; | ||
background-color: # | border-radius: 12px; | ||
background-color: #1a1a1a; | |||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); | |||
font-family: "Segoe UI", sans-serif; | |||
color: #fff; | |||
transition: transform 0.3s ease; | |||
} | |||
.character-card:hover { | |||
transform: translateY(-5px); | |||
} | |||
.character-name { | |||
text-align: center; | text-align: center; | ||
font-size: 18px; | |||
font-weight: bold; | |||
font- | padding: 8px; | ||
background-color: #2a2a2a; | |||
color: #00ffc8; | |||
} | } | ||
.character- | .character-image { | ||
width: 100%; | |||
height: 200px; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
overflow: hidden; | |||
} | } | ||
.character- | .character-image > div img { | ||
max-height: 100%; | max-height: 100%; | ||
width: auto; | |||
} | } | ||
.character- | .character-info { | ||
position: absolute; | |||
bottom: 0; | |||
left: 0; | |||
width: 100%; | |||
background: rgba(0, 0, 0, 0.7); | |||
color: #ccc; | |||
font-size: 14px; | |||
padding: 10px; | |||
transform: translateY(100%); | |||
transition: transform 0.3s ease; | |||
} | |||
.character-card:hover .character-info { | |||
transform: translateY(0); | |||
} | } | ||