Шаблон:ТаблицаРолей.Тест
Материал из FIRE STATION WIKI
Дополнительные действия
<style> .RoleTable-content_main {
padding: 8px !important; display: grid !important; grid-template-columns: repeat(5, 1fr) !important; /* Строго 5 колонок в ряд */ gap: 8px !important;
}
.RoleTable-content_main > .cardRole {
width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important;
}
.RoleTable-content_main > .cardRole:last-child:nth-child(5n+1) {
grid-column: 3 !important;
}
.RoleTable-content_main .card_imageRole {
width: 100% !important; display: flex !important; justify-content: center !important; align-items: center !important; box-sizing: border-box !important;
}
.RoleTable-content_main .card_imageRole img {
width: 100% !important; height: auto !important; max-width: 128px !important; object-fit: contain !important;
}
/* Мобильная адаптация */ @media (max-width: 768px) {
.RoleTable-content_main {
grid-template-columns: repeat(3, 1fr) !important; /* По 3 в ряд на планшетах */
}
.RoleTable-content_main > .cardRole:last-child:nth-child(5n+1) {
grid-column: auto !important;
}
} @media (max-width: 480px) {
.RoleTable-content_main {
grid-template-columns: repeat(2, 1fr) !important; /* По 2 в ряд на телефонах */
}
} </style>
Название
Какое-то содержание
Как использовать шаблон "ТаблицаРолей"
Это шаблон для отображения ролей в красивой рамке.