Commit 03614f39 authored by dj3c1t's avatar dj3c1t

css menu

parent 3f24b1f9
......@@ -85,6 +85,8 @@ body {
border-bottom: solid 1px #e5e5e5;
font-weight: bold;
color: #333333;
display: block;
position: relative;
}
#sidebar ul.nav a:hover {
......@@ -96,7 +98,15 @@ body {
}
ul.nav .glyphicon {
padding-right: 1em;
position: absolute;
top: 1em;
left: 0.5em;
}
ul.nav .menu-label {
display: block;
margin: 0 1em 0 2em;
color: #333333;
}
/* ------------------------------------------------------------- */
......
......@@ -31,14 +31,14 @@
{% endif %}
<li{% if active %} class="active"{% endif %}>
{% if item['parameters'] is defined %}
<a href="{{ path(item['route'], item['parameters']) }}">
<a href="{{ path(item['route'], item['parameters']) }}"{% if item['class'] is defined %} class="{{ item['class'] }}"{% endif %}>
{% else %}
<a href="{{ path(item['route']) }}">
<a href="{{ path(item['route']) }}"{% if item['class'] is defined %} class="{{ item['class'] }}"{% endif %}>
{% endif %}
{% if item['glyphicon'] is defined %}
<span class="glyphicon {{ item['glyphicon'] }}" aria-hidden="true"></span>
{% endif %}
{{ item['label'] }}
<span class="menu-label">{{ item['label'] }}</span>
</a>
</li>
{% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment