add sticky thead to index, langues, and mots-clés tables

This commit is contained in:
Pontoporeia
2026-05-19 21:00:40 +02:00
parent bcf3140aa2
commit c6199525f9
10 changed files with 155 additions and 21 deletions

View File

@@ -74,16 +74,6 @@
padding: 0 0 var(--space-2xl);
}
#admin-table-wrap table thead {
position: sticky;
top: 0;
z-index: 5;
}
#admin-table-wrap table thead th {
background: var(--bg-primary);
}
.admin-body main > table tbody tr:nth-child(even) {
background: var(--bg-secondary);
}

View File

@@ -26,3 +26,17 @@ td {
border-bottom: 1px solid var(--border-primary);
vertical-align: top;
}
/* Sticky header — border-collapse:collapse blocks position:sticky in Chrome.
--sticky-top is set by JS when a bulk actions bar appears above the table. */
.admin-table--sticky {
border-collapse: separate;
border-spacing: 0;
}
.admin-table--sticky thead th {
position: sticky;
top: var(--sticky-top, 0px);
z-index: 5;
background: var(--bg-primary);
}