Шаблон:ТаблицаРолей/Тест/styles.css: различия между версиями
Материал из FIRE STATION WIKI
Дополнительные действия
Нет описания правки |
Нет описания правки |
||
| (не показаны 4 промежуточные версии этого же участника) | |||
| Строка 27: | Строка 27: | ||
} | } | ||
.RoleTable-card_title { | h3.RoleTable-card_title, | ||
margin: 0 | h3.RoleTable-card_title a, | ||
color :white; | h3.RoleTable-card_title a:visited { | ||
font-size: | margin: 0; | ||
color: white; | |||
font-size: 15px; | |||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
flex-grow: 1; | flex-grow: 1; | ||
text-decoration: none; | |||
} | } | ||
| Строка 45: | Строка 44: | ||
} | } | ||
.RoleTable-content_main { | div.RoleTable-content_main { | ||
display: flex; | display: flex; | ||
flex-direction: row; | |||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: center; | justify-content: center; | ||
gap: 8px; | align-items: flex-start; | ||
gap: 8px; | |||
padding: 8px; | |||
border-radius: 3px; | border-radius: 3px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
width: 100%; | width: 100%; | ||
} | } | ||
.RoleTable-content_secondary { | div.RoleTable-content_main > p, | ||
div.RoleTable-content_secondary > p { | |||
display: contents; | |||
} | |||
div.RoleTable-content_main > br, | |||
div.RoleTable-content_main > p > br, | |||
div.RoleTable-content_secondary > br, | |||
div.RoleTable-content_secondary > p > br { | |||
display: none; | |||
} | |||
div.RoleTable-content_secondary { | |||
display: grid; | display: grid; | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
gap: | gap: 4px; | ||
margin-top: | margin-top: 4px; | ||
width: 100%; | width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.RoleTable-content_secondary > .RoleTable-content_block:only-child { | div.RoleTable-content_secondary > div.RoleTable-content_block:only-child { | ||
grid-column: 1 / -1; | grid-column: 1 / -1; | ||
} | } | ||
.RoleTable-content_block { | div.RoleTable-content_block { | ||
border-radius: 3px; | border-radius: 3px; | ||
padding: 6px; | padding: 6px; | ||
} | } | ||
| Строка 81: | Строка 91: | ||
font-size: 12px; | font-size: 12px; | ||
margin-bottom: 2px; | margin-bottom: 2px; | ||
text-align: center; | |||
} | } | ||
.RoleTable-block_content { | div.RoleTable-block_content { | ||
padding: 0; | padding: 0; | ||
line-height: 1.3; | line-height: 1.3; | ||
font-size: 13px; | |||
} | } | ||
.RoleTable- | div.RoleTable-block_content p { | ||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | } | ||
div.cardRole { | |||
.cardRole { | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
width: 120px | width: 120px; | ||
max-width: 120px | max-width: 120px; | ||
min-width: 120px | min-width: 120px; | ||
height: 125px; | |||
border-radius: 4px; | border-radius: 4px; | ||
box-sizing: border-box | box-sizing: border-box; | ||
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; | ||
margin: 0; | |||
} | } | ||
| Строка 123: | Строка 129: | ||
} | } | ||
.card_header_titleRole p { | .card_header_titleRole { | ||
margin: 0 | width: 100%; | ||
padding: 0 | } | ||
p.RoleTable-card_title_small, | |||
p.RoleTable-card_title_small a, | |||
p.RoleTable-card_title_small a:visited { | |||
margin: 0; | |||
padding: 0; | |||
color: white; | |||
font-size: 11px; | font-size: 11px; | ||
font-weight: bold; | font-weight: bold; | ||
line-height: 1.1; | line-height: 1.1; | ||
text-align: center; | text-align: center; | ||
word-wrap: break-word; | |||
text-decoration: none; | |||
} | } | ||
div.card_imageRole { | |||
.card_imageRole { | |||
flex-grow: 1; | flex-grow: 1; | ||
display: flex; | display: flex; | ||
| Строка 144: | Строка 155: | ||
padding: 4px; | padding: 4px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
height: calc(100% - 34px); | |||
} | } | ||
.card_imageRole img { | div.card_imageRole img { | ||
max-width: 64px | max-width: 64px; | ||
max-height: 64px | max-height: 64px; | ||
width: auto; | |||
height: auto; | |||
object-fit: contain; | object-fit: contain; | ||
} | } | ||
.fixed_imageRole { | .fixed_imageRole { | ||
padding: 2px | padding: 2px; | ||
} | } | ||
@media (max-width: 480px) { | @media screen and (max-width: 480px) { | ||
.RoleTable-content_main { | div.RoleTable-content_main { | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
.cardRole { | div.cardRole { | ||
width: calc(50% - 8px) | width: calc(50% - 8px); | ||
max-width: | max-width: 160px; | ||
min-width: 100px | min-width: 100px; | ||
} | |||
.RoleTable-content_secondary { | div.RoleTable-content_secondary { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
} | } | ||
Текущая версия от 18:55, 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;
}
h3.RoleTable-card_title,
h3.RoleTable-card_title a,
h3.RoleTable-card_title a:visited {
margin: 0;
color: white;
font-size: 15px;
font-weight: bold;
text-align: center;
flex-grow: 1;
text-decoration: none;
}
.RoleTable-card_content {
margin-top: 3px;
width: 100%;
}
div.RoleTable-content_main {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
gap: 8px;
padding: 8px;
border-radius: 3px;
box-sizing: border-box;
width: 100%;
}
div.RoleTable-content_main > p,
div.RoleTable-content_secondary > p {
display: contents;
}
div.RoleTable-content_main > br,
div.RoleTable-content_main > p > br,
div.RoleTable-content_secondary > br,
div.RoleTable-content_secondary > p > br {
display: none;
}
div.RoleTable-content_secondary {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 4px;
margin-top: 4px;
width: 100%;
box-sizing: border-box;
}
div.RoleTable-content_secondary > div.RoleTable-content_block:only-child {
grid-column: 1 / -1;
}
div.RoleTable-content_block {
border-radius: 3px;
padding: 6px;
}
.RoleTable-block_title {
font-weight: bold;
font-size: 12px;
margin-bottom: 2px;
text-align: center;
}
div.RoleTable-block_content {
padding: 0;
line-height: 1.3;
font-size: 13px;
}
div.RoleTable-block_content p {
margin: 0 !important;
padding: 0 !important;
}
div.cardRole {
display: flex;
flex-direction: column;
width: 120px;
max-width: 120px;
min-width: 120px;
height: 125px;
border-radius: 4px;
box-sizing: border-box;
overflow: hidden;
background-color: rgba(0, 0, 0, 0.2);
flex-shrink: 0;
margin: 0;
}
.card_headerRole {
height: 34px;
display: flex;
align-items: center;
justify-content: center;
padding: 2px 4px;
box-sizing: border-box;
}
.card_header_titleRole {
width: 100%;
}
p.RoleTable-card_title_small,
p.RoleTable-card_title_small a,
p.RoleTable-card_title_small a:visited {
margin: 0;
padding: 0;
color: white;
font-size: 11px;
font-weight: bold;
line-height: 1.1;
text-align: center;
word-wrap: break-word;
text-decoration: none;
}
div.card_imageRole {
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
background-color: transparent;
padding: 4px;
box-sizing: border-box;
height: calc(100% - 34px);
}
div.card_imageRole img {
max-width: 64px;
max-height: 64px;
width: auto;
height: auto;
object-fit: contain;
}
.fixed_imageRole {
padding: 2px;
}
@media screen and (max-width: 480px) {
div.RoleTable-content_main {
justify-content: center;
}
div.cardRole {
width: calc(50% - 8px);
max-width: 160px;
min-width: 100px;
}
div.RoleTable-content_secondary {
grid-template-columns: 1fr;
}
}