Skip to content

Commit

Permalink
right hamburger
Browse files Browse the repository at this point in the history
  • Loading branch information
Eidamiino committed Feb 12, 2025
1 parent 496b976 commit 8c1f0eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion poc/public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ body {
.sticky-hamburger {
position: fixed;
top: 50%;
left: 0;
transform: translateY(-50%);
background: rgba(255, 255, 255, 0.9);
border-radius: 0.25rem;
Expand All @@ -60,6 +59,13 @@ body {
display: none;
}

.btn-left{
left: 0;
}
.btn-right {
right: 0;
}

.header-left {
display: flex;
align-items: center;
Expand Down
6 changes: 5 additions & 1 deletion poc/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@
</div>
</div>

<button class="hamburger-btn sticky-hamburger" on:click={toggleSidebar}>
<button class="hamburger-btn sticky-hamburger btn-left" on:click={toggleSidebar}>
<i class="fas fa-bars"></i>
</button>

<button class="hamburger-btn sticky-hamburger btn-right" on:click={toggleSidebar}>
<i class="fas fa-bars"></i>
</button>

Expand Down

0 comments on commit 8c1f0eb

Please sign in to comment.