diff sat_templates/templates/bulma/components/common.html @ 312:6411615771b6

bulma (base): menu can now be fixed on top with `menu_fixed_top` bool variable
author Goffi <goffi@goffi.org>
date Fri, 19 Mar 2021 15:51:26 +0100
parents 1743fd741fed
children 11ed664a309c
line wrap: on
line diff
--- a/sat_templates/templates/bulma/components/common.html	Fri Mar 19 15:49:51 2021 +0100
+++ b/sat_templates/templates/bulma/components/common.html	Fri Mar 19 15:51:26 2021 +0100
@@ -1,8 +1,8 @@
 {% import 'components/menu_labels.html' as ml with context %}
 {# we need to use "with context" to disable cache, needed for i18n #}
 
-{% macro menu(menus, class='') %}
-    <nav class="navbar has-background-primary">
+{% macro menu(menus, class='has-background-primary') %}
+    <nav class="navbar main_menu {{class}} {{'is-fixed-top' if menu_fixed_top}}">
         <div class="navbar-brand">
             <a class="navbar-item" href="/">
               <img src="{{media_path}}icons/apps/64/sat.png">