2025-10-25 08:59:09 +02:00
|
|
|
@use "sass:color";
|
|
|
|
|
|
2025-10-26 11:33:54 +01:00
|
|
|
@use "../global/config";
|
|
|
|
|
@use "../global/common";
|
|
|
|
|
@use "../global/typography";
|
|
|
|
|
@use "../elements/grouping";
|
|
|
|
|
|
2019-11-12 20:18:02 +01:00
|
|
|
// Tabular data
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
// table
|
|
|
|
|
// caption
|
|
|
|
|
// colgroup
|
|
|
|
|
// col
|
|
|
|
|
// tbody
|
|
|
|
|
// thead
|
|
|
|
|
// tfoot
|
|
|
|
|
// tr
|
|
|
|
|
// td
|
|
|
|
|
// th
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Table
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
table {
|
2025-10-26 11:33:54 +01:00
|
|
|
margin: config.$margin_double;
|
|
|
|
|
border: config.$border_basic;
|
2019-11-12 20:18:02 +01:00
|
|
|
border-collapse: collapse;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table_blank {
|
2025-10-26 11:33:54 +01:00
|
|
|
border: config.$width_border_basic solid transparent;
|
2019-11-12 20:18:02 +01:00
|
|
|
|
|
|
|
|
th, td {
|
2025-10-26 11:33:54 +01:00
|
|
|
border: config.$width_border_basic solid transparent;
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table_free {
|
2025-10-26 11:33:54 +01:00
|
|
|
border: config.$width_border_basic solid transparent;
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table_stripe {
|
|
|
|
|
td {
|
|
|
|
|
border-top: 0;
|
|
|
|
|
border-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tr:nth-child(even) td {
|
2025-10-26 11:33:54 +01:00
|
|
|
background-color: color.scale(config.$color_back_basic, $lightness: config.$color_diff_tiny);
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table_fix {
|
|
|
|
|
table-layout: fixed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table_file_simple {
|
|
|
|
|
@extend .width_full;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Caption
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
caption {
|
|
|
|
|
@extend p;
|
2025-10-26 11:33:54 +01:00
|
|
|
padding: config.$space_half 0;
|
|
|
|
|
border: config.$border_dotted;
|
2019-11-12 20:18:02 +01:00
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Columns
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
colgroup {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
col {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Table body
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
tbody {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Table head
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
thead {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Table foot
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
tfoot {
|
|
|
|
|
|
|
|
|
|
tr:first-child td {
|
2025-10-26 11:33:54 +01:00
|
|
|
border-top: config.$border_basic;
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Row
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
tr {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Cells
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
th, td {
|
|
|
|
|
@extend %basic;
|
2025-10-26 11:33:54 +01:00
|
|
|
padding: config.$space_half;
|
2026-02-14 10:14:38 +01:00
|
|
|
|
|
|
|
|
&.rigid {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
th {
|
2025-10-26 11:33:54 +01:00
|
|
|
border: config.$border_basic;
|
2019-11-12 20:18:02 +01:00
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
td {
|
2025-10-26 11:33:54 +01:00
|
|
|
border-right: config.$border_basic;
|
|
|
|
|
border-bottom: config.$border_basic;
|
2026-02-13 18:04:07 +01:00
|
|
|
|
|
|
|
|
&.unit {
|
|
|
|
|
text-align: right;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.ellipsis {
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
td:last-child {
|
|
|
|
|
border-right: 0;
|
|
|
|
|
|
|
|
|
|
td {
|
|
|
|
|
border-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cell_pre {
|
|
|
|
|
// border-right-width: $width_border_4;
|
2025-10-25 08:59:09 +02:00
|
|
|
// border-right-color: color.scale($color_back_basic, $lightness: $color_diff_basic);
|
2025-10-26 11:33:54 +01:00
|
|
|
background-color: color.scale(config.$color_back_basic, $lightness: config.$color_diff_tiny);
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|