mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
d49eb1e0ff
The opt in link is part of the sidebar in the current modern version of vector. The legacy sidebar has been split out and frozen. For this reason I think it makes sense to move the styles for the button into the sidebar stylesheet. The class name is renamed to reflect the hierarchy. We are not using BEM but we are using hyphens to describe location so the newly proposed names `mw-sidebar` and `mw-sidebar-action` seem more applicable than the previous generic class names. This doesn't impact caching given anonymous users cannot see the opt in/out link. Change-Id: I2991e941592a0678f40c73bb6daeab71ada6b7c3
21 lines
731 B
Plaintext
21 lines
731 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"`
|
|
MenuDefinition data-portals-first
|
|
MenuDefinition[] array-portals-rest
|
|
emphasized-sidebar-action data-emphasized-sidebar-action For displaying an emphasized action in the sidebar.
|
|
}}
|
|
|
|
<div id="mw-panel" class="mw-sidebar">
|
|
{{#data-portals-first}}{{>Menu}}{{/data-portals-first}}
|
|
{{#data-emphasized-sidebar-action}}
|
|
<div class="mw-sidebar-action">
|
|
<a class="mw-sidebar-action-link" title="{{title}}" href="{{href}}">{{text}}</a>
|
|
</div>
|
|
{{/data-emphasized-sidebar-action}}
|
|
{{#array-portals-rest}}{{>Menu}}{{/array-portals-rest}}
|
|
</div>
|