kfetcms: Update the fixtures and fix the navbar behaviour due to a longer menu

This commit is contained in:
Tom Hubrecht 2022-10-03 10:22:32 +02:00
parent 69de48f285
commit 85e30056a6
4 changed files with 695 additions and 12 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,3 +1,40 @@
/* Navbar hacks -------------------- */
.visible-xl,
.visible-xl-block,
.visible-xl-inline,
.visible-xl-inline-block {
display: none !important;
}
@media (min-width: 1415px) {
.visible-xl {
display: block !important;
}
table.visible-xl {
display: table !important;
}
tr.visible-xl {
display: table-row !important;
}
th.visible-xl,
td.visible-xl {
display: table-cell !important;
}
.visible-xl-block {
display: block !important;
}
.visible-xl-inline {
display: inline !important;
}
.visible-xl-inline-block {
display: inline-block !important;
}
}
/* Global layout ------------------- */ /* Global layout ------------------- */
.main-col, .fixed-col { .main-col, .fixed-col {

View file

@ -32,20 +32,20 @@
</li> </li>
{% for item in menu_items %} {% for item in menu_items %}
{% if item.text == "Accueil" %} {% if item.text == "Accueil" %}
<li class="{{ item.active_class }} hidden-xs hidden-sm"> <li class="{{ item.active_class }} hidden-xs hidden-sm hidden-md">
<a href="{{ item.href }}" title="Accueil"> <a href="{{ item.href }}" title="Accueil">
<span class="glyphicon glyphicon-home"></span> <span class="glyphicon glyphicon-home"></span>
</a> </a>
</li> </li>
{% else %} {% else %}
<li class="{{ item.active_class }} hidden-xs hidden-sm"> <li class="{{ item.active_class }} hidden-xs hidden-sm hidden-md">
<a href="{{ item.href }}"> <a href="{{ item.href }}">
{{ item.text }} {{ item.text }}
</a> </a>
</li> </li>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<li class="dropdown visible-xs visible-sm nav-pages"> <li class="dropdown visible-xs visible-sm visible-md nav-pages">
<a href="#" data-toggle="dropdown" roles="button" aria-haspopup="true" aria-expanded="false" class="navbar-toggle"> <a href="#" data-toggle="dropdown" roles="button" aria-haspopup="true" aria-expanded="false" class="navbar-toggle">
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>

View file

@ -11,7 +11,7 @@
--><span class="glyphicon glyphicon-{{ glyphicon }}"></span><!-- --><span class="glyphicon glyphicon-{{ glyphicon }}"></span><!--
{% endif %} {% endif %}
{% if text %} {% if text %}
--><span class="visible-lg-inline">{{ text }}</span><!-- --><span class="visible-xl-inline">{{ text }}</span><!--
{% endif %} {% endif %}
--> -->
{% if href %} {% if href %}