Hello,

I'd like to create a custom style to easily distinguish comments which have to be published from those which have been already published.

There's a file /css/comments.css which has something like this in line 39:

.comment-unpublished /* Unpublished comments */ {
  background-color: green;  /* Drupal core uses a #fff4f4 background */
}

However, when I place that definition it is not displayed at all, although I am sure to have emptied cache (in fact If I change lines above .comment.even and .comment.odd the styles are displayed perfectly).

Additionally the "unpublished" label also ignores the definition in line 43

.comment-unpublished div.unpublished /* The word "Unpublished" displayed underneath the content. See also the div.unpublished declaration in the nodes.css. */ {
  color: red;
}

Am I missing something or is this a bug?

Thanks

CommentFileSizeAuthor
#1 template.comment.inc-1063226.patch385 bytestacituseu

Comments

tacituseu’s picture

Version: 6.x-2.0 » 6.x-2.x-dev
Category: support » bug
Status: Active » Needs review
StatusFileSize
new385 bytes

Same problem, I think it's an omission in comment preprocess function (zen\zen-internals\template.comment.inc).

johnalbin’s picture

Title: Unpublished comment style is not applyed » Unpublished comment style is not applied
Status: Needs review » Fixed

Nice catch, c-c-m!

And thanks for the patch tacituseu! You're in the CHANGELOG now.

Fixed. http://drupal.org/cvs?commit=503410

barraponto’s picture

this actually duplicates http://drupal.org/node/980002
and the tacituseu's code is cleaner than mine.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.