mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
add sticky thead to index, langues, and mots-clés tables
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user