[IMP] add sticky header class for long tables

closes odoo/documentation#16384

Signed-off-by: Niki Brown (nikbr) <nikbr@odoo.com>
This commit is contained in:
Niki Brown
2026-02-12 10:02:48 -08:00
parent acd96fe3fc
commit cc0413e0c5

View File

@@ -954,6 +954,24 @@ span.viewcode-link {
margin-left: .3rem;
}
// Table with sticky header (for long tables)
// Offset top by header height so table header sticks below the site header
.table-sticky-header {
// override the display: block in the mobile override
display: table!important;
border-collapse: separate;
border-spacing: 0;
thead th {
position: sticky;
z-index: 2;
background-color: $white;
top: $o-headers-mobile-height;
@include media-breakpoint-up(lg) {
top: $o-headers-height;
}
}
}
//------------------------------------------------------------------------------
// Alerts
//------------------------------------------------------------------------------