From 92a15a6ee43aa24abfbe1a71d94b179a97fa7ce0 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Mon, 2 Mar 2015 18:16:46 +0100 Subject: [PATCH] Fix badge css Nav element added for accesssibility destroyed the badge CSS. Make badge CSS more robust against inserted elements. --- public/css/icinga/widgets.less | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/css/icinga/widgets.less b/public/css/icinga/widgets.less index 1da6b7bfb..45701a697 100644 --- a/public/css/icinga/widgets.less +++ b/public/css/icinga/widgets.less @@ -230,29 +230,29 @@ li li .badge-container { background-color: @colorInvalid; } -#menu > ul > li.active > .badge-container { +#menu nav > ul > li.active > .badge-container { display: none; } -#menu > ul > li.hover > .badge-container { +#menu nav > ul > li.hover > .badge-container { display: none; } -#menu > ul > li.active > ul > li .badge-container { +#menu nav > ul > li.active > ul > li .badge-container { position: relative; top: -0.5em; } -#menu > ul > li.hover > ul > li > a { +#menu nav > ul > li.hover > ul > li > a { width: 12.5em; } -#menu > ul > li.hover > ul > li .badge-container { +#menu nav > ul > li.hover > ul > li .badge-container { position: relative; top: -0.5em; } -#menu > ul > li.hover > ul > li { +#menu nav > ul > li.hover > ul > li { // prevent floating badges from resizing list items in webkit //max-height: 2em; }