Skip to content

Commit 6409782

Browse files
sukhwinder33445nilmerg
authored andcommitted
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 c07389b commit 6409782

1 file changed

Lines changed: 22 additions & 16 deletions

File tree

public/css/icinga/menu.less

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

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

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

551-
font-weight: @font-weight-bold;
552-
.text-ellipsis();
556+
font-weight: @font-weight-bold;
557+
.text-ellipsis();
553558

554-
> .badge {
555-
display: none;
559+
> .badge {
560+
display: none;
561+
}
556562
}
557563
}
558564
}

0 commit comments

Comments
 (0)