Шаблон:ТаблицаРолей/Тест/styles.css: различия между версиями
Материал из FIRE STATION WIKI
Дополнительные действия
Нет описания правки |
Нет описания правки |
||
| Строка 29: | Строка 29: | ||
.RoleTable-card_title { | .RoleTable-card_title { | ||
margin: 0 !important; | margin: 0 !important; | ||
color :white; | color: white; | ||
font-size: 14px; | font-size: 14px; | ||
font-weight: bold; | font-weight: bold; | ||
| Строка 46: | Строка 46: | ||
.RoleTable-content_main { | .RoleTable-content_main { | ||
display: flex !important; | |||
flex-direction: row !important; | |||
flex-wrap: wrap !important; | |||
justify-content: flex-start !important; | |||
align-items: flex-start !important; | |||
gap: 8px !important; | |||
padding: 8px; | padding: 8px; | ||
border-radius: 3px; | border-radius: 3px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
| Строка 101: | Строка 103: | ||
.cardRole { | .cardRole { | ||
display: flex; | display: inline-flex !important; | ||
flex-direction: column; | flex-direction: column; | ||
width: 120px !important; | width: 120px !important; | ||
| Строка 111: | Строка 113: | ||
overflow: hidden; | overflow: hidden; | ||
background-color: rgba(0, 0, 0, 0.2); | background-color: rgba(0, 0, 0, 0.2); | ||
flex-shrink: 0; | flex-shrink: 0 !important; | ||
margin: 0 !important; | |||
} | } | ||
| Строка 158: | Строка 161: | ||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
.RoleTable-content_main { | .RoleTable-content_main { | ||
justify-content: center; | justify-content: center !important; | ||
} | } | ||
.cardRole { | .cardRole { | ||
| Строка 164: | Строка 167: | ||
max-width: 100% !important; | max-width: 100% !important; | ||
min-width: 100px !important; | min-width: 100px !important; | ||
} | |||
.RoleTable-content_secondary { | .RoleTable-content_secondary { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
} | } | ||
Версия от 18:00, 23 июня 2026
.RoleTable-card {
display: flex;
flex-direction: column;
max-width: 100%;
margin: 0.6em 0;
padding: 2px;
border-radius: 5px;
box-sizing: border-box;
}
.RoleTable-card_header {
border-radius: 3px;
text-align: center;
}
.RoleTable-card_header_title {
display: flex;
justify-content: space-between;
align-items: center;
padding: 4px 8px;
}
.RoleTable-header_icon {
display: flex;
align-items: center;
justify-content: center;
}
.RoleTable-card_title {
margin: 0 !important;
color: white;
font-size: 14px;
font-weight: bold;
text-align: center;
flex-grow: 1;
}
.RoleTable-card_title a {
color: white !important;
}
.RoleTable-card_content {
margin-top: 3px;
width: 100%;
}
.RoleTable-content_main {
display: flex !important;
flex-direction: row !important;
flex-wrap: wrap !important;
justify-content: flex-start !important;
align-items: flex-start !important;
gap: 8px !important;
padding: 8px;
border-radius: 3px;
box-sizing: border-box;
width: 100%;
background-color: rgba(0, 0, 0, 0.15);
}
.RoleTable-content_secondary {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 3px;
margin-top: 3px;
width: 100%;
box-sizing: border-box;
}
.RoleTable-content_secondary > .RoleTable-content_block:only-child {
grid-column: 1 / -1;
}
.RoleTable-content_block {
border-radius: 3px;
padding: 6px;
font-size: 12px;
background-color: rgba(0, 0, 0, 0.1);
}
.RoleTable-block_title {
font-weight: bold;
font-size: 12px;
margin-bottom: 2px;
}
.RoleTable-block_content {
padding: 0;
line-height: 1.3;
}
.RoleTable-content_main > p,
.RoleTable-content_secondary > p {
display: contents !important;
}
.RoleTable-content_main > br,
.RoleTable-content_main > p > br,
.RoleTable-content_secondary > br,
.RoleTable-content_secondary > p > br {
display: none !important;
}
.cardRole {
display: inline-flex !important;
flex-direction: column;
width: 120px !important;
max-width: 120px !important;
min-width: 120px !important;
border-radius: 4px;
box-sizing: border-box;
height: 125px !important;
overflow: hidden;
background-color: rgba(0, 0, 0, 0.2);
flex-shrink: 0 !important;
margin: 0 !important;
}
.card_headerRole {
height: 34px;
display: flex;
align-items: center;
justify-content: center;
padding: 2px 4px;
box-sizing: border-box;
}
.card_header_titleRole p {
margin: 0 !important;
padding: 0 !important;
font-size: 11px;
font-weight: bold;
line-height: 1.1;
text-align: center;
}
.title_textRole {
color: white;
}
.card_imageRole {
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
background-color: transparent;
padding: 4px;
box-sizing: border-box;
}
.card_imageRole img {
max-width: 64px !important;
max-height: 64px !important;
object-fit: contain;
}
.fixed_imageRole {
padding: 2px !important;
}
@media (max-width: 480px) {
.RoleTable-content_main {
justify-content: center !important;
}
.cardRole {
width: calc(50% - 8px) !important;
max-width: 100% !important;
min-width: 100px !important;
}
.RoleTable-content_secondary {
grid-template-columns: 1fr;
}
}