[pmwiki-users] local redefinition of a CSS class
Christophe David
pmwiki at christophedavid.org
Fri Aug 3 14:05:54 CDT 2007
> So, at least in beta63, there doesn't seem to be a way to
> so I'll see about coming up with a fix at some point.
> As an external stylesheet (e.g., pub/css/local.css), one could do:
Thanks a lot for your help.
What about putting the markup found in
http://www.pmwiki.org/wiki/Cookbook/CSSInWikiPages
Markup('stylesheet', '<[=',
"/\\(:stylesheet:\\)(.*?)\\(:stylesheetend:\\)/sei",
"\$GLOBALS['HTMLStylesFmt'][] = PSS('$1')");
in the core, so that
>>comment<<
(:stylesheet:)
span.redsmall, span.redsmall a
{color:red;text-decoration:none;font-size:smaller;}
(:stylesheetend:)
>><<
%redsmall% [[Main.HomePage]]
could be set in any page ?
Ideally, the (:stylesheet:) markup should be "invisible" on a page and
the >>comment<< should not be necessary.
Would that be a good solution ?
Christophe
More information about the pmwiki-users
mailing list