mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Improving menu integration
This commit is contained in:
parent
cd9cfa86a3
commit
135691f0fc
@ -19,16 +19,17 @@
|
||||
<li class="nav-link more"><a href="javascript:void(0)">Sections</a>
|
||||
<ul class="submenu width-15-em">
|
||||
{% for route in routes %}
|
||||
<li style="padding-top: 2px;">
|
||||
<a href="{{ path(route.key, args ) }}" style="background-color:transparent; display:block;">
|
||||
<div style="background-color: #333333; width: calc(100% - 4em - 1px); float: left; text-align:center; font-family: 'open_sanslight'; font-size: 0.75em; color: rgba(255, 255, 255, 0.5); border-bottom: 1px solid tansparent;">
|
||||
{{ route.label|trans }}</div>
|
||||
<div style="background-color: #333333; width: 3em; text-align:center;width: 2em; float: left; margin-left:1px; font-size:1.5em;">{% spaceless %}
|
||||
{% for icon in route.icons %}
|
||||
<i class="fa fa-{{ icon }}"></i>
|
||||
{% endfor %}
|
||||
{% endspaceless %}</div>
|
||||
</a>
|
||||
<li>
|
||||
<div style="margin-bottom:2px;">
|
||||
<div style="background-color: #333333;font-family: 'open_sanslight'; font-size: 0.75em; color: rgba(255, 255, 255, 0.5); text-align:center; height: 46px; display:inline-block; width: calc(100% - 5em - 1px); vertical-align:top;">
|
||||
<a href="{{ path(route.key, args ) }}" style="text-align:center; color:rgba(255, 255, 255, 0.5);">{{ route.label|trans }}</a>
|
||||
</div>
|
||||
<div style="background-color: #333333; text-align:center;width: 2em; margin-left:-0.15em; font-size:1.5em; color:#FFF; height: 46px; display:inline-block; vertical-align:top;">{% spaceless %}
|
||||
{% for icon in route.icons %}
|
||||
<i class="fa fa-{{ icon }}"></i>
|
||||
{% endfor %}
|
||||
{% endspaceless %}</div>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@ -17,13 +17,13 @@
|
||||
#}
|
||||
|
||||
<li class="nav-link more">
|
||||
<a href="javascript:void(0)">
|
||||
{{ 'Welcome' | trans }}
|
||||
<a href="javascript:void(0)" style="font-size: 0.8em; ;line-height: 17px; text-align: left;">
|
||||
<span style="font-family: 'open_sanslight'; ">{{ 'Welcome' | trans }}</span><br/>
|
||||
<b>{{ app.user.username }}</b>
|
||||
</a>
|
||||
<ul class="submenu width-11-em">
|
||||
{% for route in routes %}
|
||||
<li><a href="{{ path(route.key, args ) }}"><i class="fa fa-{{ route.icon }}"></i> {{ route.label|trans }}</a></li>
|
||||
<li><a href="{{ path(route.key, args ) }}" style="font-family: 'open_sanslight'; font-size: 0.9em;"><i class="fa fa-{{ route.icon }}"></i> {{ route.label|trans }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
Loading…
x
Reference in New Issue
Block a user