Skip to content

Commit 8997f7f

Browse files
menu.less: Apply same bg-color to the caret in the .nav-item-header
- Change the css specificity so it matches the existing level (hovered menu)
1 parent 9b63928 commit 8997f7f

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

public/css/icinga/menu.less

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -533,25 +533,31 @@ html.no-js #toggle-sidebar {
533533
margin-right: 0;
534534
}
535535

536-
#layout.sidebar-collapsed #menu .nav-level-1 > .nav-item.hover .nav-level-2 > .nav-item-header {
537-
background-color: @menu-bg-color;
538-
color: @menu-color;
539-
border-bottom: 1px solid @gray-light;
540-
border-top-left-radius: .25em;
541-
border-top-right-radius: .25em;
536+
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-1 > .nav-item.hover > .nav-level-2 {
537+
&:not(.bottom-up)::after {
538+
background-color: @menu-bg-color;
539+
}
542540

543-
span {
544-
padding-left: 1.375em;
545-
padding-right: 0.545em;
546-
height: @nav-item-height;
547-
line-height: @nav-item-height;
548-
display: block;
541+
.nav-item-header {
542+
background-color: @menu-bg-color;
543+
color: @menu-color;
544+
border-bottom: 1px solid @gray-light;
545+
border-top-left-radius: .25em;
546+
border-top-right-radius: .25em;
547+
548+
span {
549+
padding-left: 1.375em;
550+
padding-right: 0.545em;
551+
height: @nav-item-height;
552+
line-height: @nav-item-height;
553+
display: block;
549554

550-
font-weight: @font-weight-bold;
551-
.text-ellipsis();
555+
font-weight: @font-weight-bold;
556+
.text-ellipsis();
552557

553-
> .badge {
554-
display: none;
558+
> .badge {
559+
display: none;
560+
}
555561
}
556562
}
557563
}

0 commit comments

Comments
 (0)