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,37 +3,24 @@ title: Input
layout: documentation
doc-tab: form
doc-subtab: input
variables:
- name: $input-color
value: $grey-darker
- name: $input-background-color
value: $white
- name: $input-border-color
value: $grey-lighter
- name: $input-shadow
value: inset 0 1px 2px rgba($black, 0.1)
- name: $input-hover-color
value: $grey-darker
- name: $input-hover-border-color
value: $grey-light
- name: $input-focus-color
value: $grey-darker
- name: $input-focus-border-color
value: $link
- name: $input-disabled-color
value: $text-light
- name: $input-disabled-background-color
value: $background
- name: $input-disabled-border-color
value: $background
- name: $input-arrow
value: $link
- name: $input-icon-color
value: $grey-lighter
- name: $input-icon-active-color
value: $grey
- name: $input-radius
value: $radius
variables_keys:
- input-color
- input-background-color
- input-border-color
- input-shadow
- input-hover-color
- input-hover-border-color
- input-focus-color
- input-focus-border-color
- input-focus-box-shadow-size
- input-focus-box-shadow-color
- input-disabled-color
- input-disabled-background-color
- input-disabled-border-color
- input-arrow
- input-icon-color
- input-icon-active-color
- input-radius
---
{% capture input_example %}
@@ -484,7 +471,41 @@ variables:
</div>
</div>
{% include variables.html element=true %}
{% include anchor.html name="Variables" %}
<div class="content">
<p>
You can use <a href="{{ site.github | append: '/blob/master/sass/elements/form.sass#L1,L23' }}" target="_blank">these variables</a> to <strong>customize</strong> this element. 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>
<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_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>