Нет описания правки |
Нет описания правки |
||
Строка 1: | Строка 1: | ||
/* Основные стили карточки */ | /* Основные стили карточки */ | ||
.card { | .RoleTable-card { | ||
display: inline-flex; | display: inline-flex; | ||
flex-direction: column; | flex-direction: column; | ||
Строка 14: | Строка 14: | ||
/* Заголовок карточки */ | /* Заголовок карточки */ | ||
.card_header { | .RoleTable-card_header { | ||
background-color: #465298; | background-color: #465298; | ||
border-radius: 3px; | border-radius: 3px; | ||
Строка 21: | Строка 21: | ||
} | } | ||
.card_header_title { | .RoleTable-card_header_title { | ||
display: flex; | display: flex; | ||
justify-content: space-between; | justify-content: space-between; | ||
Строка 30: | Строка 30: | ||
} | } | ||
.header_icon { | .RoleTable-header_icon { | ||
flex: 0 0 32px; | flex: 0 0 32px; | ||
} | } | ||
.card_title { | .RoleTable-card_title { | ||
margin: 6px 0; | margin: 6px 0; | ||
color: white; | color: white; | ||
Строка 43: | Строка 43: | ||
/* Основное содержимое */ | /* Основное содержимое */ | ||
.card_content { | .RoleTable-card_content { | ||
margin-top: 3px; | margin-top: 3px; | ||
} | } | ||
.content_main { | .RoleTable-content_main { | ||
padding: 3px; | padding: 3px; | ||
display: flex; | display: flex; | ||
Строка 59: | Строка 59: | ||
/* Вторичное содержимое */ | /* Вторичное содержимое */ | ||
.content_secondary { | .RoleTable-content_secondary { | ||
display: flex; | display: flex; | ||
justify-content: space-between; | justify-content: space-between; | ||
Строка 67: | Строка 67: | ||
} | } | ||
.content_block { | .RoleTable-content_block { | ||
flex: 1 1 calc(50% - 20px); | flex: 1 1 calc(50% - 20px); | ||
min-width: 275px; | min-width: 275px; | ||
Строка 77: | Строка 77: | ||
} | } | ||
.block_title { | .RoleTable-block_title { | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
.block_content { | .RoleTable-block_content { | ||
padding: 2px 0; | padding: 2px 0; | ||
} | } | ||
Строка 87: | Строка 87: | ||
/* Адаптация для мобильных */ | /* Адаптация для мобильных */ | ||
@media (max-width: 640px) { | @media (max-width: 640px) { | ||
.content_block { | .RoleTable-content_block { | ||
flex: 1 1 100%; | flex: 1 1 100%; | ||
min-width: 100%; | min-width: 100%; | ||
} | } | ||
} | } |
Версия от 22:50, 29 июля 2025
/* Основные стили карточки */
.RoleTable-card {
display: inline-flex;
flex-direction: column;
max-width: 100%;
min-width: 300px;
width: 100%;
margin: 0.5em 0 5px 0;
border: 1px solid #465298;
padding: 2px;
border-radius: 6px;
box-sizing: border-box;
}
/* Заголовок карточки */
.RoleTable-card_header {
background-color: #465298;
border-radius: 3px;
text-align: center;
cursor: pointer;
}
.RoleTable-card_header_title {
display: flex;
justify-content: space-between;
align-items: center;
text-align: left;
margin: 0 6px;
padding: 3px 0;
}
.RoleTable-header_icon {
flex: 0 0 32px;
}
.RoleTable-card_title {
margin: 6px 0;
color: white;
font-size: 16px;
text-align: center;
flex-grow: 1;
}
/* Основное содержимое */
.RoleTable-card_content {
margin-top: 3px;
}
.RoleTable-content_main {
padding: 3px;
display: flex;
justify-content: space-evenly;
gap: 5px;
flex-wrap: wrap;
border-radius: 3px;
background-color: rgba(70, 82, 152, 0.46);
border: 1px solid rgba(70, 82, 152, 0.56);
}
/* Вторичное содержимое */
.RoleTable-content_secondary {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 3px;
margin-top: 3px;
}
.RoleTable-content_block {
flex: 1 1 calc(50% - 20px);
min-width: 275px;
border: 1px solid rgba(70, 82, 152, 0.56);
border-radius: 3px;
padding: 0 5px;
background-color: rgba(70, 82, 152, 0.46);
margin-bottom: 3px;
}
.RoleTable-block_title {
font-weight: bold;
}
.RoleTable-block_content {
padding: 2px 0;
}
/* Адаптация для мобильных */
@media (max-width: 640px) {
.RoleTable-content_block {
flex: 1 1 100%;
min-width: 100%;
}
}