Fix #3020: Add spacing helpers for all sides

This commit is contained in:
Jeremy Thomas
2020-08-27 11:46:39 +02:00
parent 8c522b891b
commit 5e4bf5ed55
11 changed files with 619 additions and 16 deletions

View File

@@ -17,13 +17,23 @@
<tbody>
{% for shortcut in include.shortcuts %}
{% for direction in include.directions %}
<tr>
<td><code>{{ shortcut[0] }}-{{ direction[0] }}</code></td>
<td><code>{{ shortcut[1] }}{{ direction[1] }}</code></td>
{% for value in include.values %}
<td><code>{{ shortcut[1] }}{{ direction[1] }}-{{ value[0] }}</code></td>
{% endfor %}
</tr>
{% if direction[0] == 'all' %}
<tr>
<td><code>{{ shortcut[0] }}</code></td>
<td><code>{{ shortcut[1] }}</code></td>
{% for value in include.values %}
<td><code>{{ shortcut[1] }}-{{ value[0] }}</code></td>
{% endfor %}
</tr>
{% else %}
<tr>
<td><code>{{ shortcut[0] }}-{{ direction[0] }}</code></td>
<td><code>{{ shortcut[1] }}{{ direction[1] }}</code></td>
{% for value in include.values %}
<td><code>{{ shortcut[1] }}{{ direction[1] }}-{{ value[0] }}</code></td>
{% endfor %}
</tr>
{% endif %}
{% endfor %}
<tr>

View File

@@ -12,6 +12,7 @@ shortcuts:
margin: m
padding: p
directions:
all: a
top: t
right: r
bottom: b