Commit 0a9cf0ce authored by Marc Ducobu's avatar Marc Ducobu
Browse files

Adaptable width for nav menu

parent b43ee26c
......@@ -18,8 +18,10 @@ html,body {
font-size: 1.5em;
}
ul.submenu.min-width {
min-width: 11em;
@each $len in 11, 15 {
ul.submenu.width-#{$len}-em {
min-width: #{$len}em;
}
}
.content {
......
......@@ -3739,9 +3739,12 @@ html, body {
.cf-subtitle {
font-size: 1.5em; }
ul.submenu.min-width {
ul.submenu.width-11-em {
min-width: 11em; }
ul.submenu.width-15-em {
min-width: 15em; }
.content {
padding-top: 1em;
padding-bottom: 1em;
......
<li class="nav-link more"><a href="javascript:void(0)">Sections</a>
<ul class="submenu min-width">
<ul class="submenu width-15-em">
{% for route in routes %}
<li><a href="{{ path(route.key, args ) }}">
{% spaceless %}
......
<li class="nav-link more"><a href="javascript:void(0)">{{ app.user.username }}</a>
<ul class="submenu min-width">
<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>
{% endfor %}
......
Supports Markdown
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