⚡️ Replace hope-ui based IconHamburgerMenu with a custom one
This commit is contained in:
@@ -1,13 +1,10 @@
|
|||||||
import { createIcon } from "@hope-ui/solid";
|
import { VoidComponent } from "solid-js";
|
||||||
|
|
||||||
|
// Inspired by https://github.com/hope-ui/hope-ui/blob/main/apps/docs/src/icons/IconHamburgerMenu.tsx
|
||||||
// From https://github.com/hope-ui/hope-ui/blob/main/apps/docs/src/icons/IconHamburgerMenu.tsx
|
export const IconHamburgerMenu: VoidComponent<{}> = () => {
|
||||||
|
return (
|
||||||
export const IconHamburgerMenu = createIcon({
|
<svg class="iconHamburgerMenu" viewBox="0 0 15 15">
|
||||||
viewBox: "0 0 15 15",
|
<path d="M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386
|
||||||
path: () => (
|
|
||||||
<path
|
|
||||||
d="M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386
|
|
||||||
13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5
|
13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5
|
||||||
8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761
|
8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761
|
||||||
13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z"
|
13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z"
|
||||||
@@ -15,5 +12,5 @@ export const IconHamburgerMenu = createIcon({
|
|||||||
fill-rule="evenodd"
|
fill-rule="evenodd"
|
||||||
clip-rule="evenodd"
|
clip-rule="evenodd"
|
||||||
/>
|
/>
|
||||||
),
|
</svg>);
|
||||||
});
|
}
|
||||||
|
@@ -21,18 +21,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu {
|
.menu {
|
||||||
|
aspect-ratio: 0.75;
|
||||||
height: $header-element-height;
|
height: $header-element-height;
|
||||||
aspect-ratio: 1;
|
|
||||||
margin-right: calc(30/1920*100%);
|
margin-right: calc(30/1920*100%);
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
border: $component-border;
|
||||||
|
border-radius: $component-border-radius;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
aspect-ratio: 1;
|
|
||||||
|
|
||||||
background-color: var(--idfm-black);
|
border: 0;
|
||||||
border: $component-border;
|
color: var(--idfm-white);
|
||||||
border-radius: $component-border-radius;
|
background-color: transparent;
|
||||||
|
|
||||||
|
.iconHamburgerMenu {
|
||||||
|
width: 75%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user