diff --git a/bundlesize.config.json b/bundlesize.config.json index 5c873b5..95b05fa 100644 --- a/bundlesize.config.json +++ b/bundlesize.config.json @@ -5,7 +5,7 @@ }, { "resourceModule": "skins.vector.styles", - "maxSize": "9.1 kB" + "maxSize": "9.2 kB" }, { "resourceModule": "skins.vector.styles.responsive", diff --git a/i18n/en.json b/i18n/en.json index e45a7fe..adec5ab 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -24,6 +24,7 @@ "vector-view-viewsource": "View source", "vector-jumptonavigation": "Jump to navigation", "vector-jumptosearch": "Jump to search", + "vector-jumptocontent": "Jump to content", "vector-more-actions": "More", "vector-search-loader": "Loading search suggestions" } diff --git a/i18n/qqq.json b/i18n/qqq.json index b6c1ec4..fb57216 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -35,6 +35,7 @@ "vector-view-viewsource": "Tab label in the Vector skin.\n{{Identical|View source}}", "vector-jumptonavigation": "Accessibility link for jumping to the navigation links. Visually hidden by default.\n\nSee also\n* {{msg-mw|Navigation}}", "vector-jumptosearch": "Accessibility link for jumping to the site search. Visually hidden by default.\n\nSee also\n* {{msg-mw|Search}}", + "vector-jumptocontent": "Accessibility link for jumping to the content and skipping the navigation. Visually hidden by default.", "vector-more-actions": "Label in the Vector skin's menu for the less-important or rarer actions which are not shown as tabs (like moving the page, or for sysops deleting or protecting the page), as well as (for users with a narrow viewing window in their browser) the less-important tab actions which the user's browser is unable to fit in. {{Identical|More}}", "vector-search-loader": "Text to display below search input while the search suggestion module is loading" } diff --git a/includes/templates/Header.mustache b/includes/templates/Header.mustache new file mode 100644 index 0000000..5eeb10c --- /dev/null +++ b/includes/templates/Header.mustache @@ -0,0 +1,22 @@ +
+ + {{^is-search-in-header}} +
+ {{#data-sidebar}}{{>Sidebar}}{{/data-sidebar}} +
+ {{/is-search-in-header}} + {{>Logo}} + {{#is-search-in-header}} + {{#data-search-box}}{{>SearchBox}}{{/data-search-box}} + {{#data-personal-menu}}{{>Menu}}{{/data-personal-menu}} + {{/is-search-in-header}} +
diff --git a/includes/templates/Navigation.mustache b/includes/templates/Navigation.mustache new file mode 100644 index 0000000..b437ec4 --- /dev/null +++ b/includes/templates/Navigation.mustache @@ -0,0 +1,21 @@ +
+

{{msg-navigation-heading}}

+
+ {{^is-search-in-header}} + {{#data-personal-menu}}{{>Menu}}{{/data-personal-menu}} + {{/is-search-in-header}} +
+
+ {{#data-namespace-tabs}}{{>Menu}}{{/data-namespace-tabs}} + {{#data-variants}}{{>Menu}}{{/data-variants}} +
+
+ {{#data-page-actions}}{{>Menu}}{{/data-page-actions}} + {{#data-page-actions-more}}{{>Menu}}{{/data-page-actions-more}} + {{^is-search-in-header}} + {{#data-search-box}}{{>SearchBox}}{{/data-search-box}} + {{/is-search-in-header}} +
+
+
+
diff --git a/includes/templates/skin.mustache b/includes/templates/skin.mustache index b9d0928..f74032c 100644 --- a/includes/templates/skin.mustache +++ b/includes/templates/skin.mustache @@ -12,6 +12,7 @@ string html-newtalk string msg-vector-jumptonavigation string msg-vector-jumptosearch + string msg-vector-jumptocontent string html-body-content string html-categories string html-after-content @@ -30,9 +31,14 @@ object data-footer for footer template partial. see Footer.mustache for documentation. }}
+ {{#is-search-in-header}} + {{msg-vector-jumptocontent}} + {{/is-search-in-header}}
+{{^is-search-in-header}}
+{{/is-search-in-header}} +{{#is-search-in-header}} +{{>Header}} +{{/is-search-in-header}} +
+ {{#is-search-in-header}} + {{#data-sidebar}}{{>Sidebar}}{{/data-sidebar}} + {{>Navigation}} + {{/is-search-in-header}}
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles. }} @@ -59,8 +73,10 @@ using this place to insert extra elements before. }}
+ {{^is-search-in-header}} {{msg-vector-jumptonavigation}} {{msg-vector-jumptosearch}} + {{/is-search-in-header}} {{{html-body-content}}} {{{html-categories}}}
@@ -69,48 +85,10 @@
{{! END mw-content-container }}
{{! END mw-workspace-container }} -
- -
- {{#data-sidebar}}{{>Sidebar}}{{/data-sidebar}} -
- {{>Logo}} - {{#is-search-in-header}} - {{#data-search-box}}{{>SearchBox}}{{/data-search-box}} - {{#data-personal-menu}}{{>Menu}}{{/data-personal-menu}} - {{/is-search-in-header}} -
- -
-

{{msg-navigation-heading}}

-
- {{^is-search-in-header}} - {{#data-personal-menu}}{{>Menu}}{{/data-personal-menu}} - {{/is-search-in-header}} -
-
- {{#data-namespace-tabs}}{{>Menu}}{{/data-namespace-tabs}} - {{#data-variants}}{{>Menu}}{{/data-variants}} -
-
- {{#data-page-actions}}{{>Menu}}{{/data-page-actions}} - {{#data-page-actions-more}}{{>Menu}}{{/data-page-actions-more}} - {{^is-search-in-header}} - {{#data-search-box}}{{>SearchBox}}{{/data-search-box}} - {{/is-search-in-header}} -
-
-
-
+{{^is-search-in-header}} +{{>Header}} +{{>Navigation}} +{{/is-search-in-header}}