MediaWiki:Common.css: відмінності між версіями

нема опису редагування
Немає опису редагування
Немає опису редагування
Рядок 902: Рядок 902:
}
}


.mcc-heroes-list {
<div class="mcc-hero-card">
    display: flex;
     <a href="https://mafiacc.site/index.php/{{{NICKNAME|}}}" class="mcc-hero-link" title="{{{NICKNAME|}}}">
    flex-wrap: wrap;
       
    justify-content: space-between;
        [[Файл:Hero_{{{NICKNAME|}}}.png|{{{WIDTH|242px}}}|class=hero-image-wiki]]
    list-style: none;
       
    padding: 0;
        <div class="mcc-hero-info">
    margin: 20px 0;
            <div class="mcc-hero-nickname">{{{NICKNAME|}}}</div>
}
            <div class="mcc-hero-date">{{{DATE|}}}</div>
 
         </div>
.mcc-heroes-list li {
     </a>
    width: 18.5%;
</div>
    margin-bottom: 20px;
    box-sizing: border-box;
}
 
.mcc-hero-card {
     height: 242px;
    width: 100%;
    border-radius: 0px;
    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, transform 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
 
.mcc-hero-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transform: scale(1.01);
}
 
.mcc-hero-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
    text-decoration: none;
    color: white;
    z-index: 100; /* Встановлюємо високий Z-index для посилання */
    overflow: hidden;
    cursor: pointer;
}
 
/* --- ГРАДІЄНТНЕ ПОКРИТТЯ ВИДАЛЕНО (mcc-hero-link::after) --- */
 
/* Контейнер зображення */
.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-info {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    padding: 0 5px;
    box-sizing: border-box;
    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: 0 0 5px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
}
 
.mcc-hero-date {
    font-size: 14px;
    color: yellow;
    opacity: 0.9;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
}
 
.mcc-champion-card {
    border: 1px solid yellow;
}
 
@media (max-width: 768px) {
    .mcc-heroes-list {
        gap: 10px;
        justify-content: center;
    }
    .mcc-heroes-list li {
         width: calc(50% - 5px);
        margin-bottom: 10px;
     }
}