Шаблон:ТаблицаРолей/styles.css: различия между версиями
Материал из FIRE STATION WIKI
Дополнительные действия
Нет описания правки Метки: ручная отмена отменено |
Нет описания правки |
||
| (не показано 11 промежуточных версий этого же участника) | |||
| Строка 38: | Строка 38: | ||
text-align: center; | text-align: center; | ||
flex-grow: 1; | flex-grow: 1; | ||
} | |||
.RoleTable-card_title a { | |||
color: white !important; | |||
} | } | ||
| Строка 43: | Строка 47: | ||
.RoleTable-card_content { | .RoleTable-card_content { | ||
margin-top: 3px; | margin-top: 3px; | ||
width: 100%; | |||
} | } | ||
.RoleTable-content_main { | .RoleTable-content_main { | ||
padding: 3px; | padding: 3px; | ||
display: | display: grid; | ||
grid-template-columns: repeat(5, 1fr); | |||
gap: 5px; | gap: 5px; | ||
border-radius: 3px; | border-radius: 3px; | ||
width: 100%; | |||
} | |||
.RoleTable-content_main > .cardRole { | |||
max-width: none; | |||
width: 100%; | |||
min-width: 0; | |||
} | } | ||
/* Вторичное содержимое */ | /* Вторичное содержимое */ | ||
.RoleTable-content_secondary { | .RoleTable-content_secondary { | ||
display: | display: grid; | ||
grid-template-columns: repeat(2, 1fr); | |||
gap: 3px; | gap: 3px; | ||
margin-top: 3px; | margin-top: 3px; | ||
width: 100%; | |||
} | |||
.RoleTable-content_secondary > .RoleTable-content_block:only-child { | |||
grid-column: 1 / -1; | |||
} | } | ||
.RoleTable-content_block { | .RoleTable-content_block { | ||
border-radius: 3px; | border-radius: 3px; | ||
padding: 0 5px; | padding: 0 5px; | ||
min-width: 0; | |||
} | } | ||
.RoleTable-block_title { | .RoleTable-block_title { | ||
font-weight: bold; | font-weight: bold; | ||
white-space: nowrap; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
} | } | ||
| Строка 82: | Строка 99: | ||
} | } | ||
/* Адаптация для | /* Адаптация для разных разрешений */ | ||
@media (max-width: 1440px) { | |||
.RoleTable-content_main { | |||
grid-template-columns: repeat(4, 1fr); | |||
} | |||
} | |||
@media (max-width: 1200px) { | |||
.RoleTable-content_main { | |||
grid-template-columns: repeat(3, 1fr); | |||
} | |||
} | |||
@media (max-width: 900px) { | |||
.RoleTable-content_main { | |||
grid-template-columns: repeat(2, 1fr); | |||
} | |||
} | |||
@media (max-width: 640px) { | @media (max-width: 640px) { | ||
.RoleTable-content_main, | |||
.RoleTable-content_secondary { | |||
grid-template-columns: 1fr; | |||
} | |||
.RoleTable-content_block { | .RoleTable-content_block { | ||
min-width: 100%; | min-width: 100%; | ||
} | |||
.RoleTable-content_secondary > .RoleTable-content_block:only-child { | |||
grid-column: 1; | |||
} | } | ||
} | } | ||
Текущая версия от 23:14, 28 декабря 2025
/* Основные стили карточки */
.RoleTable-card {
display: inline-flex;
flex-direction: column;
max-width: 100%;
min-width: 300px;
width: 100%;
margin: 0.5em 0 5px 0;
padding: 2px;
border-radius: 6px;
box-sizing: border-box;
}
/* Заголовок карточки */
.RoleTable-card_header {
border-radius: 3px;
text-align: center;
cursor: pointer;
}
.RoleTable-card_header_title {
display: flex;
justify-content: space-between;
align-items: center;
text-align: left;
margin: 0 6px;
padding: 3px 0;
}
.RoleTable-header_icon {
flex: 0 0 32px;
}
.RoleTable-card_title {
margin: 6px 0;
color: white;
font-size: 16px;
text-align: center;
flex-grow: 1;
}
.RoleTable-card_title a {
color: white !important;
}
/* Основное содержимое */
.RoleTable-card_content {
margin-top: 3px;
width: 100%;
}
.RoleTable-content_main {
padding: 3px;
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 5px;
border-radius: 3px;
width: 100%;
}
.RoleTable-content_main > .cardRole {
max-width: none;
width: 100%;
min-width: 0;
}
/* Вторичное содержимое */
.RoleTable-content_secondary {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 3px;
margin-top: 3px;
width: 100%;
}
.RoleTable-content_secondary > .RoleTable-content_block:only-child {
grid-column: 1 / -1;
}
.RoleTable-content_block {
border-radius: 3px;
padding: 0 5px;
min-width: 0;
}
.RoleTable-block_title {
font-weight: bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.RoleTable-block_content {
padding: 2px 0;
}
.RoleTable-block_content p {
margin: 0;
}
/* Адаптация для разных разрешений */
@media (max-width: 1440px) {
.RoleTable-content_main {
grid-template-columns: repeat(4, 1fr);
}
}
@media (max-width: 1200px) {
.RoleTable-content_main {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 900px) {
.RoleTable-content_main {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 640px) {
.RoleTable-content_main,
.RoleTable-content_secondary {
grid-template-columns: 1fr;
}
.RoleTable-content_block {
min-width: 100%;
}
.RoleTable-content_secondary > .RoleTable-content_block:only-child {
grid-column: 1;
}
}