Skip to content

Commit 64d5e07

Browse files
committed
fix hamburger open/close in editor on mobile
1 parent da4be51 commit 64d5e07

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

editor/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#site-nav { flex-shrink: 0; position: static !important; }
1313
.layout { display: flex; flex: 1; overflow: hidden; min-height: 0; }
1414
.sidebar-outer { width: 220px; min-width: 220px; border-right: 1px solid #e0e0e0; flex-shrink: 0; overflow-y: auto; }
15+
@media (max-width: 768px) {
16+
.sidebar-outer { position: fixed; top: 60px; left: -240px; height: calc(100vh - 60px); background: #fff; z-index: 200; transition: left 0.25s ease; box-shadow: 2px 0 12px rgba(0,0,0,0.08); }
17+
.sidebar-outer.open { left: 0; }
18+
}
1519
#site-sidebar { padding: 1.5rem 1.5rem 1rem; display: flex; flex-direction: column; }
1620
#site-sidebar a { font-size: 14px; color: #555; padding: 0.4rem 0; display: block; text-decoration: none; }
1721
#site-sidebar a:hover { color: #111; }

0 commit comments

Comments
 (0)