mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Make table header sticky
But it overlaps the .form-actions. how to make them sticky together.. todo: register the z-index in variables.scss
This commit is contained in:
@@ -49,9 +49,15 @@
|
||||
border-collapse: separate; // This is needed for the outer padding. Also should be helpful to give more flexibility of borders between rows.
|
||||
|
||||
// Additional horizontal padding to align with input contents
|
||||
thead th.with-input {
|
||||
padding-left: $padding-tbl-cell + $hpadding-txt;
|
||||
padding-right: $padding-tbl-cell + $hpadding-txt;
|
||||
thead {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1; // TODO: Cover .popout and .vertical-ellipsis-menu, but only when sticky
|
||||
|
||||
th.with-input {
|
||||
padding-left: $padding-tbl-cell + $hpadding-txt;
|
||||
padding-right: $padding-tbl-cell + $hpadding-txt;
|
||||
}
|
||||
}
|
||||
|
||||
// Row hover
|
||||
|
||||
Reference in New Issue
Block a user