comparison 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
comparison
equal deleted inserted replaced
311:c9396c3711e4 312:6411615771b6
1 {% import 'components/menu_labels.html' as ml with context %} 1 {% import 'components/menu_labels.html' as ml with context %}
2 {# we need to use "with context" to disable cache, needed for i18n #} 2 {# we need to use "with context" to disable cache, needed for i18n #}
3 3
4 {% macro menu(menus, class='') %} 4 {% macro menu(menus, class='has-background-primary') %}
5 <nav class="navbar has-background-primary"> 5 <nav class="navbar main_menu {{class}} {{'is-fixed-top' if menu_fixed_top}}">
6 <div class="navbar-brand"> 6 <div class="navbar-brand">
7 <a class="navbar-item" href="/"> 7 <a class="navbar-item" href="/">
8 <img src="{{media_path}}icons/apps/64/sat.png"> 8 <img src="{{media_path}}icons/apps/64/sat.png">
9 </a> 9 </a>
10 <a role="button" id="main_menu_burger" class="navbar-burger burger" data-target="main_menu"> 10 <a role="button" id="main_menu_burger" class="navbar-burger burger" data-target="main_menu">