mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
css: Center icons in collapsed menu with and without a scrollbar
(cherry picked from commit 9a9113bd2b8825c869684536cb116cc8ef35ceb6)
This commit is contained in:
parent
ad5625ff95
commit
f288ad2a1d
@ -303,7 +303,7 @@
|
|||||||
|
|
||||||
> .badge {
|
> .badge {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: .5em;
|
right: 1em;
|
||||||
bottom: .25em;
|
bottom: .25em;
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
scrollbar-width: thin;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu .nav-item {
|
#menu .nav-item {
|
||||||
@ -98,7 +99,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-1 > .nav-item > a {
|
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-1 > .nav-item > a {
|
||||||
padding: ~"calc((@{nav-item-height} - 2em) / 2) .5em .5em .5em";
|
padding: ~"calc((@{nav-item-height} - 2em) / 2) .5em .5em .75em";
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu ul:not(.nav-level-2) > .selected > a {
|
#menu ul:not(.nav-level-2) > .selected > a {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user