Шаблон:ТаблицаРолей/Тест/styles.css: различия между версиями
Материал из FIRE STATION WIKI
Дополнительные действия
Нет описания правки |
Нет описания правки |
||
| (не показано 6 промежуточных версий этого же участника) | |||
| Строка 1: | Строка 1: | ||
.RoleTable-card { | .RoleTable-card { | ||
display: | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0.6em 0; | |||
margin: 0. | |||
padding: 2px; | padding: 2px; | ||
border-radius: | border-radius: 5px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.RoleTable-card_header { | .RoleTable-card_header { | ||
border-radius: 3px; | border-radius: 3px; | ||
text-align: center; | text-align: center; | ||
} | } | ||
| Строка 23: | Строка 18: | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center; | align-items: center; | ||
padding: 4px 8px; | |||
padding: | |||
} | } | ||
.RoleTable-header_icon { | .RoleTable-header_icon { | ||
flex: | display: flex; | ||
align-items: center; | |||
justify-content: center; | |||
} | } | ||
.RoleTable-card_title { | h3.RoleTable-card_title, | ||
margin: | h3.RoleTable-card_title a, | ||
h3.RoleTable-card_title a:visited { | |||
margin: 0; | |||
color: white; | color: white; | ||
font-size: | font-size: 15px; | ||
font-weight: bold; | |||
text-align: center; | text-align: center; | ||
flex-grow: 1; | flex-grow: 1; | ||
text-decoration: none; | |||
} | } | ||
.RoleTable-card_content { | .RoleTable-card_content { | ||
margin-top: 3px; | margin-top: 3px; | ||
| Строка 50: | Строка 44: | ||
} | } | ||
div.RoleTable-content_main { | |||
.RoleTable-content_main { | display: flex; | ||
flex-direction: row; | |||
flex-wrap: wrap; | |||
justify-content: center; | |||
align-items: flex-start; | |||
gap: 8px; | |||
padding: 8px; | padding: 8px; | ||
border-radius: 3px; | border-radius: 3px; | ||
box-sizing: border-box; | |||
width: 100%; | 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 { | |||
.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: | padding: 6px; | ||
} | } | ||
.RoleTable-block_title { | .RoleTable-block_title { | ||
font-weight: bold; | 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; | overflow: hidden; | ||
background-color: rgba(0, 0, 0, 0.2); | |||
flex-shrink: 0; | |||
margin: 0; | |||
} | } | ||
. | .card_headerRole { | ||
padding: 2px | height: 34px; | ||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 2px 4px; | |||
box-sizing: border-box; | |||
} | } | ||
.RoleTable- | .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 { | |||
.card_imageRole { | flex-grow: 1; | ||
display: flex; | display: flex; | ||
align-items: center; | |||
justify-content: center; | justify-content: center; | ||
background-color: transparent; | |||
padding: | padding: 4px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
height: calc(100% - 34px); | |||
} | } | ||
.card_imageRole img { | div.card_imageRole img { | ||
width: | max-width: 64px; | ||
max-height: 64px; | |||
width: auto; | |||
object-fit: contain; | height: auto; | ||
object-fit: contain; | |||
} | } | ||
.fixed_imageRole { | |||
@media (max-width: | padding: 2px; | ||
. | } | ||
@media screen and (max-width: 480px) { | |||
div.RoleTable-content_main { | |||
justify-content: center; | |||
} | } | ||
div.cardRole { | |||
.RoleTable-content_secondary { | width: calc(50% - 8px); | ||
max-width: 160px; | |||
min-width: 100px; | |||
} | |||
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;
}
}