view sat_templates/templates/bulma/components/images.html @ 388:dc83f45625b3

bulma (file, components): fix color fo icons: icons have no color specified anymore for a while, and use the color of parent elements. As they are often used in a `<a>` element (to work without javascript), they are often using a link color. This commit change a few icons to use a dark color instead.
author Goffi <goffi@goffi.org>
date Sun, 10 Dec 2023 10:55:09 +0100
parents 0e69b5843c2f
children
line wrap: on
line source

{% macro get_icon_client(ident, class='is-64x64') %}
    {% if ident.client %}
        {% if ident.client.pc %}
            {{ icon('desktop', cls='image is-inline-block {}'.format(class)) }}
        {% elif ident.client.phone %}
            {{ icon('mobile', cls='image is-inline-block {}'.format(class)) }}
        {% elif ident.client.web %}
            {{ icon('globe', cls='image is-inline-block {}'.format(class)) }}
        {% elif ident.client.console %}
            {{ icon('terminal', cls='image is-inline-block {}'.format(class)) }}
        {% else %}
            {{ icon('desktop', cls='image is-inline-block {}'.format(class)) }}
        {% endif %}
    {% endif %}
{% endmacro %}