5494
редагування
Admin (обговорення | внесок) Немає опису редагування |
Admin (обговорення | внесок) Немає опису редагування |
||
| Рядок 902: | Рядок 902: | ||
} | } | ||
.mcc-heroes-list { | |||
display: flex; | |||
flex-wrap: wrap; | |||
justify-content: space-between; | |||
list-style: none; | |||
padding: 0; | |||
margin: 20px 0; | |||
} | |||
.mcc-heroes-list li { | |||
width: 18.5%; | |||
margin-bottom: 20px; | |||
box-sizing: border-box; | |||
} | |||
.mcc-hero-card { | .mcc-hero-card { | ||
height: 242px; | height: 242px; | ||
| Рядок 908: | Рядок 922: | ||
border-radius: 0px; | border-radius: 0px; | ||
overflow: hidden; | overflow: hidden; | ||
position: relative; | position: relative; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0. | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); | ||
background-color: #333; | background-color: #333; | ||
transition: box-shadow 0.3s ease-in-out; | transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out; | ||
border: 1px solid rgba(255, 255, 255, 0.1); | border: 1px solid rgba(255, 255, 255, 0.1); | ||
} | |||
.mcc-hero-card:hover { | |||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6); | |||
transform: translateY(-3px); | |||
} | } | ||
.mcc-hero-link { | .mcc-hero-link { | ||
display: block; | display: block; | ||
height: 100%; | height: 100%; | ||
width: 100%; | width: 100%; | ||
position: relative; | position: relative; | ||
text-decoration: none; | text-decoration: none; | ||
color: white; | color: white; | ||
z-index: 2; | |||
z-index: 2; | |||
overflow: hidden; | overflow: hidden; | ||
cursor: pointer; | cursor: pointer; | ||
} | |||
.mcc-hero-card .hero-image-wiki { | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
z-index: 0; | |||
overflow: hidden; | |||
} | |||
.mcc-hero-card .hero-image-wiki img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
transform: scale(1); | |||
transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out, opacity 0.3s ease-in-out; | |||
} | |||
.mcc-hero-card:hover .hero-image-wiki img { | |||
transform: scale(1.1); | |||
} | } | ||
.mcc-hero-link::after { | .mcc-hero-link::after { | ||
content: ''; | content: ''; | ||
| Рядок 937: | Рядок 975: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
background: linear-gradient(to top, rgba(0, 0, 0, 0. | background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.0) 50%); | ||
z-index: 1; | z-index: 1; | ||
pointer-events: none; | pointer-events: none; | ||
} | } | ||
.mcc-hero-info { | .mcc-hero-info { | ||
position: absolute; | position: absolute; | ||
| Рядок 950: | Рядок 987: | ||
padding: 0 5px; | padding: 0 5px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
z-index: 3; | z-index: 3; | ||
pointer-events: none; | pointer-events: none; | ||
} | |||
.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-champion-card { | |||
border: 2px solid yellow; | |||
box-shadow: 0 4px 8px rgba(255, 204, 0, 0.4); | |||
} | } | ||
/* | /* Адаптивність: 2 картки в рядку для мобільних */ | ||
.mcc- | @media (max-width: 768px) { | ||
.mcc-heroes-list { | |||
gap: 10px; | |||
justify-content: center; | |||
width: | } | ||
.mcc-heroes-list li { | |||
width: calc(50% - 5px); | |||
margin-bottom: 10px; | |||
} | |||
} | |||
} | } | ||