Grey out post title when read (how?)

Discussion corner for Developers of Serendipity.
Post Reply
evanslee
Regular
Posts: 28
Joined: Tue Jul 27, 2010 3:21 pm

Grey out post title when read (how?)

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

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

Post 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
evanslee
Regular
Posts: 28
Joined: Tue Jul 27, 2010 3:21 pm

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

Post by evanslee »

Thanks, working

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

Regards,
lee
Post Reply