Docs/variables data (#1314)

* Replace variables.json with colors.json and update related files accordingly

* Add variables data files

* Update variables include template and all related files to use new variables data

* Fix mobile breakpoint id typo in responsivness docs page

* Fix Liquid syntax error in made-with-bulma docs page

* Update bulma sass files count in modular docs page

* Use breakpoints data in responsiveness helpers docs page

* Use breakpoints and variables data in typography helpers docs page

* Add missing page titles in docs pages front matter
This commit is contained in:
bstashio
2017-10-17 12:28:59 +03:00
committed by Jeremy Thomas
parent e4fd1b7579
commit 1523ce8527
65 changed files with 2736 additions and 1158 deletions

View File

@@ -3,21 +3,15 @@ title: Form controls
layout: documentation
doc-tab: form
doc-subtab: general
variables:
- name: $control-radius
value: $radius
- name: $control-radius-small
value: $radius-small
- name: $control-padding-vertical
value: calc(0.375em - 1px)
- name: $control-padding-horizontal
value: calc(0.625em - 1px)
- name: $label-color
value: $grey-darker
- name: $label-weight
value: $weight-bold
- name: $help-size
value: $size-small
variables_controls_keys:
- control-radius
- control-radius-small
- control-padding-vertical
- control-padding-horizontal
variables_form_keys:
- label-color
- label-weight
- help-size
---
{% capture example %}
@@ -1027,10 +1021,53 @@ variables:
</div>
{% include snippet.html content=field_label_example horizontal=true more=true %}
{% include anchor.html name="Variables" %}
{% capture custom_message %}Form elements can be <strong>customized</strong> using the following generic variables. Simply set one or multiple of these variables <em>before</em> importing Bulma. <a href="{{ site.url }}/documentation/overview/customize/">Learn how</a>.{% endcapture %}
<div class="content">
<p>
Form elements can be <strong>customized</strong> using the following generic variables. Simply set one or multiple of these variables <em>before</em> importing Bulma. <a href="{{ site.url }}/documentation/overview/customize/">Learn how</a>.
</p>
</div>
{% include variables.html custom_message = custom_message %}
<table class="table is-bordered">
<thead>
<tr>
<th>Name</th>
<th>Default value</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Name</th>
<th>Default value</th>
</tr>
</tfoot>
<tbody>
{% for key in page.variables_controls_keys %}
{% assign variable = site.data.variables.utilities.controls.vars[key] %}
<tr>
<td>
<code>{{ variable.name }}</code>
</td>
<td>
<code>{{ variable.value }}</code>
</td>
</tr>
{% endfor %}
{% for key in page.variables_form_keys %}
{% assign variable = site.data.variables.elements.form.vars[key] %}
<tr>
<td>
<code>{{ variable.name }}</code>
</td>
<td>
<code>{{ variable.value }}</code>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</section>