[pmwiki-users] Problems with the embedded CSS in pmwiki.php
H. Fox
haganfox at users.sourceforge.net
Sun Nov 12 13:53:10 CST 2006
On 10/27/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> [...] a skin that wants to
> override the pmwiki.php embedded styles can do the following
> in skin.php:
>
> global $HTMLStylesFmt;
> $HTMLStylesFmt['skin'] = "...css overrides here...";
>
> These definitions will come after the pmwiki defaults, but before
> pub/css/local.css and other administrator-defined styles.
Not exactly. In testing I've discovered it won't override PmWiki
defaults that come from stdmarkup.php, at least not in PmWiki 2.1.26
it won't.[1]
I also notice that styles from Main.php appear *after* styles from
Main.HomePage.php. I would have expected the reverse. Is that a
feature or a bug?
Hagan
[1] Here's what I get:
<style type='text/css'><!--
ul, ol, pre, dl, p { margin-top:0px; margin-bottom:0px; }
code.escaped { white-space: nowrap; }
.vspace { margin-top:1.33em; }
.indent { margin-left:40px; }
.outdent { margin-left:40px; text-indent:-40px; }
a.createlinktext { text-decoration:none; border-bottom:1px dotted gray; }
a.createlink { text-decoration:none; position:relative; top:-0.5em;
font-weight:bold; font-size:smaller; border-bottom:none; }
img { border:0px; }
/*******************
Styles from config.php
*******************/
/*******************
Styles from Main.HomePage.php
*******************/
/*******************
Styles from Main.php
*******************/
.editconflict { color:green;
font-style:italic; margin-top:1.33em; margin-bottom:1.33em; }
/*******************
Styles from skin.php
*******************/
table.markup { border:2px dotted #ccf; width:90%; }
td.markup1, td.markup2 { padding-left:10px; padding-right:10px; }
table.vert td.markup1 { border-bottom:1px solid #ccf; }
table.horiz td.markup1 { width:23em; border-right:1px solid #ccf; }
table.markup caption { text-align:left; }
div.faq p, div.faq pre { margin-left:2em; }
div.faq p.question { margin:1em 0 0.75em 0; font-weight:bold; }
.frame
{ border:1px solid #cccccc; padding:4px; background-color:#f9f9f9; }
.lfloat { float:left; margin-right:0.5em; }
.rfloat { float:right; margin-left:0.5em; }
a.varlink { text-decoration:none; }
--></style>
More information about the pmwiki-users
mailing list