[pmwiki-users] Gemini skin and extendedmarkup (selfreference vs selflink)
John Rankin
john.rankin at affinity.co.nz
Thu Apr 14 20:47:27 CDT 2005
On Friday, 15 April 2005 7:55 AM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>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.
I'll bring extendedmarkup into line too. 'selfreference' was
around before 'selflink' and I just haven't updated it.
Thanks for drawing it to my attention.
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list