mirror of
https://github.com/jgthms/bulma
synced 2026-03-16 18:44:28 -07:00
Fix input and file variables
This commit is contained in:
26
docs/_includes/elements/variable-row.html
Normal file
26
docs/_includes/elements/variable-row.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<tr>
|
||||
<td >
|
||||
<code style="white-space: nowrap;">{{ include.variable.name }}</code>
|
||||
</td>
|
||||
<td>
|
||||
<small>
|
||||
{% if include.variable.computed_type and include.variable.computed_type != include.variable.type %}
|
||||
{{ include.variable.computed_type }}
|
||||
{% else %}
|
||||
{{ include.variable.type }}
|
||||
{% endif %}
|
||||
</small>
|
||||
</td>
|
||||
<td>
|
||||
<code>{{ include.variable.value }}</code>
|
||||
</td>
|
||||
<td>
|
||||
{% if include.variable.computed_value != '' %}
|
||||
{% if include.variable.computed_type == 'color' %}
|
||||
{% include elements/color-square.html value=variable.computed_value %}
|
||||
{% elsif include.variable.computed_value and include.variable.computed_value != include.variable.value %}
|
||||
<code>{{ include.variable.computed_value }}</code>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user