?

Log in

No account? Create an account

Previous Entry | Next Entry

Link color issue

  • Sep. 3rd, 2006 at 3:57 PM
I've tried just about everything to change the color of the links at the bottom of my entries IE:(read 4 | comment | Edit |Tag | +Memo | Link).. I've customized everything else easily... the links on the rest of the page changed... but I just can't seem to get these to change from gray to something else. Help?

nopsa & I'm using urban sunset.

Comments

( 14 comments — Leave a comment )
nimoloth
Sep. 3rd, 2006 09:10 pm (UTC)
I can't get them to change either. I had limited success by putting a span tag around them with a new class to change their colour, but it onlt changed some of them, and it messed up their layout too.
nopsa
Sep. 3rd, 2006 09:15 pm (UTC)
well that suck! lol Thank you anyways :)
queercasanova
Sep. 5th, 2006 12:51 am (UTC)
In the function Entry::print_linkbar(), change
print """*ul class="asset-meta-list"*\n""";
to
print """*ul*\n""";
this will change how your link bar looks. The links will change to the normal link colours and behaviors, and they will become a vertical list, but now you will be able to change the link colours and behaviors at will.
note: the read and leave comment links are produced by the function CommentInfo::print(), all others are produced in Entry::print_linkbar().

(the *'s represent < and >, it wouldn't post right with them in there)
nimoloth
Sep. 5th, 2006 02:55 am (UTC)
But why then doesn't something like:

.asset-meta-list { color: #123456; }

change their colour? Is there something else overriding this? I didn't think there could be, because that is the innermost tag.
queercasanova
Sep. 5th, 2006 02:57 am (UTC)
not sure, I suspect that it is somehow set up so we cannot override their classes, because I've encountered several I can't seem to get to change
nimoloth
Sep. 5th, 2006 03:12 am (UTC)
That's interesting - and very annoying. I guess then you could create your own ul class to modify them as you want, or even not use ul at all.
queercasanova
Sep. 5th, 2006 03:31 am (UTC)
yeah I decided to do away with the ul altogether. I didn't want bullets, so I didn't really see an advantage to using it
redwolf
Sep. 5th, 2006 11:02 am (UTC)
It does, sort of, you just have to find it and make sure all of the anchor settings are included. The css in question is in ljextras.css:

.asset-meta-list,
.asset-meta-list a:link,
.asset-meta-list a:hover,
.asset-meta-list a:visited,
.asset-meta-list a:active {
color : #ff0000;
font-weight : bold;
}
nopsa
Sep. 5th, 2006 02:14 pm (UTC)
Woo thank you because that other stuff was written in chinese!
redwolf
Sep. 5th, 2006 09:36 pm (UTC)
No worries. It looks good on your LJ.
nimoloth
Sep. 5th, 2006 11:27 pm (UTC)
Ah, I see! That's most useful, thanks!
redwolf
Sep. 5th, 2006 11:44 pm (UTC)
Any time.

Anchor colours (.asset-meta-list a) always take precedence over text colours (.asset-meta-list) in CSS and individual anchor state colours (.asset-meta-list a:link, etc) win out over base anchor colours. Of course, trying to find where, in all of the attached stylesheets, your changes are being overwritten is another matter.

There was a completely different style for setting the border between the footer tags used in the urban theme. I'll have to dig it out if anyone needs it.
nopsa
Sep. 5th, 2006 05:04 pm (UTC)
I have no idea where to even find that.. But I do thank you anyway :) I tried the other suggestion at the bottom and it worked :)

Question.. How did you get your comment links aliged to the right? Mine wont budge. =\
queercasanova
Sep. 5th, 2006 09:20 pm (UTC)
to move it to the right you'd have to use the code from before. Once you remove the class controling the links, they'll move however you want them to. I don't use css files, I use a theme layer. Sorry, I don't know how to do it without overriding the function Entry::print_linkbar() . Wish I could be more help
( 14 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