tag_set_presenter: refactor inline_tag_list_html.

* Sort tags by category in inline tag lists (on /comments page, /uploads page, and modqueue).
* Move tags css to common/erb/tags.scss.erb.
This commit is contained in:
evazion
2018-04-25 19:57:43 -05:00
parent 442964b0eb
commit f2998585e9
5 changed files with 30 additions and 37 deletions

View File

@@ -66,12 +66,6 @@ div#c-comments {
margin-right: 0.3em;
}
div.list-of-tags {
a {
margin-right: 0.5em;
}
}
div.notices {
margin: 1em 0;
}
@@ -133,12 +127,6 @@ div#c-comments {
div.post.blacklisted.blacklisted-active {
display: none;
}
div.list-of-tags {
span {
display: inline-block;
}
}
}
}

View File

@@ -1,4 +1,4 @@
@import "../../common/000_vars.scss";
@import "../common/000_vars.scss";
article.post-preview {
height: 154px;
@@ -179,21 +179,6 @@ body[data-user-can-approve-posts="true"] .post-preview {
}
}
<% TagCategory.css_mapping.each do |category,cssmap| %>
.category-<%= category %> a, a.tag-type-<%= category %>, .ui-state-focus a.tag-type-<%= category %> {
color: <%= cssmap["color"] %>;
&:hover {
color: <%= cssmap["hover"] %>;
}
}
<% end %>
.category-banned a, a.tag-type-banned,, .ui-state-focus a.tag-type-banned {
color: black;
background-color: red;
}
.post-count {
color: #CCC;
margin-left: 0.2em;