Шаблон:ТаблицаРолей/Роль/styles.css: различия между версиями
Материал из FIRE STATION WIKI
Дополнительные действия
Отмена версии 18981, сделанной Fire Helper (обсуждение) Метки: отмена отменено |
Нет описания правки Метка: отменено |
||
| Строка 5: | Строка 5: | ||
max-width: 400px; | max-width: 400px; | ||
min-width: 190px; | min-width: 190px; | ||
padding: | padding: 16px; | ||
border-radius: | border-radius: 12px; | ||
min-height: 36px; | min-height: 36px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
height: 100%; | height: 100%; | ||
background-color: #ffffff; | |||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); | |||
transition: transform 0.3s ease, box-shadow 0.3s ease; | |||
} | } | ||
/* Заголовок карточки */ | /* Заголовок карточки */ | ||
.card_headerRole { | .card_headerRole { | ||
border-radius: | border-radius: 8px; | ||
text-align: center; | text-align: center; | ||
background-color: #4f46e5; | |||
padding: 8px; | |||
} | } | ||
.card_header_titleRole { | .card_header_titleRole { | ||
padding: 0 | padding: 0 8px; | ||
} | } | ||
.card_header_titleRole p { | .card_header_titleRole p { | ||
margin: | margin: 0; | ||
font-size: 16px; | |||
font-weight: 600; | |||
letter-spacing: 0.5px; | |||
} | } | ||
.title_textRole { | .title_textRole { | ||
color: | color: #ffffff; | ||
} | } | ||
.card_imageRole { | .card_imageRole { | ||
flex-grow: 1; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
background-color: transparent; | background-color: transparent; | ||
padding: 20px 0; | |||
overflow: hidden; | |||
} | } | ||
.fixed_imageRole { | .fixed_imageRole { | ||
width: 100%; | |||
display: flex; | |||
justify-content: center; | |||
} | } | ||
.card_imageRole img { | .card_imageRole img { | ||
object-fit: contain | object-fit: contain; | ||
height: auto | height: auto; | ||
max-height: | max-height: 80px; | ||
max-width: 100% | max-width: 100%; | ||
transition: transform 0. | transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); | ||
} | } | ||
.cardRole:hover { | .cardRole:hover { | ||
transform: translateY(-4px); | |||
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); | |||
} | } | ||
.cardRole:hover .card_imageRole img { | .cardRole:hover .card_imageRole img { | ||
transform: scale(1. | transform: scale(1.12); | ||
} | } | ||
Версия от 20:25, 27 июня 2026
/* Основные стили карточки */
.cardRole {
display: flex;
flex-direction: column;
max-width: 400px;
min-width: 190px;
padding: 16px;
border-radius: 12px;
min-height: 36px;
box-sizing: border-box;
height: 100%;
background-color: #ffffff;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Заголовок карточки */
.card_headerRole {
border-radius: 8px;
text-align: center;
background-color: #4f46e5;
padding: 8px;
}
.card_header_titleRole {
padding: 0 8px;
}
.card_header_titleRole p {
margin: 0;
font-size: 16px;
font-weight: 600;
letter-spacing: 0.5px;
}
.title_textRole {
color: #ffffff;
}
.card_imageRole {
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
background-color: transparent;
padding: 20px 0;
overflow: hidden;
}
.fixed_imageRole {
width: 100%;
display: flex;
justify-content: center;
}
.card_imageRole img {
object-fit: contain;
height: auto;
max-height: 80px;
max-width: 100%;
transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.cardRole:hover {
transform: translateY(-4px);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.cardRole:hover .card_imageRole img {
transform: scale(1.12);
}