mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
menu: Align badges correctly and ellipsize text again
This commit is contained in:
parent
05f9e7c5ee
commit
eafb6c95b7
@ -69,10 +69,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
> a {
|
> a {
|
||||||
padding-left: .75em;
|
// To center the content, padding top is: height - line-height / 2
|
||||||
|
padding: ~"calc((@{nav-item-height} - 1.5em) / 2) .5em .5em .75em";
|
||||||
height: @nav-item-height;
|
height: @nav-item-height;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active:not(.selected) > a:focus,
|
&.active:not(.selected) > a:focus,
|
||||||
@ -98,6 +97,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-1 > .nav-item > a {
|
||||||
|
padding: ~"calc((@{nav-item-height} - 2em) / 2) .5em .5em .5em";
|
||||||
|
}
|
||||||
|
|
||||||
#menu ul:not(.nav-level-2) > .selected > a {
|
#menu ul:not(.nav-level-2) > .selected > a {
|
||||||
background-color: @menu-highlight-color;
|
background-color: @menu-highlight-color;
|
||||||
color: @text-color-inverted;
|
color: @text-color-inverted;
|
||||||
@ -236,9 +239,7 @@
|
|||||||
|
|
||||||
// Badge offset correction
|
// Badge offset correction
|
||||||
#menu > nav > .nav-level-1 > .badge-nav-item > a > .badge {
|
#menu > nav > .nav-level-1 > .badge-nav-item > a > .badge {
|
||||||
margin-top: 0.2em;
|
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
order: 1; // It's the only positioned element in the flex container, hence 1 moves it to the right most position
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu .nav-level-2 > .badge-nav-item > a > .badge {
|
#menu .nav-level-2 > .badge-nav-item > a > .badge {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user