Remove unused parameters from the hamburger menu

This commit is contained in:
Kuba Orlik 2024-05-11 17:13:39 +02:00
parent 4491f53f32
commit 417f4f03a6

View File

@ -4,21 +4,15 @@ import { TempstreamJSX } from "tempstream";
type Styles = {
menu_open: string;
menu_closed: string;
body_when_open: string;
body_when_closed: string;
panel_open: string;
panel_closed: string;
};
const default_styles: Styles = {
menu_open: `opacity: 1; visibility: visible; pointer-events: all; transform: scale(1); transition: opacity 200ms, transform 200ms, visibility 0ms 0ms;`,
menu_closed: "",
body_when_open: "overflow: hidden;",
body_when_closed: "",
panel_open:
"opacity: 1; transform: translateX(0); visibility: visible; pointer-events: all; transition: opacity 200ms, transform 200ms, visibility 0ms 0ms;",
panel_closed: "",
};
export function fullscreenMenu({