-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sticky headers for BCD table, on desktop
On desktop with sufficient browser height (determined by a media query on `(min-height: $screen-height-place-limit)`), make the headers of the BCD table sticky against the bottom of the sticky page header. Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
client/src/document/ingredients/browser-compatibility-table/index-desktop-sticky.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Sticky BCD table headers, on sufficiently tall screens | ||
@use "../../../ui/vars" as *; | ||
|
||
@media (min-height: $screen-height-place-limit) { | ||
.bc-table { | ||
background-color: var(--background-primary); | ||
position: relative; | ||
|
||
thead { | ||
--offset: var(--sticky-header-with-actions-height); | ||
--thead-z-index: calc(var(--z-index-main-header) - 100); | ||
|
||
position: sticky; | ||
top: var(--offset); | ||
z-index: var(--thead-z-index); | ||
} | ||
} | ||
|
||
.table-container { | ||
overflow: visible; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters