From ff3aa43070f982c74659467b3128ac160a7e87a6 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 23 Feb 2016 12:18:52 +0100 Subject: [PATCH] CSS: Set tr background transition only for hover fixes #11073 --- modules/monitoring/public/css/tables.less | 16 +++++++--------- public/css/icinga/main.less | 21 +++++++++------------ 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/modules/monitoring/public/css/tables.less b/modules/monitoring/public/css/tables.less index f2f5fd44f..c3a5e00fc 100644 --- a/modules/monitoring/public/css/tables.less +++ b/modules/monitoring/public/css/tables.less @@ -201,16 +201,14 @@ border-spacing: 0 1px; width: 100%; - tr[href] { + tr[href].active { + background-color: @tr-active-color; + } + + tr[href]:hover { .transition(background 0.2s ease); - &.active { - background-color: @tr-active-color; - } - - &:hover { - background-color: @tr-hover-color; - cursor: pointer; - } + background-color: @tr-hover-color; + cursor: pointer; } } diff --git a/public/css/icinga/main.less b/public/css/icinga/main.less index dd85f2b73..54f51860c 100644 --- a/public/css/icinga/main.less +++ b/public/css/icinga/main.less @@ -162,26 +162,23 @@ a:hover > .icon-cancel { } } - tr[href] { + tr[href].active { + background-color: @tr-active-color; + border-left-color: @icinga-blue; + } + + tr[href]:hover { .transition(background 0.2s ease); - &.active { - background-color: @tr-active-color; - border-left-color: @icinga-blue; - transition: none; - } - - &:hover { - background-color: @tr-hover-color; - cursor: pointer; - } + background-color: @tr-hover-color; + cursor: pointer; } caption { border-top: 1px solid @gray-light; caption-side: bottom; - text-align: right; font-style: italic; + text-align: right; } }