Skip to content

Commit 12a34bc

Browse files
committed
fix: Fix collapsed sidebar
Fix buttons Fix menu (position, overflow) Resolves #261
1 parent 33da259 commit 12a34bc

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

src/css/nav.css

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ html.dark-theme button.browse-version:hover {
355355
@media screen and (min-width: 1024px) {
356356
body.nav-sm .nav-container {
357357
width: 60px;
358+
z-index: 800;
358359
}
359360

360361
body.nav-sm .nav-collapse,
@@ -373,10 +374,21 @@ html.dark-theme button.browse-version:hover {
373374

374375
body.nav-sm .nav-menu .search {
375376
margin-bottom: 0;
377+
margin-top: 0;
378+
}
379+
380+
body.nav-sm button.browse-version {
381+
position: relative;
382+
top: auto;
383+
right: auto;
384+
margin: 0;
385+
margin-left: -5px;
386+
margin-bottom: 8px;
376387
}
377388

378389
body.nav-sm .nav-panel-menu .context {
379-
height: 50px;
390+
margin: 0;
391+
position: relative;
380392
}
381393

382394
body.nav-sm .nav-panel-menu .context .title,
@@ -386,8 +398,13 @@ html.dark-theme button.browse-version:hover {
386398
display: none;
387399
}
388400

401+
body.nav-sm .header .navbar {
402+
z-index: 900;
403+
}
404+
389405
html.is-clipped--nav body.nav-sm .nav-menu > .nav-list {
390406
display: block;
407+
padding-left: 10px;
391408
}
392409
body.nav-sm .nav-menu > .nav-list {
393410
display: none;
@@ -396,9 +413,11 @@ html.dark-theme button.browse-version:hover {
396413
left: 61px;
397414
padding: 0.5rem 1rem;
398415
width: 300px;
399-
bottom: -40px;
416+
bottom: -36px;
400417
background: var(--body-background-color);
401418
border-right: 1px solid var(--nav-panel-divider-color);
419+
z-index: 800;
420+
overflow: auto;
402421
}
403422

404423
body.nav-sm .toggle-sm button.nav-toggle {

0 commit comments

Comments
 (0)