Add Flexbox helpers documentation

This commit is contained in:
Jeremy Thomas
2020-09-27 11:29:35 +01:00
parent 8ee5898d47
commit 3d61f41fea
10 changed files with 557 additions and 80 deletions

View File

@@ -13,11 +13,6 @@
</a>
<a class="bd-category-name {% if category_id == current_link_id %}is-active{% endif %}" href="{{ site.url }}{{ category_link.path }}">
<strong>{{ category_link.name }}</strong>
{% if category_link.name == 'Helpers' %}
<span class="tag bd-mini-tag is-primary">
New!
</span>
{% endif %}
</a>
</header>
@@ -27,6 +22,11 @@
<li {% if link_id == current_link_id %}class="is-current"{% endif %}>
<a href="{{ site.url }}{{ link.path }}">
{{ link.name }}
{% if link.new %}
<span class="ml-1 tag bd-mini-tag is-primary">
New!
</span>
{% endif %}
</a>
</li>
{% endfor %}

View File

@@ -22,6 +22,7 @@
icon=link.icon
name=link.name
subtitle=link.subtitle
new=link.new
%}
{% endfor %}
</nav>

View File

@@ -0,0 +1,16 @@
<table class="table is-bordered">
<thead>
<tr>
<th>Class</th>
<th>Property: Value</th>
</tr>
</thead>
<tbody>
{% for value in include.values %}
<tr>
<td><code>is-{{ include.property }}-{{ value }}</code></td>
<td><code>{{ include.property }}: {{ value }}</code></td>
</tr>
{% endfor %}
</tbody>
</table>

View File

@@ -14,6 +14,11 @@
<span class="bd-link-counter"></span>
{% endif %}
</figure>
{% if include.new %}
<span style="float: right;" class="ml-2 tag is-primary">
New!
</span>
{% endif %}
{{ include.name }}
</h2>
<p class="bd-link-subtitle">