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:
25
app/assets/stylesheets/common/erb/tags.scss.erb
Normal file
25
app/assets/stylesheets/common/erb/tags.scss.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<% 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;
|
||||
}
|
||||
|
||||
.inline-tag-list {
|
||||
ul {
|
||||
display: inline;
|
||||
|
||||
li {
|
||||
display: inline;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user