[pmwiki-users] Gemini skin and extendedmarkup (selfreference vs selflink)
Patrick R. Michaud
pmichaud at pobox.com
Thu Apr 14 14:55:29 CDT 2005
On Thu, Apr 14, 2005 at 08:22:05PM +0100, Hans wrote:
> I looked at selflink vs selfreference more closely:
> extendmarkup.php makes $LinkPageSelfFmt into a bold <b>tag,
> which does not go well in gemini skin's sidebar, since all the
> list-items are links and <a>tags and styled as such.
Yes. But perhaps another workaround is for gemini (or the site) to
use a CSS selector of "li .selfreference" in addition to "li a".
Or even "li b.selfreference". This ought to catch+style the
<b class='selfreference'> items also.
> # changes to extended markup:
> $LinkPageSelfFmt = "<a class='selflink'>\$LinkText</a>";
> $HTMLStylesFmt[] = "
> a.selflink { color:#000; text-decoration:none }
> #sidebar a:hover.selflink {background:none; color:#000}
> ";
Yup, this should work.
> Question about this:
> Perhaps
> $LinkPageSelfFmt = "<a class='selflink'>\$LinkText</a>";
> has an advantage over
> $LinkPageSelfFmt = "<a class='selflink' href='\$LinkUrl'>\$LinkText</a>";
> or are there any problems with this?
I don't see any problems with it.
More information about the pmwiki-users
mailing list