mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-18 01:00:52 +00:00
refactor(core): ♻️ wrap menu list in container
This commit is contained in:
parent
da366a992a
commit
4c6ae1e74d
|
@ -11,6 +11,11 @@
|
|||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
&__content-list {
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.mw-list-item {
|
||||
line-height: var( --line-height-xs );
|
||||
|
||||
|
@ -48,11 +53,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: This should not be here
|
||||
|
|
|
@ -1,16 +1,8 @@
|
|||
{{!
|
||||
|
||||
}}
|
||||
<nav id="{{id}}" class="citizen-menu{{#class}} {{.}}{{/class}}" {{{html-tooltip}}} {{{html-userlangattributes}}}>
|
||||
{{#label}}
|
||||
<div class="citizen-menu__heading{{#label-class}} {{.}}{{/label-class}}">
|
||||
{{{.}}}
|
||||
</div>
|
||||
{{/label}}
|
||||
{{{html-before-portal}}}
|
||||
<ul>
|
||||
{{#array-list-items}}{{>MenuListItem}}{{/array-list-items}}
|
||||
{{#html-items}}{{{.}}}{{/html-items}}
|
||||
</ul>
|
||||
{{{html-after-portal}}}
|
||||
{{>MenuContents}}
|
||||
</nav>
|
8
templates/MenuContents.mustache
Normal file
8
templates/MenuContents.mustache
Normal file
|
@ -0,0 +1,8 @@
|
|||
<div class="citizen-menu__content">
|
||||
{{{html-before-portal}}}
|
||||
<ul class="citizen-menu__content-list">
|
||||
{{#array-list-items}}{{>MenuListItem}}{{/array-list-items}}
|
||||
{{#html-items}}{{{.}}}{{/html-items}}
|
||||
</ul>
|
||||
{{{html-after-portal}}}
|
||||
</div>
|
Loading…
Reference in a new issue