MediaWiki:Citizen.css: различия между версиями
Askell (обсуждение | вклад) Нет описания правки |
Askell (обсуждение | вклад) Нет описания правки |
||
Строка 1016: | Строка 1016: | ||
.character- | |||
.character-gallery { | |||
display: flex; | display: flex; | ||
gap: 16px; | |||
flex-wrap: nowrap; | |||
overflow-x: auto; | |||
} | } | ||
Строка 1027: | Строка 1028: | ||
width: 200px; | width: 200px; | ||
height: 300px; | height: 300px; | ||
background-image: var(--char-img); | |||
background-size: cover; | |||
background-position: center; | |||
border: 2px solid #444; | |||
border-radius: 8px; | |||
overflow: hidden; | overflow: hidden; | ||
transition: transform 0.3s ease; | transition: transform 0.3s ease; | ||
} | } | ||
.character-card:hover { | .character-card:hover { | ||
transform: | transform: scale(1.03); | ||
} | } | ||
. | .char-name { | ||
position: absolute; | |||
bottom: 0; | |||
width: 100%; | |||
background-color: rgba(0, 0, 0, 0.6); | |||
color: white; | |||
text-align: center; | text-align: center; | ||
font-weight: bold; | font-weight: bold; | ||
padding: 8px; | padding: 8px 0; | ||
z-index: 1; | |||
} | } | ||
. | .char-overlay { | ||
position: absolute; | position: absolute; | ||
bottom: | bottom: -100%; | ||
width: 100%; | width: 100%; | ||
background: rgba( | background-color: rgba(20, 20, 20, 0.7); | ||
color: # | color: #fff; | ||
font-size: | font-size: 12px; | ||
padding: | padding: 8px; | ||
transition: bottom 0.3s ease; | |||
transition: | |||
} | } | ||
.character-card:hover . | .character-card:hover .char-overlay { | ||
bottom: 40px; /* поднимается над именем */ | |||
} | } |