{# Storefront building blocks (monograms, badges, chips, feather icons). All styling lives in skin_store.css (splent_feature_skin_store). #} {% macro icon(name, size=16) -%} {%- endmacro %} {# An icon that closes a link ("Read the guide" and its arrow). A no-break space glued to the icon inside a span that never wraps keeps the icon on the line of the last word: a plain space, or even a bare no-break space, still let the browser push the icon alone onto the next line. #} {% macro trailing_icon(name, size=13) -%} {{ icon(name, size) }} {%- endmacro %} {% macro monogram(short, large=false) -%} {%- endmacro %} {% macro archetype_badge(archetype) -%} {%- if archetype %}{{ archetype }}{% endif -%} {%- endmacro %} {% macro version_pill(feature) -%} v{{ feature.project_version or feature.version or "0.0.0" }} {%- endmacro %} {% macro feature_chip(short, external=false) -%} {%- if external -%} {{ short }}{{ _("external") }} {%- else -%} {{ short }} {%- endif -%} {%- endmacro %} {# The Copy button of a command block: it copies the text of the element whose id it names, through the framework's data-copy-target. #} {% macro copy_button(target, label=none) -%} {%- endmacro %} {# A row of feature chips under a label, inside a .store-contract box. #} {% macro chip_row(label, shorts, known=none) -%} {% if shorts %}
{{ item }}{% endfor %}