form-variables.html 977 B

1234567891011121314151617181920212223242526272829303132333435
  1. {% include elements/anchor.html name="Variables" %}
  2. <div class="content">
  3. <p>
  4. You can use <a href="{{ site.data.meta.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>.
  5. </p>
  6. </div>
  7. <table class="table is-bordered">
  8. <thead>
  9. <tr>
  10. <th>Name</th>
  11. <th>Default value</th>
  12. </tr>
  13. </thead>
  14. <tfoot>
  15. <tr>
  16. <th>Name</th>
  17. <th>Default value</th>
  18. </tr>
  19. </tfoot>
  20. <tbody>
  21. {% for key in page.variables_keys %}
  22. {% assign variable = site.data.variables.elements.form.vars[key] %}
  23. <tr>
  24. <td>
  25. <code>{{ variable.name }}</code>
  26. </td>
  27. <td>
  28. <code>{{ variable.value }}</code>
  29. </td>
  30. </tr>
  31. {% endfor %}
  32. </tbody>
  33. </table>