mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-27 15:50:34 +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;
|
letter-spacing: 0.05em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__content-list {
|
||||||
|
margin: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
.mw-list-item {
|
.mw-list-item {
|
||||||
line-height: var( --line-height-xs );
|
line-height: var( --line-height-xs );
|
||||||
|
|
||||||
|
@ -48,11 +53,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
|
||||||
margin: 0;
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: This should not be here
|
// FIXME: This should not be here
|
||||||
|
|
|
@ -1,16 +1,8 @@
|
||||||
{{!
|
|
||||||
|
|
||||||
}}
|
|
||||||
<nav id="{{id}}" class="citizen-menu{{#class}} {{.}}{{/class}}" {{{html-tooltip}}} {{{html-userlangattributes}}}>
|
<nav id="{{id}}" class="citizen-menu{{#class}} {{.}}{{/class}}" {{{html-tooltip}}} {{{html-userlangattributes}}}>
|
||||||
{{#label}}
|
{{#label}}
|
||||||
<div class="citizen-menu__heading{{#label-class}} {{.}}{{/label-class}}">
|
<div class="citizen-menu__heading{{#label-class}} {{.}}{{/label-class}}">
|
||||||
{{{.}}}
|
{{{.}}}
|
||||||
</div>
|
</div>
|
||||||
{{/label}}
|
{{/label}}
|
||||||
{{{html-before-portal}}}
|
{{>MenuContents}}
|
||||||
<ul>
|
|
||||||
{{#array-list-items}}{{>MenuListItem}}{{/array-list-items}}
|
|
||||||
{{#html-items}}{{{.}}}{{/html-items}}
|
|
||||||
</ul>
|
|
||||||
{{{html-after-portal}}}
|
|
||||||
</nav>
|
</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