Skip to content

Commit d45a16e

Browse files
committed
don't use flexbox for nav menu; style top of sibling list instead of bottom
1 parent dc5b27e commit d45a16e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/css/nav.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@
7272

7373
.nav-panel-menu {
7474
overflow-y: scroll;
75-
display: flex;
76-
flex-direction: column;
7775
height: var(--nav-panel-height);
7876
}
7977

@@ -99,9 +97,7 @@
9997
}
10098

10199
.nav-menu {
102-
flex-grow: 1;
103-
min-height: 0;
104-
width: 100%;
100+
min-height: 100%;
105101
padding: 0.5rem 0.75rem;
106102
line-height: var(--nav-line-height);
107103
position: relative;
@@ -124,8 +120,8 @@
124120
padding: 0;
125121
}
126122

127-
.nav-menu > .nav-list {
128-
margin-bottom: 0.5rem;
123+
.nav-menu > .nav-list + .nav-list {
124+
margin-top: 0.5rem;
129125
}
130126

131127
.nav-item {

0 commit comments

Comments
 (0)