2021-03-17 16:10:53 +02:00
|
|
|
/**
|
|
|
|
* Table styling
|
2018-12-20 15:30:52 +02:00
|
|
|
*/
|
2019-02-12 23:40:47 +02:00
|
|
|
|
2025-05-15 11:20:36 +03:00
|
|
|
@use "./variables" as variables;
|
|
|
|
|
2022-07-11 08:53:31 +03:00
|
|
|
$table-border-color: #80808080;
|
|
|
|
$table-bg: transparent;
|
2022-07-11 13:33:46 +03:00
|
|
|
$table-bg-odd: #80808012;
|
|
|
|
$table-bg-hover: #8080801a;
|
2022-07-11 08:53:31 +03:00
|
|
|
|
2018-12-20 15:30:52 +02:00
|
|
|
table {
|
2022-07-11 08:53:31 +03:00
|
|
|
background-color: $table-bg;
|
2018-12-20 15:30:52 +02:00
|
|
|
width: 100%;
|
2023-06-28 19:00:00 +03:00
|
|
|
margin-block-end: 15px;
|
2018-12-20 15:30:52 +02:00
|
|
|
font-size: 0.9em;
|
|
|
|
border-spacing: 0;
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 15px;
|
|
|
|
line-height: 1.5;
|
|
|
|
vertical-align: top;
|
2022-07-11 08:53:31 +03:00
|
|
|
border: 1px solid $table-border-color;
|
2018-12-20 15:30:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
th {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
thead th,
|
|
|
|
tfoot th {
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
caption + thead,
|
|
|
|
colgroup + thead,
|
|
|
|
thead:first-child {
|
|
|
|
|
|
|
|
tr {
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
2023-06-28 19:00:00 +03:00
|
|
|
border-block-start: 1px solid $table-border-color;
|
2018-12-20 15:30:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody {
|
|
|
|
|
|
|
|
> tr:nth-child(odd) > td,
|
|
|
|
> tr:nth-child(odd) > th {
|
2022-07-11 08:53:31 +03:00
|
|
|
background-color: $table-bg-odd;
|
2021-03-17 16:10:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tr:hover > td,
|
|
|
|
tr:hover > th {
|
2022-07-11 08:53:31 +03:00
|
|
|
background-color: $table-bg-hover;
|
2018-12-20 15:30:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody + tbody {
|
2023-06-28 19:00:00 +03:00
|
|
|
border-block-start: 2px solid $table-border-color;
|
2018-12-20 15:30:52 +02:00
|
|
|
}
|
|
|
|
|
2025-05-15 11:20:36 +03:00
|
|
|
@media (max-width: variables.$screen-sm - variables.$screen-diff) {
|
2018-12-20 15:30:52 +02:00
|
|
|
|
|
|
|
table {
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 7px;
|
|
|
|
line-height: 1.3;
|
|
|
|
}
|
|
|
|
|
|
|
|
th {
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|