Topic on Skin talk:Chameleon

Trouble setting egChameleonExternalStyleVariables using key, value below

2
146.115.16.246 (talkcontribs)
$cmln-link-colors (new: #dc3545 none #a71d2a underline, stub: #1b599b none #10345a underline, extiw: #1b599b none #10345a underline, external: #1b599b none #10345a underline)

How would I set this? I tried doing it like follows but it does not work.

$egChameleonExternalStyleVariables = [

    'cmln-link-colors' => '(new: #dc3545 none #a71d2a underline, stub: #1b599b none #10345a underline, extiw: #1b599b none #10345a underline, external: #1b599b none #10345a underline)',

];

Gerald MWiki (talkcontribs)

Having the same problem: I want to change colors of links.

I followed up into the code and I think link-settings are currently not possible to overwrite - I suppose that is not intended, so I hope for a fix if I am right.

There are several variables to accomplish color changes for links, such as link-color, cmln-link-format, cmln-link-formats. Btw. I think cmln-link-colors is completely useless.

But in the end all that counts is cmln-link-formats - and this variable together with link-color is set without the "!default" attribute in resources/styles/themes/_light.scss.

So whatever ist set in LocalSettings I fear it gets overwritten. Prove me wrong and I would be glad to learn a valid way to change link-color!

Reply to "Trouble setting egChameleonExternalStyleVariables using key, value below"