[pmwiki-users] Suggested default template changes for 2.1

H. Fox haganfox at users.sourceforge.net
Wed Dec 7 17:18:15 CST 2005


On 12/7/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> Repeating some of my comments from the PITS entry:
>
> On Thu, Dec 08, 2005 at 07:04:13AM +1300, Simon wrote:
> >    1) Include the pmwiki.css file after the page specific styles
> >    ie in the template
> >    <!--HeaderText-->
> >    <link rel='stylesheet' href='$SkinDirUrl/pmwiki.css' type='text/css' />
> >    instead of
> >    <link rel='stylesheet' href='$SkinDirUrl/pmwiki.css' type='text/css' />
> >    <!--HeaderText-->
> >    This will allow the pmwiki.css styles to override the styles included in
> >    the page.
>
> But this also makes it much harder for an admin to override the styles
> in pmwiki.css.  Beyond that, I can't imagine any situation where we would
> want the pmwiki.css styles to override the styles included in the page.

The Light Skin uses

  <link rel='stylesheet' href='$SkinDirUrl/light.css' type='text/css' />
  <!--HeaderText-->
  <link rel='stylesheet' href='$SkinDirUrl/light2.css' type='text/css' />

I don't recall exactly why it was important to have both, but here's
light2.css, which provides some hints.

/*
These CSS selectors will override selectors PmWiki injects into
the HTML header.
*/
.indent { margin-left:30px; }
.outdent { margin-left:30px; text-indent:-30px; }
.diffbox { width:745px; margin-top:10px; }
.diffadd code, .diffdel code { padding-right:1px; white-space:normal; }
.diffrestore, .difftype, .difftime .diffauthor { font-size:8pt; }
.diffrestore { margin-top:2px; }

Hagan




More information about the pmwiki-users mailing list