Skip to content

Commit 45ac22a

Browse files
committed
jump to menu item spacing
1 parent 3a4dfab commit 45ac22a

1 file changed

Lines changed: 18 additions & 9 deletions

File tree

src/components/Nav/styles.module.scss

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
overflow-x: hidden;
147147
display: grid;
148148
grid-template-columns: 1fr 1fr;
149-
padding: var(--spacing-sm) 1.25rem;
149+
padding: 0 1.25rem var(--spacing-sm);
150150
font-size: 1.5rem;
151151
line-height: 1.167;
152152
-webkit-text-stroke-width: 0.15px;
@@ -161,10 +161,6 @@
161161
// Firefox
162162
-ms-overflow-styles: none;
163163
scrollbar-width: none;
164-
165-
li {
166-
padding-bottom: var(--spacing-xxs);
167-
}
168164
}
169165

170166
.toggle {
@@ -199,10 +195,6 @@
199195
}
200196
}
201197

202-
:global(.reference-item) .jumpto ul {
203-
grid-template-columns: 1fr;
204-
}
205-
206198
.buttonlink {
207199
display: flex;
208200
width: 100%;
@@ -261,6 +253,10 @@
261253
}
262254
}
263255

256+
.linklabel:not(:global(.small)) + .linklabel:global(.small) {
257+
margin-top: 4px;
258+
}
259+
264260
/* Interaction */
265261

266262
.jumpto:global(.open) {
@@ -276,3 +272,16 @@
276272
}
277273
}
278274
}
275+
276+
/* Page-specific modifications */
277+
:global(.reference-item) .jumpto ul {
278+
grid-template-columns: 1fr;
279+
}
280+
281+
:global(.contribute),
282+
:global(.tutorials),
283+
:global(.about) {
284+
.jumpto ul li.linklabel:not(:global(.small), :first-child) {
285+
margin-top: 10px;
286+
}
287+
}

0 commit comments

Comments
 (0)