Mercurial > libervia-templates
changeset 270:2378084522e1
bulma (dialogs): new `macros.html` with a search dialog
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Aug 2020 08:46:00 +0200 (2020-08-14) |
parents | edefc1f25219 |
children | dea66eead698 |
files | sat_templates/templates/bulma/dialogs/macros.html sat_templates/templates/bulma/static/styles.css |
diffstat | 2 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/dialogs/macros.html Fri Aug 14 08:46:00 2020 +0200 @@ -0,0 +1,13 @@ +{# 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 %}
--- a/sat_templates/templates/bulma/static/styles.css Fri Aug 14 08:34:07 2020 +0200 +++ b/sat_templates/templates/bulma/static/styles.css Fri Aug 14 08:46:00 2020 +0200 @@ -140,6 +140,14 @@ cursor: pointer; } +div.search_dialog.is-active>div.dropdown-menu { + display: none; +} + +div.search_dialog.open>div.dropdown-menu { + display: block; +} + /********** * panels * **********/