mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 23:55:53 +00:00
6777c5b1fe
Reduces the min-width to 340px with several changes at lower resolutions * collapses create account into dropdown * hides language button and user messages * The search component is updated to include a search toggle which can be used to hide and show the search input at lower resolutions - this leads to a slight HTML change with caching implications, it also moves away from a BEM usage which is not standard for this repository. * limits width of logo based on the dimensions we display in mobile Bug: T276566 Change-Id: I89d75843ca7e33e6de93af5d7c22e46b7249c4b7
23 lines
1,002 B
JavaScript
23 lines
1,002 B
JavaScript
/**
|
|
* @external SearchData
|
|
*/
|
|
|
|
import searchBoxTemplate from '!!raw-loader!../includes/templates/SearchBox.mustache';
|
|
import { htmlUserLanguageAttributes } from './utils';
|
|
|
|
export { searchBoxTemplate };
|
|
|
|
/**
|
|
* @type {SearchData}
|
|
*/
|
|
export const searchBoxData = {
|
|
'form-action': '/w/index.php',
|
|
class: 'vector-search-box vector-search-show-thumbnail',
|
|
'html-user-language-attributes': htmlUserLanguageAttributes,
|
|
'msg-search': 'Search',
|
|
'html-input': '<input type="search" name="search" placeholder="Search Wikipedia" title="Search Wikipedia [⌃⌥f]" accesskey="f" id="searchInput" autocomplete="off">',
|
|
'page-title': 'Special:Search',
|
|
'html-button-search-fallback': '<input type="submit" name="fulltext" value="Search" title="Search pages for this text" id="mw-searchButton" class="searchButton mw-fallbackSearchButton"/>',
|
|
'html-button-search': '<input type="submit" name="go" value="Go" title="Go to a page with this exact name if it exists" id="searchButton" class="searchButton">'
|
|
};
|