Шаблон:ТаблицаРолей/Роль/styles.css: различия между версиями
Материал из FIRE STATION WIKI
Дополнительные действия
Нет описания правки Метка: отменено |
Нет описания правки |
||
| (не показаны 3 промежуточные версии этого же участника) | |||
| Строка 1: | Строка 1: | ||
/* Основные стили карточки */ | |||
.cardRole { | .cardRole { | ||
display: flex; | display: flex; | ||
| Строка 4: | Строка 5: | ||
max-width: 400px; | max-width: 400px; | ||
min-width: 190px; | min-width: 190px; | ||
padding: | padding: 2px; | ||
border-radius: | border-radius: 6px; | ||
min-height: 36px; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
height: 100%; | height: 100%; | ||
cursor: pointer; | border: 1px solid #2f314d; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); | |||
cursor: pointer; | |||
position: relative; | |||
overflow: hidden; | |||
transition: transform 0. | 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: 4px 4px 0 0; | |||
border-radius: | |||
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); | |||
} | } | ||
.card_header_titleRole { | .card_header_titleRole { | ||
padding: 0 | padding: 0 3px; | ||
} | } | ||
.card_header_titleRole p { | .card_header_titleRole p { | ||
margin: 0 | margin: 6px 0; | ||
font-weight: 600; | font-weight: 600; | ||
font-size: 13px; | |||
letter-spacing: 0.5px; | |||
} | } | ||
.title_textRole { | .title_textRole { | ||
color: #ffffff; | color: #ffffff; | ||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); | |||
} | } | ||
.card_imageRole { | .card_imageRole { | ||
height: 100%; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
background-color: transparent; | background-color: transparent; | ||
position: relative; | |||
} | } | ||
. | .card_imageRole img { | ||
width: | 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)); | |||
} | } | ||
.card_imageRole img { | .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 { | .cardRole:hover .card_imageRole img { | ||
transform: scale(1. | transform: scale(1.20) translateY(-2px); | ||
filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); | |||
} | } | ||
Текущая версия от 21:11, 27 июня 2026
/* Основные стили карточки */
.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));
}