Skip to content

Commit 7739d9c

Browse files
committed
[design] improve menu spacing
1 parent 9cf3de9 commit 7739d9c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

‎src/css/menu.css‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
max-height:100%;
2929
display: grid;
3030
grid-template-rows: auto 1fr;
31-
grid-template-columns:1frauto;
31+
grid-template-columns:1frcalc(var(--menu-space) *5);
3232
justify-items: stretch;
3333
align-items: stretch;
3434
overflow-y: auto;
@@ -61,7 +61,7 @@
6161
padding-top:0;
6262
padding-bottom:0;
6363
border-radius:0;
64-
height:3.25em;
64+
height:calc(var(--menu-space) *5);
6565
width:100%;
6666
line-height:1;
6767
}
@@ -76,8 +76,8 @@
7676
margin:0;
7777
padding:0;
7878
border-radius:0;
79-
height:3.25em;
80-
width:3.25em;
79+
height:calc(var(--menu-space) *5);
80+
width:calc(var(--menu-space) *5);
8181
line-height:1;
8282
}
8383

@@ -125,7 +125,7 @@
125125
}
126126

127127
.menu-item-header{
128-
margin-bottom:calc(var(--menu-space) *1);
128+
margin-bottom:var(--menu-space);
129129
}
130130

131131
.menu-item-header-text{
@@ -192,7 +192,7 @@
192192
}
193193

194194
.menu-content-item{
195-
padding:calc(var(--menu-space) *2) calc(var(--menu-space) *3);
195+
padding:calc(var(--menu-space) *2) calc(var(--menu-space) *4);
196196
}
197197

198198
.menu-content-overscroll .menu-content-item:last-child{
@@ -211,6 +211,7 @@
211211
.menu-nav-tab{
212212
padding-left:calc(var(--menu-space) *2);
213213
padding-right:calc(var(--menu-space) *2);
214+
height:calc(var(--menu-space) *4);
214215
justify-content: flex-start;
215216
}
216217

@@ -272,7 +273,7 @@
272273
}
273274

274275
.menu-content-item{
275-
padding:calc(var(--menu-space) *3) calc(var(--menu-space) *4);
276+
padding:calc(var(--menu-space) *3) calc(var(--menu-space) *5);
276277
}
277278

278279
.menu-close-tab{

0 commit comments

Comments
(0)