mirror of
https://github.com/jgthms/bulma
synced 2026-03-16 18:44:28 -07:00
Fix #3020: Add spacing helpers for all sides
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -12,6 +12,7 @@ shortcuts:
|
||||
margin: m
|
||||
padding: p
|
||||
directions:
|
||||
all: a
|
||||
top: t
|
||||
right: r
|
||||
bottom: b
|
||||
|
||||
Reference in New Issue
Block a user