refactor(core): ♻️ wrap menu list in container

This commit is contained in:
alistair3149 2024-05-09 14:38:07 -04:00
parent da366a992a
commit 4c6ae1e74d
No known key found for this signature in database
3 changed files with 14 additions and 14 deletions

View file

@ -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

View file

@ -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>

View 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>