From 8894a31d74e9b7c93f0b3450bfa2939025828620 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 23 Feb 2021 00:50:38 -0600 Subject: [PATCH] css: remove dead autocomplete css. Remove some rules intended to highlight the currently selected tag in the autocomplete menu. The selected tag was supposed to be shown with the tag hover color, but this didn't actually work because of CSS specificity issues, and it possibly never worked to begin with, so it's not worth fixing. --- app/javascript/src/styles/common/tags.scss.erb | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/app/javascript/src/styles/common/tags.scss.erb b/app/javascript/src/styles/common/tags.scss.erb index 3c734f1bf..fd643f144 100644 --- a/app/javascript/src/styles/common/tags.scss.erb +++ b/app/javascript/src/styles/common/tags.scss.erb @@ -1,8 +1,5 @@ <% TagCategory.css_mapping.each do |category,cssmap| %> - .tag-type-<%= category %> a, - a.tag-type-<%= category %>, - .ui-widget-content .tag-type-<%= category %> a, - .ui-widget-content a.tag-type-<%= category %> { + .tag-type-<%= category %> a, a.tag-type-<%= category %> { color: <%= cssmap["color"] %>; &:link, &:visited { @@ -13,16 +10,4 @@ color: <%= cssmap["hover"] %>; } } - - .ui-widget-content .ui-state-active a.tag-type-<%= category %> { - color: <%= cssmap["hover"] %>; - - &:link, &:visited { - color: <%= cssmap["color"] %>; - } - - &:hover { - color: <%= cssmap["hover"] %>; - } - } <% end %>