Шаблон:таблицаролей/тест/styles.css
| Строка 1: | Строка 1: | ||
.RoleTable-card { | div.RoleTable-card { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Строка 9: | Строка 9: | ||
} | } | ||
.RoleTable-card_header { | div.RoleTable-card_header { | ||
border-radius: 3px; | border-radius: 3px; | ||
text-align: center; | text-align: center; | ||
} | } | ||
.RoleTable-card_header_title { | div.RoleTable-card_header_title { | ||
display: flex; | display: flex; | ||
justify-content: space-between; | justify-content: space-between; | ||
| Строка 21: | Строка 21: | ||
} | } | ||
.RoleTable-header_icon { | div.RoleTable-header_icon { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Строка 27: | Строка 27: | ||
} | } | ||
.RoleTable-card_title { | h3.RoleTable-card_title, | ||
margin: 0 | h3.RoleTable-card_title a, | ||
h3.RoleTable-card_title a:visited { | |||
margin: 0; | |||
color: white; | color: white; | ||
font-size: 15px; | font-size: 15px; | ||
| Строка 34: | Строка 36: | ||
text-align: center; | text-align: center; | ||
flex-grow: 1; | flex-grow: 1; | ||
text-decoration: none; | |||
} | } | ||
div.RoleTable-card_content { | |||
.RoleTable-card_content { | |||
margin-top: 3px; | margin-top: 3px; | ||
width: 100%; | width: 100%; | ||
} | } | ||
.RoleTable-content_main { | div.RoleTable-content_main { | ||
display: flex | display: flex; | ||
flex-direction: row | flex-direction: row; | ||
flex-wrap: wrap | flex-wrap: wrap; | ||
justify-content: center | justify-content: center; | ||
align-items: flex-start | align-items: flex-start; | ||
gap: 8px | gap: 8px; | ||
padding: 8px; | padding: 8px; | ||
border-radius: 3px; | border-radius: 3px; | ||
| Строка 58: | Строка 57: | ||
} | } | ||
.RoleTable-content_main > p, | div.RoleTable-content_main > p, | ||
.RoleTable-content_secondary > p { | div.RoleTable-content_secondary > p { | ||
display: contents | display: contents; | ||
} | } | ||
.RoleTable-content_main > br, | |||
.RoleTable-content_main > p > br, | div.RoleTable-content_main > br, | ||
.RoleTable-content_secondary > br, | div.RoleTable-content_main > p > br, | ||
.RoleTable-content_secondary > p > br { | div.RoleTable-content_secondary > br, | ||
display: none | div.RoleTable-content_secondary > p > br { | ||
display: none; | |||
} | } | ||
.RoleTable-content_secondary { | div.RoleTable-content_secondary { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
| Строка 78: | Строка 78: | ||
} | } | ||
.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; | ||
} | } | ||
.RoleTable-block_title { | div.RoleTable-block_title { | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 12px; | font-size: 12px; | ||
| Строка 94: | Строка 94: | ||
} | } | ||
.RoleTable-block_content { | div.RoleTable-block_content { | ||
padding: 0; | padding: 0; | ||
line-height: 1.3; | line-height: 1.3; | ||
| Строка 100: | Строка 100: | ||
} | } | ||
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 | 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 | margin: 0; | ||
} | } | ||
.card_headerRole { | div.card_headerRole { | ||
height: 34px; | height: 34px; | ||
display: flex; | display: flex; | ||
| Строка 125: | Строка 124: | ||
} | } | ||
.card_header_titleRole { | div.card_header_titleRole { | ||
width: 100%; | width: 100%; | ||
} | } | ||
. | p.RoleTable-card_title_small, | ||
margin: 0 | p.RoleTable-card_title_small a, | ||
padding: 0 | 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; | ||
| Строка 137: | Строка 139: | ||
text-align: center; | text-align: center; | ||
word-wrap: break-word; | word-wrap: break-word; | ||
text-decoration: none; | |||
} | } | ||
div.card_imageRole { | |||
.card_imageRole { | |||
flex-grow: 1; | flex-grow: 1; | ||
display: flex; | display: flex; | ||
| Строка 151: | Строка 150: | ||
padding: 4px; | padding: 4px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
height: calc(100% - 34px) | 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 | width: auto; | ||
height: auto | height: auto; | ||
object-fit: contain; | object-fit: contain; | ||
} | } | ||
.fixed_imageRole { | div.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: 160px | max-width: 160px; | ||
min-width: 100px | min-width: 100px; | ||
} | } | ||
.RoleTable-content_secondary { | div.RoleTable-content_secondary { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
} | } | ||