Шаблон:ТаблицаРолей/Роль/styles.css
Материал из FIRE STATION WIKI
Дополнительные действия
/* Основные стили карточки */
.cardRole {
display: flex;
flex-direction: column;
max-width: 400px;
min-width: 190px;
padding: 2px;
border-radius: 6px;
min-height: 36px;
box-sizing: border-box;
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 {
border-radius: 4px 4px 0 0;
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);
}
.card_header_titleRole {
padding: 0 3px;
}
.card_header_titleRole p {
margin: 6px 0;
font-weight: 600;
font-size: 13px;
letter-spacing: 0.5px;
}
.title_textRole {
color: #ffffff;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.card_imageRole {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
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 {
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));
}