2 parents 8ef9151 + 459bb8a commit 12a1453Copy full SHA for 12a1453
1 file changed
assets/scss/_header.scss
@@ -195,6 +195,18 @@
195
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
196
z-index: 10;
197
198
+ // Invisible bridge over the margin-top gap: without it the cursor leaves
199
+ // the hovered .nav-item--dropdown on its way down (easy to do with a
200
+ // touchpad) and the menu closes before an item can be reached.
201
+ &::before {
202
+ content: "";
203
+ position: absolute;
204
+ top: -0.5rem;
205
+ left: 0;
206
+ right: 0;
207
+ height: 0.5rem;
208
+ }
209
+
210
a {
211
padding: 0.5rem 0.75rem;
212
border-radius: 6px;
@@ -292,6 +304,8 @@
292
304
padding: 0 0 0 1rem;
293
305
margin: 0;
294
306
307
+ &::before { display: none; }
308
295
309
296
310
padding: 0.625rem 1rem;
297
311
font-size: 0.9375rem;
0 commit comments