Commit 743b12dc authored by dj3c1t's avatar dj3c1t

css menus

parent 03614f39
......@@ -86,7 +86,6 @@ body {
font-weight: bold;
color: #333333;
display: block;
position: relative;
}
#sidebar ul.nav a:hover {
......@@ -97,13 +96,12 @@ body {
background-color: #f1f1f1;
}
ul.nav .glyphicon {
position: absolute;
top: 1em;
left: 0.5em;
ul.nav a .glyphicon {
float: left;
padding-top: 0.1em;
}
ul.nav .menu-label {
ul.nav a .menu-label {
display: block;
margin: 0 1em 0 2em;
color: #333333;
......
......@@ -5,15 +5,14 @@
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
Bienvenue {{ app.user.username }}
<span class="caret"></span>
<span class="menu-label">Bienvenue {{ app.user.username }} <span class="caret"></span></span>
</a>
<ul class="dropdown-menu">
{% if is_granted('ROLE_USER') %}
<li>
<a href="{{ path('account') }}">
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
Compte
<span class="menu-label">Compte</span>
</a>
</li>
{% endif %}
......@@ -21,7 +20,7 @@
<li>
<a href="{{ path('admin') }}">
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
Admin
<span class="menu-label">Admin</span>
</a>
</li>
{% endif %}
......@@ -29,7 +28,7 @@
<li>
<a href="{{ path('logout') }}">
<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
Déconnexion
<span class="menu-label">Déconnexion</span>
</a>
</li>
</ul>
......
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