From 48263c3e0aee339b53cd76643aca9a91f8d8dc37 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Mon, 21 Dec 2015 15:49:10 -0800 Subject: [PATCH] Set threshold for is a tablet in LESS variable We need to centrally define our definition of a tablet device so we can consistently serve alternative mobile and tablet versions. As well as the two mentioned extensions in the see section, there are also instances in Gather, Vector, Metrolook and various other extensions that will benefit from this. See I257b3b34536 and I97d9600c839. Bug: T93675 Change-Id: Iefce83763da0cbd037a7ff889088b0da820220a0 --- includes/DefaultSettings.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index a22a29ddb7..00a5709e8d 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3688,7 +3688,15 @@ $wgResourceLoaderValidateStaticJS = false; * @endcode * @since 1.22 */ -$wgResourceLoaderLESSVars = array(); +$wgResourceLoaderLESSVars = array( + /** + * 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', +); /** * Default import paths for LESS modules. LESS files referenced in @import -- 2.20.1