mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
home page
This commit is contained in:
22 files changed
+190
-66
No files matched your search
@@ -206,9 +206,18 @@ const groups = toolGroups.map((group) => {
|
||||
const triggers = navbar.querySelectorAll<HTMLElement>(".trigger");
|
||||
const panels = navbar.querySelectorAll<HTMLElement>(".panel");
|
||||
const icons = navbar.querySelectorAll<HTMLElement>(".bar .icon");
|
||||
const bar = navbar.querySelector<HTMLElement>(".bar")!;
|
||||
|
||||
let hoverTimeout: number | undefined;
|
||||
|
||||
// Lets sticky page elements sit below the bar instead of behind it
|
||||
new ResizeObserver(() => {
|
||||
document.documentElement.style.setProperty(
|
||||
"--navbar-fine-height",
|
||||
`${bar.offsetHeight}px`,
|
||||
);
|
||||
}).observe(bar);
|
||||
|
||||
function resize(height: number) {
|
||||
const duration = Math.min(MAX_DURATION, Math.max(MIN_DURATION, height / 2));
|
||||
|
||||
|
||||
Reference in new issue
Block a user