[personal profile] kaigou posting in [community profile] style_system
Is there a way to highlight only those comments made by the original poster?

I know at the top of every post/page, there's a variable set for the journal-name, ie "currentJournal": "username", and that in the comments code itself, you'll find lines like:

{span class="poster comment-poster"}From: {span class="ljuser" lj:user="username" style="white-space: nowrap;"}

but is there a way (I guess in S2) to set a style associated with that variable -- where "lj:user" = "currentJournal" -- such that whenever the journal-owner posts, this comment can be offset with a variable style?

(I put tag as 'core2' but not sure that's really appropriate. Seems this should be tagged with something like 'css:alternate' since it's a question of an alt-style for css, but... no idea, really. Alt-tag if you can think of more appropriate slot, thanks!)

Date: 2009-10-06 04:16 pm (UTC)
branchandroot: oak against sky (Default)
From: [personal profile] branchandroot
I think what you want is already implemented. There is a class "entry-author" that gets stuck on the same div as "comment-wrapper" if the comment is by the entry's author.

So, depending on what you want to do, you can give a background color to .entry-author or some kind of different text color to .entry-author .comment-poster or whatever.

Date: 2009-10-06 06:58 pm (UTC)
foxfirefey: Fox stealing an egg. (mischief)
From: [personal profile] foxfirefey
I implemented that! Because I luff it on certain WordPress styles.

Profile

Dreamwidth style system discussion

July 2025

S M T W T F S
  123 45
6789101112
13141516171819
20212223242526
2728293031  

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 13th, 2025 07:33 pm
Powered by Dreamwidth Studios