Шаблон:ТаблицаРолей/Роль/styles.css: различия между версиями
Материал из FIRE STATION WIKI
Дополнительные действия
Нет описания правки Метка: отменено |
Нет описания правки Метка: отменено |
||
| Строка 1: | Строка 1: | ||
.cardRole { | .cardRole { | ||
display: flex; | display: flex; | ||
| Строка 12: | Строка 11: | ||
border: 1px solid #2d3142; | border: 1px solid #2d3142; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); | box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); | ||
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; | |||
cursor: pointer; | |||
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, outline 0.2s ease; | |||
} | } | ||
| Строка 30: | Строка 32: | ||
font-size: 14px; | font-size: 14px; | ||
font-weight: 600; | font-weight: 600; | ||
} | |||
.card_header_titleRole a { | |||
color: #ffffff; | |||
text-decoration: none; | |||
} | } | ||
| Строка 62: | Строка 69: | ||
.cardRole:hover { | .cardRole:hover { | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); | box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);border-color: #4c51bf; | ||
} | } | ||
.cardRole:hover .card_imageRole img { | .cardRole:hover .card_imageRole img { | ||
transform: scale(1.15); | |||
} | |||
.card_imageRole img { | |||
transform: scale(1.15); | transform: scale(1.15); | ||
} | } | ||
Версия от 20:36, 27 июня 2026
.cardRole {
display: flex;
flex-direction: column;
max-width: 400px;
min-width: 190px;
padding: 8px;
border-radius: 8px;
box-sizing: border-box;
height: 100%;
background-color: #1a1c23;
border: 1px solid #2d3142;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, outline 0.2s ease;
}
.card_headerRole {
background-color: #2b305c;
border-radius: 6px;
text-align: center;
padding: 6px 4px;
}
.card_header_titleRole {
padding: 0 4px;
}
.card_header_titleRole p {
margin: 0;
font-size: 14px;
font-weight: 600;
}
.card_header_titleRole a {
color: #ffffff;
text-decoration: none;
}
.title_textRole {
color: #ffffff;
}
.card_imageRole {
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
background-color: transparent;
padding: 16px 0;
}
.fixed_imageRole {
width: 100%;
display: flex;
justify-content: center;
}
.card_imageRole img {
object-fit: contain;
height: auto;
max-height: 80px;
max-width: 100%;
image-rendering: pixelated;
transition: transform 0.2s ease-in-out;
}
.cardRole:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);border-color: #4c51bf;
}
.cardRole:hover .card_imageRole img {
transform: scale(1.15);
}
.card_imageRole img {
transform: scale(1.15);
}