From 41a92e9d8796e0f47e7695e8c5da47ada6a78dd2 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 31 Jul 2024 15:23:43 +0200 Subject: [PATCH] Css: Do not allow `:hover` to affect the `.active` list elements --- modules/monitoring/public/css/tables.less | 8 ++++---- public/css/icinga/main.less | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/monitoring/public/css/tables.less b/modules/monitoring/public/css/tables.less index c5b5f27f5a..73d215450e 100644 --- a/modules/monitoring/public/css/tables.less +++ b/modules/monitoring/public/css/tables.less @@ -248,15 +248,15 @@ -moz-transform: none; /* Firefox collapses border spacing due to the above */ } - tr[href].active { - background-color: @tr-active-color; - } - tr[href]:hover { background-color: @tr-hover-color; cursor: pointer; } + tr[href].active { + background-color: @tr-active-color; + } + tr[href].state-outdated:not(:hover):not(.active) td:not(.state-col) { opacity: 0.7; } diff --git a/public/css/icinga/main.less b/public/css/icinga/main.less index 11dfa30cbc..a5d25ea80c 100644 --- a/public/css/icinga/main.less +++ b/public/css/icinga/main.less @@ -217,15 +217,15 @@ a:hover > .icon-cancel { } } - tr[href].active { - background-color: @tr-active-color; - border-left-color: @icinga-blue; - } - tr[href]:hover { background-color: @tr-hover-color; cursor: pointer; } + + tr[href].active { + background-color: @tr-active-color; + border-left-color: @icinga-blue; + } } .name-value-table {