[Pmwiki-users] PmWiki skinning

Thomas -Balu- Walter list+pmwiki-users
Fri Nov 5 16:48:28 CST 2004


While playing around with a new skin creation I once again noticed that
some PmWiki default CSS or style definitions make it difficult to create
what you want.

I know that those defaults are there to make it easier for unexperienced
skin developers, but the other way round they make it more difficult for
people like me who want to heavily modify the default skin :).

Such things include the default for e.g. $PageLogoFmt. The default looks
like this: 
"<div id='wikilogo'><a href='$ScriptUrl'><img
  src='$PageLogoUrl' alt='$WikiTitle' border='0' /></a></div>"

The div makes it necessary to do a #wikilogo { display: inline; }
to avoid inserting a new block. In addition a wiki admin might not
include the div like this when he tries to change the image - or perhaps
just have a text there?

So I suggest to remove the div from $PageLogoFmt. And add a <div> to the
pwiki skin template.

Another thing are the styles added in the HeaderText. Those exist so
that things like vertical space, code, etc. look like in the default
wiki. But always adding them makes it difficult to override them too. 

E.g. to not have the createlinktext links be underlined I have to add a
CSS below the default:

a.createlinktext { text-decoration:none; border-bottom:1px dotted grey; }

a.createlinktext { border-bottom: 0px }

This does not only look nasty to external people looking at the code, it
also makes it a lot more complex to do what I want.

My suggestion would be to put those into a css-basics.css or something
like this and make the default skin include it. Skin admins might or
might not include it too. 

This way I can easily have a skin looking like the default one or a
complete new one without adding any complexity.

     Balu



More information about the pmwiki-users mailing list