(Обновление оформления таблицы) |
(Экспорт стилей) |
||
Строка 1: | Строка 1: | ||
/*** | /*** Чередование строк в таблице ***/ | ||
. | .skin-citizen-dark .alternation tr:nth-child(even) { | ||
background-color: #ffffff1a; | |||
} | } | ||
. | .skin-citizen-light .alternation tr:nth-child(even) { | ||
background-color: #0000001a; | |||
} | } | ||
. | /*** Инфобоксы ***/ | ||
/* Мобильная адаптация */ | |||
@media(max-width: 700px) { | |||
div.infobox { | |||
float: none; | |||
margin: 16px; | |||
width: auto; | |||
} | |||
} | } | ||
. | /* Основные селекторы */ | ||
.infobox { | |||
display: flex; | |||
flex-direction: column; | |||
flex-wrap: nowrap; | |||
float: right; | |||
margin-left: 16px; | |||
width: 318px; | |||
background: #000; | |||
} | } | ||
.inf-title { | |||
. | padding: 2px 4px; | ||
background-color: var(--color-surface-1); | |||
text-align: center; | |||
font-size: 1.8em; | |||
} | } | ||
div.infobox > p { | |||
. | text-align: center; /* Костыль для позиционирования изображений внутри инфобокса*/ | ||
} | } | ||
.inf-row { | |||
display: flex; | |||
flex-direction: row; | |||
flex-wrap: nowrap; | |||
align-items: center; | |||
padding: 6px 6px; | |||
border-bottom: solid black 1px; | |||
background-color: var(--color-surface-2); | |||
} | } | ||
.inf-row:last-child { | |||
. | border-bottom: none; | ||
} | } | ||
.inf-row:hover { | |||
. | background-color: var(--color-surface-2--hover); | ||
background-color: var(--color-surface- | |||
} | } | ||
.inf-label { | |||
flex: 1 2 35%; | |||
text-align: left; | |||
font-weight: bold; | |||
} | } | ||
.inf-data { | |||
flex: 3 1 65%; | |||
padding-left: 6px; | |||
text-align: left; | |||
} | } | ||
.inf-header { | |||
padding: 2px 4px; | |||
text-align: center; | |||
font-size: 1.2em; | |||
font-weight: bold; | |||
background-color: var(--color-surface-4); | |||
} | } |
Версия от 21:32, 1 апреля 2024
/*** Чередование строк в таблице ***/
.skin-citizen-dark .alternation tr:nth-child(even) {
background-color: #ffffff1a;
}
.skin-citizen-light .alternation tr:nth-child(even) {
background-color: #0000001a;
}
/*** Инфобоксы ***/
/* Мобильная адаптация */
@media(max-width: 700px) {
div.infobox {
float: none;
margin: 16px;
width: auto;
}
}
/* Основные селекторы */
.infobox {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
float: right;
margin-left: 16px;
width: 318px;
background: #000;
}
.inf-title {
padding: 2px 4px;
background-color: var(--color-surface-1);
text-align: center;
font-size: 1.8em;
}
div.infobox > p {
text-align: center; /* Костыль для позиционирования изображений внутри инфобокса*/
}
.inf-row {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
padding: 6px 6px;
border-bottom: solid black 1px;
background-color: var(--color-surface-2);
}
.inf-row:last-child {
border-bottom: none;
}
.inf-row:hover {
background-color: var(--color-surface-2--hover);
}
.inf-label {
flex: 1 2 35%;
text-align: left;
font-weight: bold;
}
.inf-data {
flex: 3 1 65%;
padding-left: 6px;
text-align: left;
}
.inf-header {
padding: 2px 4px;
text-align: center;
font-size: 1.2em;
font-weight: bold;
background-color: var(--color-surface-4);
}