From 90f302c103a44a7d7995c6e0bcc582bccbfbbcdc Mon Sep 17 00:00:00 2001 From: Kata Date: Sun, 10 Dec 2017 04:39:17 -0600 Subject: [PATCH] UI: fix servercard active/hover/even scoping problem --- UI/src/components/servers/ServerCard.sass | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/UI/src/components/servers/ServerCard.sass b/UI/src/components/servers/ServerCard.sass index 1cb810d..b49dbe0 100644 --- a/UI/src/components/servers/ServerCard.sass +++ b/UI/src/components/servers/ServerCard.sass @@ -7,17 +7,18 @@ align-items: center /* justify-content: center */ - .active + &.active background-color: var(--c-3) - &:hover:not(.active) - background-color: rgba(0,0,0,0.25) !important - cursor: pointer - transform: translateX(1px) - transition: background 0.05s ease-in-out, transform 0.1s ease-in-out + &:not(.active) + &:hover + background-color: rgba(0,0,0,0.25) !important + cursor: pointer + transform: translateX(1px) + transition: background 0.05s ease-in-out, transform 0.1s ease-in-out - &:nth-of-type(even) - background-color: rgba(0,0,0,0.1) + &:nth-of-type(even) + background-color: rgba(0,0,0,0.1) &:last-of-type border: 0