mediawiki-extensions-Visual.../modules/ve-mw/ui/tools/ve.ui.MWMobileLinkInspectorTool.js
Ed Sanders ac9f1a0919 MobileArticleTarget: Give toolbar split focused/unfocused modes
Split the toolbar into two modes depending on if the surface is focused:
* When unfocused, show a hamburger containing back and source switch
* When focused, show editing tools, and a check button to unfocus

For the editing toolbar, space the tools out using table-cell layout
and hide labels below 480px.

Depends on I06813e3ff in core (surface blur method).

Bug: T93325
Change-Id: Ibf09cb29019d7a71e1e144b326710b1f6506cd0c
2015-08-06 15:43:36 -07:00

27 lines
767 B
JavaScript

/*!
* VisualEditor UserInterface MediaWiki MobileLinkInspectorTool classes.
*
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* UserInterface mobile link tool
*
* @class
* @extends ve.ui.MWLinkInspectorTool
*
* @constructor
* @param {OO.ui.ToolGroup} toolGroup
* @param {Object} [config] Configuration options
*/
ve.ui.MWMobileLinkInspectorTool = function VeUiMwMobileLinkInspectorTool() {
ve.ui.MWMobileLinkInspectorTool.super.apply( this, arguments );
};
OO.inheritClass( ve.ui.MWMobileLinkInspectorTool, ve.ui.MWLinkInspectorTool );
ve.ui.MWMobileLinkInspectorTool.static.displayBothIconAndLabel = true;
ve.ui.toolFactory.register( ve.ui.MWMobileLinkInspectorTool );