view sat_templates/templates/bulma/dialogs/macros.html @ 289:f1a39607d6a5

bulma (base/base.html): `full_screen_body` parameter + body_wrapper: - if `full_screen_body` is set in template, the `body--fullscreen` class will be added to `<body>` element. It will then be a flexbox container (in columns), and displayed on the whole viewport. - new `body_wrapper` block, if a page needs to replace the `#body` container.
author Goffi <goffi@goffi.org>
date Mon, 28 Sep 2020 17:25:26 +0200
parents 2378084522e1
children
line wrap: on
line source

{# macros for generic dialogs #}

{% macro search_dialog(id=none, class='') %}
    <div{{ {'id': id}|xmlattr }} class="search_dialog dropdown is-active {{class}}">
        <div class="dropdown-trigger">
            {{ caller() }}
        </div>
        <div class="dropdown-menu" id="dropdown-menu" role="menu">
            <div class="search_dialog__content dropdown-content">
            </div>
        </div>
    </div>
{% endmacro %}