{# TREND ARROW (#319) — a change's direction, drawn as a shape rather than a glyph, so it never depends on the faces Outlook falls back to. Every other client draws a zero-size span's borders: two transparent sides and a coloured base make the triangle, a top border alone the flat bar. The Word engine draws neither a transparent border nor an inline-block's width, so it takes a VML shape instead, the CTA's route. The base is 1.2 times the height; the flat bar's 2px is a shape, like a rule. arrow(direction, ink) — direction is "up", "down" or "flat"; ink a hex. connector(direction, ink) — the same shape at the connector's size, between two slots of a row (#399): "right", or "down" where the row stacks. It is `connector` long, the space between two slots, and four fifths of that across its base. word=False drops the VML and the conditional, for a copy already inside one. #} {% macro arrow(direction, ink) -%} {%- set tall = size.component.trend_arrow -%}{%- set half = (tall * 0.6) | round | int -%}   {%- endmacro %} {% macro connector(direction, ink, word=True) -%} {%- set long = size.component.connector -%}{%- set half = (long * 0.4) | round | int -%} {%- if word %}{% endif %}{% if word %}{% endif %} {%- endmacro %}