[pmwiki-users] pmwiki-responsive skin: problem with css for headers

Petko Yotov 5ko at 5ko.fr
Wed Apr 5 04:31:37 PDT 2023


On 05/04/2023 13:07, Johan Bengtsson wrote:
> I had some complaints about the look of the headers when using the
> pmwiki-responsive skin.
> In skin.css it looks like this:
> 
> h1, h2, h3, h6 { font-weight:normal; }
> h4, h5 { font-weight:bold; }
> h6 { font-size:15px; }
> 
> Users complained that some headings "drowned in the text", notably 
> h1-h3.
> I changed to look like this, more bold and size change for h6:
> h1, h2, h3, h4, h5, h6 { font-weight:bold; }
> h6 { font-size:14px; }

I often color the headings to stand out even more :

   h1, h2, h3, h4, h5, h6 {
     font-weight:bold;
     color: darkred;
     background-color: #eee;
   }

You shouldn't edit the core skin itself - instead add your changes to 
the file pub/css/local.css, they will override the skin styles.

This will be useful when you update your PmWiki installation - and not 
lose your changes or have to re-apply them.

If you want to modify the skin in a more drastic manner, simply copy the 
skin folder to a different name, set in config.php the correct $Skin 
variable, and work on the copy.

> Any particular reason for no bold for certain sizes?

For historical reasons, to look closer to the "pmwiki" classic skin.

The responsive skin was written in 2016 and we tested and discussed it 
for a year or so before adding it to the core.

When possible, and unless it was an obvious mistake or very annoying, we 
don't want people who upgrade to have a change in the styles / fonts on 
their wikis.

Petko



More information about the pmwiki-users mailing list