[pmwiki-users] wikistyles question

Patrick R. Michaud pmichaud at pobox.com
Fri Nov 24 13:09:18 CST 2006


On Tue, Nov 21, 2006 at 04:05:33PM -0800, Lucian Wischik wrote:
> dso <dso at moosoft.com> wrote:
> >How do you do this as a wikistyle?
> ><style type="text/css">
> >.rollover a { display:block; width:32px; background-color: #FFFFFF}
> >.rollover a:hover { background-color: #990000}
> ></style>
> 
> Doesn't this get to the point where wikistyles are no longer useful? I
> mean, if a wikistyle can do all this, then it's merely another
> re-implementation of CSS (rather than an easy-to-use subset). And
> what's the use in having two markup languages that do the same thing?

It should be noted that wikistyles can do quite a bit more
than CSS (and are thus not a subset).  In particular, wikistyles
allow new styles to be created in terms of existing ones, which
CSS doesn't easily allow.

That said, the easy way to do the above is to simply put
the .rollover CSS definition into pub/css/local.css .
This will enable a %rollover% wikistyle.

(However, note that the above definition of .rollover is different
from the WikiStylesPlus recipe's definition of .rollover . 
I'd probably go with ".hover" instead.)

Pm




More information about the pmwiki-users mailing list