Шаблон:таблицаролей/роль/styles.css

Вернуться

Строка 10: Строка 10:
     box-sizing: border-box;
     box-sizing: border-box;
     height: 100%;
     height: 100%;
   
    border: 1px solid #2f314d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
   
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cardRole:hover {
    transform: translateY(-4px);
    border-color: #4c51bf;
    box-shadow: 0 10px 20px rgba(76, 81, 191, 0.15), 0 6px 6px rgba(0, 0, 0, 0.25);
}
.cardRole:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
}


/* Заголовок карточки */
.card_headerRole {
.card_headerRole {
     border-radius: 3px;
     border-radius: 4px 4px 0 0;
     text-align: center;
     text-align: center;
    background: rgba(76, 81, 191, 0.2);
    border-bottom: 1px solid rgba(76, 81, 191, 0.3);
    transition: background 0.25s ease;
}
.cardRole:hover .card_headerRole {
    background: rgba(76, 81, 191, 0.4);
}
}


Строка 24: Строка 51:
.card_header_titleRole p {
.card_header_titleRole p {
     margin: 6px 0;
     margin: 6px 0;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}
}


.title_textRole {
.title_textRole {
     color: white;
     color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
}


/* Область изображения */
.card_imageRole {
.card_imageRole {
     height: 100%;
     height: 100%;
Строка 37: Строка 67:
     justify-content: center;
     justify-content: center;
     background-color: transparent;
     background-color: transparent;
    position: relative;
}
.card_imageRole img {
    max-height: 120px;
    width: auto;
    image-rendering: pixelated;
   
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.cardRole:hover .card_imageRole img {
    transform: scale(1.12) translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(76, 81, 191, 0.3)) drop-shadow(0 4px 4px rgba(0,0,0,0.6));
}
}


.fixed_imageRole {
.fixed_imageRole {
     padding: 0 64px;
     padding: 0 64px;
}
.fixed_imageRole {
    padding: 0 64px;
}
.cardRole:hover .card_imageRole img {
    transform: scale(1.20) translateY(-2px);
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
}
}