Manual:$wgResourceLoaderLESSVars

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgResourceLoaderLESSVars and the translation is 55% complete.

Other languages:
English • ‎dansk • ‎日本語
ResourceLoader: $wgResourceLoaderLESSVars
Global LESS variables.
導入されたバージョン:1.22.0 (Gerrit change 78669; git #Id052a04)
廃止予定になったバージョン:1.30.0 (Gerrit change 366990; git #I61cff1d)
除去されたバージョン:使用中
許容される値:(配列)
既定値:下記参照
その他の設定: アルファベット順 | 機能順

詳細

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',
];