{% macro figure_layer(figure) %} {% set figure_style %}{% filter cull_whitespace %} {% if figure.opacity!=1 %}opacity: {{ figure.opacity }};{% endif %} {% if figure.color!=1 %}color: {{ figure.color }};{% endif %} transform: {% if figure.offset|any %}translate({{ figure.offset[0]*100 }}%, {{ figure.offset[1]*100 }}%){% endif %} {% if figure.rotation %}rotate({{ figure.rotation }}deg){% endif %} {% if figure.flip_x %}scaleX(-1){% endif %} {% if figure.flip_y %}scaleY(-1){% endif %} {% if figure.scale!=1 %}scale({{ figure.scale }}){% endif %} ; {% endfilter %}{% endset %}
{% if figure.type == "material-icons" %} {# https://material.io/icons/ #} {{ figure.name }} {% elif figure.type == "mdi" %} {# https://materialdesignicons.com/ #} {% elif figure.type == "fa" %} {# http://fontawesome.io/icons/ #} {% elif figure.type == "lnr" %} {# https://linearicons.com/free #} {% elif figure.type == "oi" %} {# https://useiconic.com/open #} {% elif figure.type == "svg" %} {# /cards/svg #} {% if figure.color == true %} {% elif figure.color %} {% else %} {% endif %} {% elif figure.type == "img" %} {# /cards/img #} {% if figure.color == true %} {% elif figure.color %} {% else %} {% endif %} {% endif %}
{% endmacro %}
{{ card.title }}
{% for figure in card.figures %} {{ figure_layer(figure) }} {% endfor %}
{% for cost in card.costs %}
{% if cost.split() | length == 2 and cost.split()[0].isnumeric() %} {{ cost.split()[0] }}
{{ cost.split()[1] }} {% else %} {{ cost }} {% endif %}
{% endfor %}
"{{ card.flavor }}"
{{ card.description | markdown | safe }}
{% if card.steps %} {% endif %}
{#
{{ card }}
#}