MediaWiki:Citizen.css: различия между версиями
Askell (обсуждение | вклад) Нет описания правки |
Askell (обсуждение | вклад) Нет описания правки |
||
(не показаны 3 промежуточные версии этого же участника) | |||
Строка 1017: | Строка 1017: | ||
.character- | .character-row { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | |||
flex-wrap: | gap: 20px; | ||
} | } | ||
Строка 1028: | Строка 1027: | ||
width: 200px; | width: 200px; | ||
height: 300px; | height: 300px; | ||
background- | background-color: #222; | ||
color: white; | |||
border-radius: 8px; | border-radius: 8px; | ||
overflow: hidden; | overflow: hidden; | ||
text-align: center; | |||
font-family: sans-serif; | |||
box-shadow: 0 4px 10px rgba(0,0,0,0.4); | |||
} | |||
.character-image { | |||
width: 100%; | |||
height: 200px; | |||
overflow: hidden; | |||
padding: 0; | |||
margin: 0; | |||
} | } | ||
.character- | .character-img { | ||
width: 100% !important; | |||
height: 100% !important; | |||
object-fit: cover; | |||
display: block; | |||
} | } | ||
. | .character-name { | ||
font-size: 1.1em; | |||
font-weight: bold; | font-weight: bold; | ||
padding: 8px 0; | padding: 8px 0; | ||
background-color: rgba(0, 0, 0, 0.7); | |||
} | } | ||
. | .character-overlay { | ||
position: absolute; | position: absolute; | ||
bottom: - | bottom: -60px; | ||
left: 0; | |||
width: 100%; | width: 100%; | ||
background-color: rgba( | background-color: rgba(0,0,0,0.7); | ||
color: | color: white; | ||
font-size: | font-size: 0.9em; | ||
padding: 8px; | padding: 8px 5px; | ||
box-sizing: border-box; | |||
transition: bottom 0.3s ease; | transition: bottom 0.3s ease; | ||
} | } | ||
.character-card:hover . | .character-card:hover .character-overlay { | ||
bottom: 40px; | bottom: 40px; | ||
} | } |