CSS: Set tr background transition only for hover

fixes #11073
This commit is contained in:
Eric Lippmann 2016-02-23 12:18:52 +01:00
parent 7f358ed88d
commit ff3aa43070
2 changed files with 16 additions and 21 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}