|This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.30.0. Please see ResourceLoader::getLessVars for an alternative way to use this feature.|
|Global LESS variables.
|Introduced in version:||1.22.0 (Gerrit change 78669; )|
|Deprecated in version:||1.30.0 (Gerrit change 366990; )|
|Removed in version:||still in use|
|Default value:||Se forneden|
|Other settings: Alphabetical | By function|
An associative array binding variable names to LESS code snippets representing their values.
Adding an item here is equivalent to writing
@variable: value; at the beginning of all your .less files, with all the consequences.
In particular, string values must be escaped and quoted.
Changes to this configuration do NOT trigger cache invalidation.
$wgResourceLoaderLESSVars = [ 'exampleFontSize' => '1em', 'exampleBlue' => '#eee', ];
$wgResourceLoaderLESSVars = [ /** * Minimum available screen width at which a device can be considered a tablet/desktop * The number is currently based on the device width of a Samsung Galaxy S5 mini and is low * enough to cover iPad (768px). Number is prone to change with new information. * @since 1.27 */ 'deviceWidthTablet' => '720px', ];