Commit e1aa30b3 by Ibrahim Awwal

Style comments from moderators in light blue, and admins in light green. Also…

Style comments from moderators in light blue, and admins in light green. Also puts text after the author's name (there should be something for colorblind people, not sure what form it should take though).
parent e58af446
...@@ -385,6 +385,14 @@ $tag-text-color: #5b614f; ...@@ -385,6 +385,14 @@ $tag-text-color: #5b614f;
color: #dea03e; color: #dea03e;
} }
} }
.author-moderator:after{
content: " (moderator)"
}
.author-administrator:after{
content: " (administrator)"
}
} }
.discussion-content { .discussion-content {
...@@ -410,6 +418,13 @@ $tag-text-color: #5b614f; ...@@ -410,6 +418,13 @@ $tag-text-color: #5b614f;
} }
} }
// Role based styles
.role-moderator{
background-color: #eafcfc;
}
.role-administrator{
background-color: #eafcea;
}
//COMMENT STYLES //COMMENT STYLES
.comments { .comments {
overflow: hidden; overflow: hidden;
......
<div class="discussion-content local"> <div class="discussion-content local{{#content.roles}} role-{{name}}{{/content.roles}}">
<div class="discussion-content-wrapper{{#content.roles}} role-{{name}}{{/content.roles}}"> <div class="discussion-content-wrapper">
<div class="discussion-votes"> <div class="discussion-votes">
<a class="discussion-vote discussion-vote-up" href="javascript:void(0)" value="up">&#9650;</a> <a class="discussion-vote discussion-vote-up" href="javascript:void(0)" value="up">&#9650;</a>
<div class="discussion-votes-point">{{content.votes.point}}</div> <div class="discussion-votes-point">{{content.votes.point}}</div>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
anonymous anonymous
{{/content.anonymous}} {{/content.anonymous}}
{{^content.anonymous}} {{^content.anonymous}}
<a href="{{##url_for_user}}{{content.user_id}}{{/url_for_user}}">{{content.username}}</a> <a href="{{##url_for_user}}{{content.user_id}}{{/url_for_user}}" class="{{#content.roles}}author-{{name}} {{/content.roles}}">{{content.username}}</a>
{{/content.anonymous}} {{/content.anonymous}}
</div> </div>
<div class="show-comments-wrapper"> <div class="show-comments-wrapper">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment