Шаблон:КарточкаSS14/styles.css
Материал из SpaceOnyx
Дополнительные действия
/* Основные стили карточки */
.RoleCard-card {
display: flex;
flex-direction: column;
float: right;
clear: right;
width: auto;
max-width: 400px;
min-width: 0;
box-sizing: border-box;
margin: 0 0 0.5em 1em;
padding: 2px;
border-radius: 6px;
overflow: hidden;
background: #1a1c22;
color: #e8e8ee;
font-size: 14px;
line-height: 1.5;
word-break: break-word;
overflow-wrap: anywhere;
}
/* Заголовок карточки */
.RoleCard-card_header {
border-radius: 4px;
text-align: center;
line-height: 1;
}
.RoleCard-card_header_title {
line-height: 1;
}
.RoleCard-card_header_title p {
margin: 0;
padding: 6px 10px;
color: #fff;
font-weight: bold;
font-size: 1em;
line-height: 1.2;
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
}
/* Область изображения */
.RoleCard-card_image {
display: flex;
align-items: center;
justify-content: center;
padding: 8px;
background: transparent;
line-height: 0;
}
.RoleCard-card_image img {
max-width: 100%;
height: auto;
display: block;
}
/* Содержимое карточки */
.RoleCard-card_content {
font-size: 0.9em;
line-height: 1.5;
word-break: break-word;
overflow-wrap: anywhere;
}
.RoleCard-card_content table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
/* Чередование цветов строк — контраст между полосками */
.RoleCard-card_content tr:nth-child(odd) {
background-color: #1e2128;
}
.RoleCard-card_content tr:nth-child(even) {
background-color: #2f3440;
}
/* Ячейки */
.RoleCard-card_content th,
.RoleCard-card_content td {
text-align: left;
padding: 5px 8px;
border: none;
vertical-align: top;
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
line-height: 1.4;
}
.RoleCard-card_content th {
font-weight: bold;
width: 40%;
color: #eee;
}
.RoleCard-card_content td {
width: 60%;
color: #ddd;
}
/* Мобильная адаптация */
@media screen and (max-width: 600px) {
.RoleCard-card {
min-width: 0;
max-width: 100%;
float: none;
width: 100%;
margin-left: 0;
}
}