Spaces:
Running
Running
File size: 3,551 Bytes
6afedde 076c703 6afedde | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | .content-grid main table {
border-collapse: collapse;
table-layout: auto;
margin: 0;
background-color: var(--surface-bg);
}
.content-grid main th,
.content-grid main td {
border-bottom: 1px solid var(--border-color);
padding: 6px 8px;
font-size: 15px;
white-space: nowrap;
/* prevent squashing; allow horizontal scroll instead */
word-break: auto-phrase;
/* white-space: break-spaces; */
vertical-align: top;
}
.content-grid main thead th {
border-bottom: 1px solid var(--border-color);
}
.content-grid main thead th {
border-bottom: 1px solid var(--border-color);
}
.content-grid main thead th {
background: var(--table-header-bg);
padding-top: 10px;
padding-bottom: 10px;
font-weight: 600;
}
.content-grid main hr {
border: none;
border-bottom: 1px solid var(--border-color);
margin: var(--spacing-5) 0;
}
/* Scroll wrapper: keeps table 100% width but enables horizontal scroll when needed */
.content-grid main .table-scroll {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border: 1px solid var(--border-color);
border-radius: var(--table-border-radius);
background: var(--surface-bg);
margin: 0 0 var(--block-spacing-y);
}
.content-grid main .table-scroll>table {
width: fit-content;
min-width: 100%;
max-width: none;
}
/* Vertical dividers between columns (no outer right border) */
.content-grid main .table-scroll>table th,
.content-grid main .table-scroll>table td {
border-right: 1px solid var(--border-color);
}
.content-grid main .table-scroll>table th:last-child,
.content-grid main .table-scroll>table td:last-child {
border-right: none;
}
.content-grid main .table-scroll>table thead th:first-child {
border-top-left-radius: var(--table-border-radius);
}
.content-grid main .table-scroll>table thead th:last-child {
border-top-right-radius: var(--table-border-radius);
}
.content-grid main .table-scroll>table tbody tr:last-child td:first-child {
border-bottom-left-radius: var(--table-border-radius);
}
.content-grid main .table-scroll>table tbody tr:last-child td:last-child {
border-bottom-right-radius: var(--table-border-radius);
}
/* Zebra striping for odd rows */
.content-grid main .table-scroll>table tbody tr:nth-child(odd) td {
background: var(--table-row-odd-bg);
}
/* Remove bottom border on last row */
.content-grid main .table-scroll>table tbody tr:last-child td {
border-bottom: none;
}
/* Accordion context: remove outer borders/radius and fit content flush */
.accordion .accordion__content .table-scroll {
border: none;
border-radius: 0;
margin: 0;
margin-bottom: 0 !important;
}
/* Ensure no bottom margin even if table isn't wrapped (fallback) */
.accordion .accordion__content table {
margin: 0 !important;
}
.accordion .accordion__content .table-scroll>table thead th:first-child,
.accordion .accordion__content .table-scroll>table thead th:last-child,
.accordion .accordion__content .table-scroll>table tbody tr:last-child td:first-child,
.accordion .accordion__content .table-scroll>table tbody tr:last-child td:last-child {
border-radius: 0;
}
/* Fallback for browsers without fit-content support */
@supports not (width: fit-content) {
.content-grid main .table-scroll>table {
width: max-content;
min-width: 100%;
}
}
/* Small table variant for compact display */
.content-grid main .small-table table {
font-size: 0.75em;
}
.content-grid main .small-table th,
.content-grid main .small-table td {
font-size: inherit;
white-space: normal;
padding: 4px 6px;
} |