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";
|
2026-02-21 14:08:30 +01:00
|
|
|
@use "../functions/color" as *;
|
2025-10-26 11:33:54 +01:00
|
|
|
|
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;
|
|
|
|
|
|
2026-02-21 14:08:30 +01:00
|
|
|
&.blank {
|
|
|
|
|
border: config.$width_border_basic solid transparent;
|
|
|
|
|
|
|
|
|
|
th, td {
|
|
|
|
|
border: config.$width_border_basic solid transparent;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-11-12 20:18:02 +01:00
|
|
|
|
2026-02-21 14:08:30 +01:00
|
|
|
&.free {
|
2025-10-26 11:33:54 +01:00
|
|
|
border: config.$width_border_basic solid transparent;
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
|
2026-02-21 14:08:30 +01:00
|
|
|
&.stripe {
|
|
|
|
|
td {
|
|
|
|
|
border-top: 0;
|
|
|
|
|
border-bottom: 0;
|
|
|
|
|
}
|
2019-11-12 20:18:02 +01:00
|
|
|
|
2026-02-21 14:08:30 +01:00
|
|
|
tr:nth-child(even) td {
|
|
|
|
|
background-color: color.scale(config.$color_back_basic, $lightness: config.$color_diff_tiny);
|
|
|
|
|
}
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
|
2026-02-21 14:08:30 +01:00
|
|
|
&.fix {
|
|
|
|
|
table-layout: fixed;
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
|
2026-02-21 14:08:30 +01:00
|
|
|
&.table_file_simple {
|
|
|
|
|
@extend .width_full;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.draggable tbody tr {
|
|
|
|
|
transition: opacity 0.2s;
|
2019-11-12 20:18:02 +01:00
|
|
|
|
2026-02-21 14:08:30 +01:00
|
|
|
&.dragging {
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.link {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border: 0;
|
|
|
|
|
table-layout: auto;
|
|
|
|
|
|
|
|
|
|
tbody {
|
|
|
|
|
border-bottom: config.$border_basic;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: config.$color_bright;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
td:nth-child(2) {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
th,
|
|
|
|
|
td {
|
|
|
|
|
border: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
thead th,
|
|
|
|
|
tbody tr:nth-child(1) td {
|
|
|
|
|
&:last-child {
|
|
|
|
|
@extend .rigid;
|
|
|
|
|
width: 1%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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 {
|
2026-02-14 19:07:11 +01:00
|
|
|
&.active {
|
|
|
|
|
color: config.$color_highlight_basic;
|
|
|
|
|
background-color: config.$color_action_basic;
|
|
|
|
|
}
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
|
}
|
2026-02-21 14:08:30 +01:00
|
|
|
|
|
|
|
|
&.icon {
|
|
|
|
|
width: 48px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
vertical-align: text-top;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.link {
|
|
|
|
|
padding-right: config.$space_basic;
|
|
|
|
|
padding-left: config.$space_basic;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: basic_color(foxtrot);
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
display: block;
|
|
|
|
|
color: config.$color_highlight_basic;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
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;
|
2026-02-25 17:54:02 +01:00
|
|
|
|
|
|
|
|
&.min {
|
|
|
|
|
width: 1%;
|
|
|
|
|
}
|
2019-11-12 20:18:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
2026-02-21 14:08:30 +01:00
|
|
|
|
|
|
|
|
&.text {
|
|
|
|
|
padding-right: config.$space_basic;
|
|
|
|
|
padding-left: config.$space_basic;
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
|
|
div {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shorten {
|
|
|
|
|
@extend %short;
|
|
|
|
|
max-height: 44px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
}
|