[MediaWiki-l] Can you override Less variables through MediaWiki:Vector.css?

Jonathan Aquilina eagles051387 at gmail.com
Sat Nov 22 05:41:13 UTC 2014


You would need to compile the LESS css. http://lesscss.org/

On Sat, Nov 22, 2014 at 4:51 AM, Adam Nielsen <a.nielsen at shikadi.net> wrote:

> Hi all,
>
> I'd like to change some colours in the Vector skin, but if I do this
> in CSS I will have to put hundreds of lines of code into
> MediaWiki:Vector.css.  It looks like the colours I want to change are
> defined as Less variables, so if I could just override those then it
> would be only a handful of lines.  I don't really want to clone the
> skin and modify the duplicate copy, because I will have to redo it on
> every upgrade to make sure I get the latest updates to the Vector skin.
>
> I tried putting the Less overrides in MediaWiki:Vector.css but it looks
> like this content gets included separately, so it can't override any
> Less variables.
>
> Is there any way to tweak the Less code via an article page in this
> manner, before it gets processed into CSS?
>
> Many thanks,
> Adam.
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>



-- 
Jonathan Aquilina


More information about the MediaWiki-l mailing list