From c671d0c9f266730b37f15ddfba595064fb6cc245 Mon Sep 17 00:00:00 2001 From: catarak Date: Tue, 30 Aug 2016 14:44:53 -0400 Subject: [PATCH] fix selected item style--no longer highlights children --- client/styles/components/_sidebar.scss | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/styles/components/_sidebar.scss b/client/styles/components/_sidebar.scss index 05b36de2..14ef3eaf 100644 --- a/client/styles/components/_sidebar.scss +++ b/client/styles/components/_sidebar.scss @@ -41,12 +41,8 @@ .sidebar__file-item { font-size: #{16 / $base-font-size}rem; - padding: #{8 / $base-font-size}rem 0; color: $light-inactive-text-color; cursor: pointer; - &--selected { - background-color: $ide-border-color; - } &:hover > .file-item__content .sidebar__file-item-name { color: $light-primary-text-color; } @@ -79,6 +75,11 @@ .file-item__content { display: flex; position: relative; + padding: #{8 / $base-font-size}rem 0; + .sidebar__file-item--selected > & { + background-color: $ide-border-color; + } + } .sidebar__file-item-name {