mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-18 02:40:34 +00:00
703903daac
Going into the new version of Vector, we'll want to rewrite the layout rules entirely and decouple the sidebar from the logo. To prepare for this we will move the layout file into a legacy folder. We also separate Sidebar styles needed for the legacy mode from the old mode. This will allow us to make changes to the header in new Vector without having to touch or test the legacy codebase via a new file layout.less and using the existing sidebar code. Bug: T246170 Change-Id: Ieb4f8f2b2f0e4f48d76a210ab30acd08e3e83bcb
26 lines
879 B
Plaintext
26 lines
879 B
Plaintext
{{!
|
|
@typedef object emphasized-sidebar-action
|
|
@prop string href
|
|
@prop string text
|
|
|
|
string html-logo-attributes for site logo. Must be used inside tag e.g. `class="logo" lang="en-gb"`
|
|
array array-portals contains options for Portal template
|
|
emphasized-sidebar-action data-emphasized-sidebar-action For displaying an emphasized action in the sidebar.
|
|
@prop boolean has-logo whether to show a logo or not.
|
|
}}
|
|
|
|
<div id="mw-panel">
|
|
{{#has-logo}}
|
|
<div id="p-logo" role="banner">
|
|
<a {{{html-logo-attributes}}}></a>
|
|
</div>
|
|
{{/has-logo}}
|
|
{{#array-portals-first}}{{>Portal}}{{/array-portals-first}}
|
|
{{#data-emphasized-sidebar-action}}
|
|
<div class="vector-emphasized-sidebar-action">
|
|
<a class="vector-emphasized-sidebar-action-link" href="{{href}}">{{text}}</a>
|
|
</div>
|
|
{{/data-emphasized-sidebar-action}}
|
|
{{#array-portals-rest}}{{>Portal}}{{/array-portals-rest}}
|
|
</div>
|