Page 1 of 1

Grey out post title when read (how?)

Posted: Wed Jul 28, 2010 7:32 pm
by evanslee
If i wanted to grey out the title of a read post where would be the best place to make this change?

CSS or one of the .TPL files?

I tried activating user.css in bulletproof template, and stuck this inside but its not worked

Code: Select all

:link {
	color: rgb(0, 0, 153);
}  /* for unvisited links */
:visited {
	color: rgb(153, 0, 153);
} /* for visited links */
a:active {
	color: rgb(255, 0, 102);
} /* when link is clicked */
a:hover {
	color: rgb(0, 96, 255);
} /* when mouse is over link */
And it strikes me that really I need to tap into the serendipity 'Mark read' feature to do this properly

Lee

Re: Grey out post title when read (how?)

Posted: Wed Jul 28, 2010 8:14 pm
by yellowled
evanslee wrote:And it strikes me that really I need to tap into the serendipity 'Mark read' feature to do this properly
Actually, no. (Well, define "properly".)

In fact, if the entry title is a link (which is the case in BP), you can grey it out using the :visited CSS pseudo-class. But since you may not want to use the global :visited, you'll probably want to use something like this:

Code: Select all

.serendipity_title a:visited { color: #aaa; }
YL

Re: Grey out post title when read (how?)

Posted: Wed Jul 28, 2010 9:44 pm
by evanslee
Thanks, working

Thanks for the help, im learning how all this ties together.

Regards,
lee