5494
редагування
Admin (обговорення | внесок) Немає опису редагування Мітка: Скасовано |
Admin (обговорення | внесок) Немає опису редагування Мітка: Скасовано |
||
| Рядок 68: | Рядок 68: | ||
opacity: 1.0!important; | opacity: 1.0!important; | ||
} | } | ||
.mcc-heroes-list { | .mcc-heroes-list { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 20px; | gap: 20px; | ||
justify-content: flex-start; | justify-content: flex-start; | ||
list-style: none; | list-style: none; | ||
padding: 0; | padding: 0; | ||
margin: 20px 0; | margin: 20px 0; | ||
} | } | ||
.mcc-hero-card { | .mcc-hero-card { | ||
width: 184px; | width: 184px; | ||
height: 242px; | height: 242px; | ||
border-radius: 12px; | border-radius: 12px; | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
position: relative; | position: relative; | ||
background-color: #333; /* | background-color: #333; /* Заглушка кольору, якщо зображення відсутнє/не завантажено */ | ||
color: white; /* | color: white; | ||
/* Додаємо градієнт, щоб текст був краще помітний на будь-якому зображенні */ | |||
} | } | ||
/* | /* Справжній тег зображення всередині картки */ | ||
.mcc-hero-image { | .mcc-hero-image { | ||
width: 100%; | width: 100%; | ||
| Рядок 102: | Рядок 100: | ||
left: 0; | left: 0; | ||
object-fit: cover; | object-fit: cover; | ||
z-index: 1; /* | border-radius: 12px; | ||
z-index: 1; | |||
} | |||
/* Накладаємо напівпрозорий градієнт поверх зображення для кращої читабельності тексту */ | |||
.mcc-hero-card::after { | |||
content: ''; | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%); | |||
z-index: 1.5; /* Між зображенням і текстом */ | |||
} | } | ||
.mcc-hero-info { | .mcc-hero-info { | ||
position: absolute; | position: absolute; | ||
bottom: 20px; | bottom: 20px; | ||
width: 100%; | width: 100%; | ||
text-align: center; | text-align: center; | ||
padding: 0 5px; | padding: 0 5px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
z-index: 2; /* Текст | z-index: 2; /* Текст повинен бути нагорі */ | ||
} | } | ||
.mcc-hero-nickname { | .mcc-hero-nickname { | ||
font-size: 16px; | font-size: 16px; | ||
font-weight: bold; | font-weight: bold; | ||
line-height: 1.2; | line-height: 1.2; | ||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.9); /* Тінь для тексту для контрасту */ | |||
} | } | ||
.mcc-hero-date { | .mcc-hero-date { | ||
font-size: 14px; | font-size: 14px; | ||
opacity: 0. | opacity: 0.9; | ||
line-height: 1.2; | line-height: 1.2; | ||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.9); | |||
} | } | ||
.mcc-hero-info a { | .mcc-hero-info a { | ||
color: inherit; | color: inherit; | ||
text-decoration: none; | text-decoration: none; | ||
display: block; /* Щоб посилання займало всю область тексту */ | |||
} | } | ||
| Рядок 139: | Рядок 149: | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
/* Спеціальний стиль для відміненої події */ | |||
.mcc-hero-card.cancelled { | |||
background-color: #5b0000; /* Темно-червоний фон для відміненої події */ | |||
} | |||
.minerva-icon--menu-base20, .minerva-icon--menu { | .minerva-icon--menu-base20, .minerva-icon--menu { | ||