bulma/docs/_includes/variables.html

72 lines
1.8 KiB
HTML
Raw Normal View History

{% capture content %}
{% assign anchor_name = include.anchor_name | default: 'Variables' %}
{% assign tab = include.tab | default: page.doc-tab %}
{% assign subtab = include.subtab | default: page.doc-subtab %}
{% assign type = include.type | default: tab %}
{% assign data = include.data | default: site.data.variables[tab][subtab] %}
{% assign variables = include.variables | default: data.vars %}
{% assign table_class = include.table_class | default: 'is-bordered' %}
{% if include.custom_message %}
2017-12-04 21:03:01 +00:00
{{ include.custom_message }}
2017-12-04 21:03:01 +00:00
{% else %}
2017-12-04 21:03:01 +00:00
{% assign variables_link_text = "these variables" %}
2017-12-04 21:03:01 +00:00
{% capture variables_link %}
2017-12-04 21:03:01 +00:00
{% if data.file_url %}
2017-12-04 21:03:01 +00:00
<a href="{{ data.file_url }}" target="_blank">{{ variables_link_text }}</a>
2017-12-04 21:03:01 +00:00
{% else %}
2017-12-04 21:03:01 +00:00
{{ variables_link_text }}
2017-12-04 21:03:01 +00:00
{% endif %}
2017-12-04 21:03:01 +00:00
{% endcapture %}
2017-12-04 21:03:01 +00:00
You can use {{ variables_link | strip }} to <strong>customize</strong> this {{ type }}. Simply set one or multiple of these variables <em>before</em> importing Bulma. <a href="{{ site.url }}/documentation/overview/customize/">Learn how</a>.
2017-12-04 21:03:01 +00:00
{% endif %}
{% endcapture %}
{% include anchor.html name=anchor_name %}
2017-07-28 21:57:51 +00:00
<div class="content">
<p>{{ content | strip }}</p>
2017-07-28 21:57:51 +00:00
</div>
<table class="table {{ table_class }}">
2017-07-28 21:57:51 +00:00
<thead>
<tr>
<th>Name</th>
<th>Default value</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Name</th>
<th>Default value</th>
</tr>
</tfoot>
<tbody>
{% for variable_hash in variables %}
{% assign variable = variable_hash[1] %}
2017-07-28 21:57:51 +00:00
<tr>
2017-12-04 21:03:01 +00:00
<td >
<code style="white-space: nowrap;">{{ variable.name }}</code>
2017-07-28 21:57:51 +00:00
</td>
<td>
<code>{{ variable.value }}</code>
</td>
</tr>
{% endfor %}
</tbody>
</table>