File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 123
123
height : 1.25em ;
124
124
width : 1.25em ;
125
125
top : ~ " calc(50% - (1.25em / 2))" ;
126
+ z-index : 10 ;
126
127
}
127
128
}
128
129
129
130
#menu .nav-level-2 > .nav-item {
130
131
// Collapse menu by default
131
132
display : none ;
132
133
line-height : 1.833em ; // 22px
134
+ z-index : 12 ;
133
135
134
136
> a {
135
137
color : @menu-2ndlvl-color ;
267
269
padding-bottom : @vertical-padding ;
268
270
width : 14em ;
269
271
position : fixed ;
270
- z-index : 1 ;
272
+ z-index : 11 ;
271
273
margin-top : -1px ; // Align content with the menu item, not its border
272
274
273
275
& ::after {
276
+ --caretSide : 1.25em ;
277
+
274
278
.transform (rotate (45deg ));
275
279
276
280
background-color : @body-bg-color ;
277
281
border-bottom : 1px solid @gray-light ;
278
282
border-left : 1px solid @gray-light ;
279
283
content : " " ;
280
284
display : block ;
281
- height : 1.1 em ;
282
- width : 1.1 em ;
285
+ height : var ( --caretSide ) ;
286
+ width : var ( --caretSide ) ;
283
287
position : absolute ;
284
- top : ~ " calc((@{nav-item-height} / 2) - (1.1em / 2))" ;
285
- left : -.6em ;
286
- z-index : -1 ;
288
+ top : ~ " calc(@{nav-item-height} / 2 - var(--caretSide) / 2)" ;
289
+ left : ~ " calc(-1 * var(--caretSide) / 2 - 1px)" ;
287
290
}
288
291
289
292
& .bottom-up {
290
293
--caretY : 100% ;
291
294
margin-top : 1px ;
292
295
293
296
& ::after {
294
- top : ~ " calc(var(--caretY) - (@{nav-item-height} / 2) - (1.1em / 2))" ;
297
+ top : ~ " calc(var(--caretY) - (@{nav-item-height} / 2) - (var(--caretSide) / 2))" ;
295
298
}
296
299
}
297
300
You can’t perform that action at this time.
0 commit comments