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.
This commit is contained in:
evazion
2021-02-23 00:50:38 -06:00
parent 8c86662a5a
commit 8894a31d74

View File

@@ -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 %>