Topic on Skin talk:Chameleon

Main Menu ('sidebar') Font Customisation

5
62.96.213.62 (talkcontribs)

Hi! I am using the Chameleon skin wuth navhead.xml. I cannot establish which variables to use to modify the menu text eg Main Page and Help in the default installation. Hoping to change the colour and size. I have successfully changed the entire installation font family by modifying the CustomCSS mediawiki webpage but this does not seem to do anything for the navhead Chameleon menu...

F.trott (talkcontribs)

There is, as far as I can tell, no specific variable for the font used in the navbar. You will need to add some css or less code to change the font. For the color however there are several variables:

  • @navbar-default-link-color
  • @navbar-default-link-hover-color
  • @navbar-default-link-hover-bg
  • @navbar-default-link-active-color
  • @navbar-default-link-active-bg
  • @navbar-default-link-disabled-color
  • @navbar-default-link-disabled-bg

You can find their standard values at https://github.com/cmln/mw-bootstrap/blob/master/resources/bootstrap/less/variables.less#L367-L378

62.96.213.62 (talkcontribs)

Thank you! That is really helpful. Unfortunately, when I try to add a third variable to my existing array in LocalSettings.php, it crashes my wiki :( As soon as I comment it out, the wiki works again...

Any combination of variables causes the problem, so it is the length of the array not the actual variables... ?

$egChameleonExternalLessVariables = array(

        'navbar-default-bg' => 'rgba(255,255,255,1)',

        'navbar-default-border' => 'rgba(255,255,255,1)'

       

'navbar-default-link-color' => 'rgba(255,0,0,1)'

);

F.trott (talkcontribs)

Make sure it is syntactically correct. I don't know if it is the same in your LocalSettings.php, but in the example above a comma is missing.

If that's not the problem, turn on error reporting to hopefully get more information on what is causing the crash.

62.96.213.62 (talkcontribs)

F.trott - thank you so much!!! It was the missing comma. I cannot believe it.

Reply to "Main Menu ('sidebar') Font Customisation"