mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
sticky search
This commit is contained in:
6 files changed
+86
-41
No files matched your search
@@ -0,0 +1,32 @@
|
||||
.controls {
|
||||
position: sticky;
|
||||
z-index: 1;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
|
||||
margin-block: calc(-1 * var(--space-4));
|
||||
padding-block: var(--space-4);
|
||||
|
||||
/* Bleeds across the page gutters so results don't peek out beside it */
|
||||
&[data-surface="page"] {
|
||||
top: var(--navbar-big-height, 0);
|
||||
|
||||
margin-inline: calc(-1 * var(--page-padding));
|
||||
padding-inline: var(--page-padding);
|
||||
|
||||
background-color: var(--gray-1);
|
||||
}
|
||||
|
||||
/* Cancels the overlay's padding, which sticky offsets are measured inside of */
|
||||
&[data-surface="dialog"] {
|
||||
top: calc(-1 * var(--space-4));
|
||||
|
||||
background-color: var(--gray-2);
|
||||
}
|
||||
|
||||
.filters {
|
||||
overflow-x: auto;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user