5494
редагування
Admin (обговорення | внесок) Немає опису редагування |
Admin (обговорення | внесок) Немає опису редагування |
||
| Рядок 902: | Рядок 902: | ||
} | } | ||
/* --- | /* --- СІТКА І ОСНОВА --- */ | ||
.mcc-heroes-list { | .mcc-heroes-list { | ||
display: flex; | display: flex; | ||
| Рядок 929: | Рядок 918: | ||
} | } | ||
/* | /* Приховуємо небажані теги <pre>, якщо MediaWiki їх генерує */ | ||
.mcc-hero-link pre, | |||
.mcc-hero-card pre { | .mcc-hero-card pre { | ||
display: none !important; | display: none !important; | ||
height: 0 !important; | height: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
/* --- КЛІКАБЕЛЬНЕ ПОСИЛАННЯ (Вся картка) --- */ | |||
.mcc-hero-link { | |||
display: block; | |||
text-decoration: none; /* Прибираємо підкреслення */ | |||
color: inherit; | |||
cursor: pointer; | |||
position: relative; /* Необхідно для позиціонування .mcc-hero-card */ | |||
} | |||
/* --- КОНТЕЙНЕР КАРТКИ --- */ | |||
.mcc-hero-card { | .mcc-hero-card { | ||
height: 242px; | height: 242px; | ||
| Рядок 951: | Рядок 949: | ||
} | } | ||
.mcc-hero- | .mcc-hero-link:hover .mcc-hero-card { | ||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7); | box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7); | ||
transform: translateY(-3px); | transform: translateY(-3px); | ||
} | } | ||
/* --- | |||
/* --- ЗОБРАЖЕННЯ: Абсолютне позиціонування --- */ | |||
.mcc-hero-card .hero-image-wiki { | .mcc-hero-card .hero-image-wiki { | ||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
z-index: 0; | z-index: 0; | ||
overflow: hidden; | overflow: hidden; | ||
| Рядок 969: | Рядок 967: | ||
.mcc-hero-card .hero-image-wiki img { | .mcc-hero-card .hero-image-wiki img { | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
object-fit: cover; | object-fit: cover; | ||
transform: scale(1); | transform: scale(1); | ||
transition: transform | transition: transform 0.3s ease-in-out; | ||
} | } | ||
.mcc-hero- | .mcc-hero-link:hover .hero-image-wiki img { | ||
transform: scale(1.1); | transform: scale(1.1); | ||
} | } | ||
/* --- | /* --- ІНФОРМАЦІЙНИЙ БЛОК (ТЕКСТ) --- */ | ||
.mcc-hero-info { | .mcc-hero-info { | ||
position: absolute; | position: absolute; | ||
| Рядок 989: | Рядок 986: | ||
padding: 15px 5px; | padding: 15px 5px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
z-index: 2; | z-index: 2; /* Над зображенням */ | ||
/* Мінімум затемнення для читабельності, без градієнта */ | |||
background-color: rgba(0, 0, 0, 0.4); | background-color: rgba(0, 0, 0, 0.4); | ||
} | } | ||
/* --- СТИЛІ ТЕКСТУ --- */ | |||
.mcc-hero-nickname { | .mcc-hero-nickname { | ||
font-size: 14px; | font-size: 14px; | ||
| Рядок 1014: | Рядок 1006: | ||
line-height: 1.2; | line-height: 1.2; | ||
text-shadow: 0 0 5px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8); | text-shadow: 0 0 5px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8); | ||
} | } | ||
| Рядок 1030: | Рядок 1017: | ||
.mcc-heroes-list li { | .mcc-heroes-list li { | ||
width: calc(50% - 10px); | width: calc(50% - 10px); | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
} | } | ||
} | } | ||