?

Log in

No account? Create an account

Previous Entry | Next Entry

Entry Comment Link Styling

  • May. 24th, 2010 at 12:15 PM
I would like to know if there is a way to adjust comment links on the main entry page without screwing with the header .asset-meta class.

Basically what I want to do is place the comment links in their own box, which would be aligned in the bottom-right hand corner of the entry, with the texting wrapping around it. I'm not sure if this is even possible, but of course, when I try to resize the comments section, I screw up my date header styling.

Any help would be appreciated, and if more detail or an example are necessary, I can supply those this afternoon when I get home from work.

Comments

( 6 comments — Leave a comment )
av8rmike
May. 25th, 2010 03:37 am (UTC)
Unfortunately, as you noticed, the asset-meta-list class applies to both the bottom links and the date stamp. Bad design, I agree. =(
It's possible to change the class names through a theme layer by editing the print_entry() function, though.
viagra
May. 25th, 2010 12:06 pm (UTC)
That's what I was afraid of. I'm working on re-doing a layout for a friend and he is on a plus account, so no good working with theme layers. Oh, well; I guess sometimes we have to sacrifice things we want when it comes to coding for LJ. :-)
av8rmike
May. 25th, 2010 01:30 pm (UTC)
This might work, but I haven't verified whether or not the CSS cleaner will strip it:
script+div.asset-meta>ul.asset-meta-list {
...
}
viagra
May. 25th, 2010 01:35 pm (UTC)
And theoretically that should isolate just the footer .asset-meta section?

I was thinking about using the !important declaration on my .asset-header .asset-meta style, but I'm not sure if that would override the other style or not.

Of course, the issue is really that in order to do what I want, I would need to float the footer asset-meta div, but with the way the code is written, floating it doesn't push it UP into the entry, but rather makes the entry below wrap around the div, which is naturally the exact opposite of what I want.

Oh, the joys of complicated LJ CSS... :-)
av8rmike
May. 25th, 2010 01:39 pm (UTC)
Theoretically, yes, that CSS won't affect the header .asset-meta block, because it isn't preceded by a <script> element.

From your description, though, it sounds like you'd need to change the actual order in which the elements are printed, and that definitely isn't possible without a theme layer.
viagra
May. 25th, 2010 01:41 pm (UTC)
Yes, that is what I was thinking, too. I really should learn theme layers someday.
( 6 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars