Merge pull request #3028 from evazion/fix-flag-borders
Change flag borders from red to blue for non-approvers.
This commit is contained in:
@@ -102,23 +102,30 @@ a.blacklisted-active {
|
||||
}
|
||||
|
||||
|
||||
&.post-status-pending:not(.mod-queue-preview) img {
|
||||
/* Pending and flagged posts have blue borders (except in the modqueue). */
|
||||
&.post-status-pending:not(.mod-queue-preview) img,
|
||||
&.post-status-flagged:not(.mod-queue-preview) img {
|
||||
border-color: $preview_pending_color;
|
||||
}
|
||||
|
||||
&.post-status-has-children.post-status-pending:not(.mod-queue-preview) img {
|
||||
&.post-status-has-children.post-status-pending:not(.mod-queue-preview) img,
|
||||
&.post-status-has-children.post-status-flagged:not(.mod-queue-preview) img {
|
||||
border-color: $preview_has_children_color $preview_pending_color $preview_pending_color $preview_has_children_color;
|
||||
}
|
||||
|
||||
&.post-status-has-parent.post-status-pending:not(.mod-queue-preview) img {
|
||||
&.post-status-has-parent.post-status-pending:not(.mod-queue-preview) img,
|
||||
&.post-status-has-parent.post-status-flagged:not(.mod-queue-preview) img {
|
||||
border-color: $preview_has_parent_color $preview_pending_color $preview_pending_color $preview_has_parent_color;
|
||||
}
|
||||
|
||||
&.post-status-has-children.post-status-has-parent.post-status-pending:not(.mod-queue-preview) img {
|
||||
&.post-status-has-children.post-status-has-parent.post-status-pending:not(.mod-queue-preview) img,
|
||||
&.post-status-has-children.post-status-has-parent.post-status-flagged:not(.mod-queue-preview) img {
|
||||
border-color: $preview_has_children_color $preview_pending_color $preview_pending_color $preview_has_parent_color;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Flagged posts have red borders for approvers. */
|
||||
body[data-can-approve-posts="true"] .post-preview {
|
||||
&.post-status-flagged img {
|
||||
border-color: $preview_flagged_color;
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body lang="en">
|
||||
<body lang="en" data-can-approve-posts="<%= CurrentUser.user.can_approve_posts? %>">
|
||||
<header id="top">
|
||||
<%= render "news_updates/listing" %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user