Шаблон:ТаблицаРолей/Роль/styles.css: различия между версиями
Материал из FIRE STATION WIKI
Дополнительные действия
м Откат правки Fire Helper (обсуждение) к последней версии Mr. Samuel Метка: откат |
Нет описания правки |
||
| (не показаны 3 промежуточные версии этого же участника) | |||
| Строка 41: | Строка 41: | ||
.fixed_imageRole { | .fixed_imageRole { | ||
padding: 0 64px; | padding: 0 64px; | ||
} | |||
.card_imageRole img { | |||
object-fit: contain !important; | |||
height: auto !important; | |||
max-height: 75px !important; | |||
max-width: 100% !important; | |||
transition: transform 0.2s ease-in-out !important; | |||
} | |||
.cardRole:hover { | |||
z-index: 100 !important; | |||
} | |||
.cardRole:hover .card_imageRole img { | |||
transform: scale(1.3) !important; | |||
} | } | ||
Текущая версия от 19:53, 23 июня 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%;
}
/* Заголовок карточки */
.card_headerRole {
border-radius: 3px;
text-align: center;
}
.card_header_titleRole {
padding: 0 3px;
}
.card_header_titleRole p {
margin: 6px 0;
}
.title_textRole {
color: white;
}
/* Область изображения */
.card_imageRole {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: transparent;
}
.fixed_imageRole {
padding: 0 64px;
}
.card_imageRole img {
object-fit: contain !important;
height: auto !important;
max-height: 75px !important;
max-width: 100% !important;
transition: transform 0.2s ease-in-out !important;
}
.cardRole:hover {
z-index: 100 !important;
}
.cardRole:hover .card_imageRole img {
transform: scale(1.3) !important;
}