5494
редагування
Admin (обговорення | внесок) Немає опису редагування |
Admin (обговорення | внесок) Немає опису редагування |
||
| Рядок 903: | Рядок 903: | ||
/* ==================================================== */ | /* ==================================================== */ | ||
/* СЕКЦІЯ СТИЛІВ КАРТОК ГЕРОЇВ ( | /* СЕКЦІЯ СТИЛІВ КАРТОК ГЕРОЇВ (ЧИСТИЙ HTML-ПІДХІД) */ | ||
/* ==================================================== */ | /* ==================================================== */ | ||
.mcc-heroes-list | /* ... (Стилі mcc-heroes-list, li, mcc-hero-card, mcc-hero-link залишаються без змін) ... */ | ||
. | |||
.mcc-heroes-list { display: flex; flex-wrap: wrap; justify-content: space-between; list-style: none; padding: 0; margin: 20px 0; } | |||
.mcc-hero-card { | .mcc-heroes-list li { width: 18.5%; margin-bottom: 20px; } | ||
.mcc-hero-card { height: 200px; width: 100%; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); background-color: #333; transition: box-shadow 0.3s ease-in-out; } | |||
.mcc-hero-link { display: block; height: 100%; width: 100%; position: relative; text-decoration: none; color: white; z-index: 2; overflow: hidden; } | |||
} | |||
.mcc-hero-link { | |||
} | |||
/* ---------------------------------------------------- */ | /* ---------------------------------------------------- */ | ||
/* ПОЗИЦІОНУВАННЯ ТА АНІМАЦІЯ ЗОБРАЖЕННЯ */ | /* ПОЗИЦІОНУВАННЯ ТА АНІМАЦІЯ ЗОБРАЖЕННЯ (ЧИСТИЙ IMG) */ | ||
/* ---------------------------------------------------- */ | /* ---------------------------------------------------- */ | ||
/* 1. | /* 1. DIV контейнер: позиціонування */ | ||
.mcc-hero-card .hero-image-wiki { | .mcc-hero-card .hero-image-wiki { | ||
position: absolute; | position: absolute; | ||
| Рядок 964: | Рядок 932: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
object-fit: cover; | object-fit: cover; | ||
transform: scale(1); | transform: scale(1); | ||
transition: transform 0.3s ease-in-out; | transition: transform 0.3s ease-in-out; | ||
} | } | ||
/* Анімація при наведенні: збільшення зображення */ | /* Анімація при наведенні: збільшення зображення */ | ||
.mcc-hero-card:hover .hero-image-wiki img { | .mcc-hero-card:hover .hero-image-wiki img { | ||
transform: scale(1.1); | transform: scale(1.1); | ||
} | } | ||
/* Градієнт | /* Градієнт */ | ||
.mcc-hero-link::after { | .mcc-hero-link::after { | ||
content: ''; | content: ''; | ||
| Рядок 982: | Рядок 950: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.0) 50%); | background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.0) 50%); | ||
z-index: 1.5; | z-index: 1.5; | ||
} | } | ||
| Рядок 998: | Рядок 965: | ||
} | } | ||
.mcc-hero-nickname { | .mcc-hero-nickname { font-size: 14px; color: white; font-weight: bold; line-height: 1.2; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); } | ||
.mcc-hero-date { font-size: 14px; color: yellow; opacity: 0.9; line-height: 1.2; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); } | |||
} | |||
.mcc-hero-date { | |||
} | |||
.mcc-hero-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); } | |||
.mcc-hero-card:hover { | |||
} | |||