Skip to content

Commit 9a28ea1

Browse files
committed
Fix form controls docs
1 parent 7b35fd0 commit 9a28ea1

File tree

3 files changed

+37
-27
lines changed

3 files changed

+37
-27
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Big update
66

7-
#### Larger controls
7+
#### Larger form controls
88

99
Controls and buttons are now `2.5em` high. You can revert this resizing by setting these previous values:
1010

docs/_posts/2019-10-15-light-dark-colors.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Light and Dark colors, better look, larger buttons, panel colors, and more"
2+
title: "Light and Dark colors, better look, larger form controls, panel colors, and more"
33
layout: post
44
introduction: "A big update for more colors and flexibility"
55
color: "primary"
@@ -13,6 +13,7 @@ The new version **[Bulma 0.8.0](#)** is out! 😃 It comes with several bug fixe
1313
* [Light/Dark colors](#light-dark-colors)
1414
* [Better visual look](#better-visual-look)
1515
* [Panel colors](#panel-colors)
16+
* [Larger form controls](#larger-form-controls)
1617
* [4-value color map](#4-value-color-map)
1718
* [Scheme variables for "Dark mode"](#scheme-variables-for-dark-mode)
1819

@@ -115,6 +116,19 @@ The <strong>shadows</strong> of the <code>box</code> and <code>card</code> have
115116
</a>
116117
</div>
117118

119+
{% include elements/anchor.html name="Larger form controls" %}
120+
121+
Form controls and buttons are now `2.5em` high. You can revert this resizing by setting these previous values:
122+
123+
```sass
124+
$control-height: 2.25em
125+
$control-padding-vertical: calc(0.375em - #{$control-border-width})
126+
$control-padding-horizontal: calc(0.625em - #{$control-border-width})
127+
128+
$button-padding-vertical: calc(0.375em - #{$button-border-width})
129+
$button-padding-horizontal: 0.75em
130+
```
131+
118132
{% include elements/anchor.html name="4-value color map" %}
119133

120134
The `$colors` Sass map now accepts, for each of its values, a map of up to **4** values. For example: the key `"info"` now has the `($info, $info-invert, $info-light, $info-dark)` map.

docs/documentation/form/general.html

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -843,30 +843,6 @@
843843

844844
{% include elements/snippet.html content=example more=true %}
845845

846-
{% include elements/anchor.html name="Form control" %}
847-
848-
<div class="content">
849-
<p>
850-
The <code>control</code> element is a wrapper for form controls. It gives the possibility to:
851-
</p>
852-
<ul>
853-
<li>
854-
resize form controls
855-
</li>
856-
<li>
857-
combine form controls into a group
858-
</li>
859-
<li>
860-
combine form controls into a list
861-
</li>
862-
<li>
863-
append and prepend icons to a form control
864-
</li>
865-
</ul>
866-
</div>
867-
868-
{% include elements/snippet.html content=control_example %}
869-
870846
<div class="content">
871847
<p>
872848
For the best results using Bulma, it's recommended to use the <code>control</code> element as often as possible.
@@ -895,13 +871,33 @@
895871
{% include elements/anchor.html name="Form control" %}
896872

897873
<div class="content">
898-
<p>The <code>control</code> is a versatile container meant to <strong>enhance single form controls</strong>. Because it has the same height as a control elements, it can <strong class="has-text-danger">only contain</strong> the following elements:</p>
874+
<p>
875+
The Bulma <code>control</code> is a versatile <strong>block</strong> container meant to <strong>enhance single form controls</strong>. Because it has the same height as the element that it wraps, it can <strong class="has-text-danger">only contain</strong> the following Bulma elements:
876+
</p>
877+
899878
<ul>
900879
<li><code>input</code></li>
901880
<li><code>select</code></li>
902881
<li><code>button</code></li>
903882
<li><code>icon</code></li>
904883
</ul>
884+
<p>
885+
This container gives the ability to:
886+
</p>
887+
<ul>
888+
<li>
889+
keep the <strong>spacing</strong> consistent
890+
</li>
891+
<li>
892+
combine form controls into a <strong>group</strong>
893+
</li>
894+
<li>
895+
combine form controls into a <strong>list</strong>
896+
</li>
897+
<li>
898+
append and prepend <strong>icons</strong> to a form control
899+
</li>
900+
</ul>
905901
</div>
906902

907903
{% include elements/snippet.html content=control_input_example %}

0 commit comments

Comments
 (0)