Fix #3961: Tags in dialog boxes sometimes colored incorrectly

Fix rules so that the `.ui-widget-content .category-0 a` rule for tags
overrides the `.ui-widget-content a` rule for normal links.
This commit is contained in:
evazion
2018-10-26 23:39:11 -05:00
parent 60cee5f452
commit 600b17cd9f
2 changed files with 10 additions and 7 deletions

View File

@@ -6,14 +6,14 @@
input, select, textarea, button {
font-family: $base_font_family;
}
}
a, a:active, a:visited {
color: $link_color;
}
.ui-widget-content a {
color: $link_color;
}
a:hover {
color: $link_hover_color;
}
.ui-widget-content a:hover {
color: $link_hover_color;
}
div.ui-dialog {

View File

@@ -1,7 +1,10 @@
@import "../base/000_vars.scss";
<% TagCategory.css_mapping.each do |category,cssmap| %>
.category-<%= category %> a, a.tag-type-<%= category %>, .ui-widget-content a.tag-type-<%= category %> {
.category-<%= category %> a,
a.tag-type-<%= category %>,
.ui-widget-content .category-<%= category %> a,
.ui-widget-content a.tag-type-<%= category %> {
color: <%= cssmap["color"] %>;
&:link, &:visited {