Skip to content

Commit cabe886

Browse files
committed
Mobile hamburger style tweaks
1 parent 7d4f431 commit cabe886

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

client/editor_ui.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export class MainUI {
449449
.includes("hamburger")
450450
? [
451451
{
452-
icon: featherIcons.MoreVertical,
452+
icon: featherIcons.Menu,
453453
description: "Open Menu",
454454
class: "expander",
455455
callback: () => {

client/styles/top.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,8 @@
133133
}
134134

135135
#sb-top .sb-actions.hamburger {
136-
border-radius: 5px;
137-
border: 1px solid #444;
138136
width: 2.8rem;
137+
margin-top: 2px;
139138
background: color-mix(
140139
in srgb,
141140
var(--top-background-color) 90%,
@@ -146,7 +145,9 @@
146145
flex-direction: column;
147146
align-items: center;
148147
z-index: 10;
149-
transition: max-height 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
148+
transition:
149+
max-height 0.3s ease-in-out,
150+
box-shadow 0.3s ease-in-out;
150151

151152
/* Initial collapsed height */
152153
max-height: 2.2rem;
@@ -168,15 +169,16 @@
168169
margin: 8px 0;
169170
opacity: 0;
170171
transform: translateY(-10px);
171-
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
172+
transition:
173+
opacity 0.3s ease-in-out,
174+
transform 0.3s ease-in-out;
172175
}
173176
}
174177

175178
// CSS class for toggling the hamburger menu, so it can be toggled via JS
176179
&.open:hover {
177180
/* Expanded height limited to the viewport height minus some padding */
178181
max-height: calc(100vh - 24px);
179-
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
180182

181183
button {
182184
opacity: 1;

0 commit comments

Comments
 (0)