Шаблон:таблицаролей/тест/styles.css
| Строка 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 { | .RoleTable-card_title { | ||
margin: | margin: 0 !important; | ||
color: white; | color :white; | ||
font-size: | font-size: 14px; | ||
font-weight: bold; | |||
text-align: center; | text-align: center; | ||
flex-grow: 1; | flex-grow: 1; | ||
| Строка 41: | Строка 37: | ||
.RoleTable-card_title a { | .RoleTable-card_title a { | ||
color: white !important; | |||
} | } | ||
.RoleTable-card_content { | .RoleTable-card_content { | ||
margin-top: 3px; | margin-top: 3px; | ||
| Строка 52: | Строка 47: | ||
.RoleTable-content_main { | .RoleTable-content_main { | ||
padding: 8px; | padding: 8px; | ||
display: | display: flex; | ||
flex-wrap: wrap; | |||
gap: 8px; | justify-content: center; | ||
gap: 8px; | |||
border-radius: 3px; | border-radius: 3px; | ||
box-sizing: border-box; | |||
width: 100%; | width: 100%; | ||
background-color: rgba(0, 0, 0, 0.15); | |||
} | } | ||
.RoleTable-content_secondary { | .RoleTable-content_secondary { | ||
display: grid; | display: grid; | ||
| Строка 89: | Строка 72: | ||
.RoleTable-content_block { | .RoleTable-content_block { | ||
border-radius: 3px; | border-radius: 3px; | ||
padding: | padding: 6px; | ||
font-size: 12px; | |||
background-color: rgba(0, 0, 0, 0.1); | |||
} | } | ||
.RoleTable-block_title { | .RoleTable-block_title { | ||
font-weight: bold; | 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: flex; | |||
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; | overflow: hidden; | ||
background-color: rgba(0, 0, 0, 0.2); | |||
flex-shrink: 0; | |||
} | |||
.card_headerRole { | |||
height: 34px; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 2px 4px; | |||
box-sizing: border-box; | |||
} | } | ||
. | .card_header_titleRole p { | ||
padding: | 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 { | .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; | ||
} | } | ||
.card_imageRole img { | .card_imageRole img { | ||
width: | max-width: 64px !important; | ||
height: | max-height: 64px !important; | ||
object-fit: contain; | |||
object-fit: contain; | |||
} | } | ||
.fixed_imageRole { | |||
padding: 2px !important; | |||
} | } | ||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
.RoleTable-content_main { | .RoleTable-content_main { | ||
justify-content: center; | |||
} | } | ||
.cardRole { | |||
width: calc(50% - 8px) !important; | |||
max-width: 100% !important; | |||
min-width: 100px !important; | |||
} | |||
.RoleTable-content_secondary { | .RoleTable-content_secondary { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
} | } | ||