]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Fix form controls docs
authorJeremy Thomas <bbxdesign@gmail.com>
Mon, 14 Oct 2019 01:00:52 +0000 (02:00 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Fri, 18 Oct 2019 00:51:42 +0000 (20:51 -0400)
CHANGELOG.md
docs/_posts/2019-10-15-light-dark-colors.md
docs/documentation/form/general.html

index 369d9eb60c56abe36a65e6e7bb75c932395010ef..00f04f6b493f30dc7a1b4b8f883624c549235e87 100644 (file)
@@ -4,7 +4,7 @@
 
 ### Big update
 
-#### Larger controls
+#### Larger form controls
 
 Controls and buttons are now `2.5em` high. You can revert this resizing by setting these previous values:
 
index 5fa9809f2404d8c66ed8571d582611b2fa77f2ac..a3786fd6b4f648f46bc9c91854f8ab4620e71d8b 100644 (file)
@@ -1,5 +1,5 @@
 ---
-title: "Light and Dark colors, better look, larger buttons, panel colors, and more"
+title: "Light and Dark colors, better look, larger form controls, panel colors, and more"
 layout: post
 introduction: "A big update for more colors and flexibility"
 color: "primary"
@@ -13,6 +13,7 @@ The new version **[Bulma 0.8.0](#)** is out! ðŸ˜ƒ It comes with several bug fixe
 * [Light/Dark colors](#light-dark-colors)
 * [Better visual look](#better-visual-look)
 * [Panel colors](#panel-colors)
+* [Larger form controls](#larger-form-controls)
 * [4-value color map](#4-value-color-map)
 * [Scheme variables for "Dark mode"](#scheme-variables-for-dark-mode)
 
@@ -115,6 +116,19 @@ The <strong>shadows</strong> of the <code>box</code> and <code>card</code> have
   </a>
 </div>
 
+{% include elements/anchor.html name="Larger form controls" %}
+
+Form controls and buttons are now `2.5em` high. You can revert this resizing by setting these previous values:
+
+```sass
+$control-height: 2.25em
+$control-padding-vertical: calc(0.375em - #{$control-border-width})
+$control-padding-horizontal: calc(0.625em - #{$control-border-width})
+
+$button-padding-vertical: calc(0.375em - #{$button-border-width})
+$button-padding-horizontal: 0.75em
+```
+
 {% include elements/anchor.html name="4-value color map" %}
 
 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.
index be0b87910014e7db2ce9a79310899cb2c2be7c7d..c72d7ffb356022ddd07842eb41a3f24bcbfa70e9 100644 (file)
@@ -843,30 +843,6 @@ variables_keys:
 
 {% include elements/snippet.html content=example more=true %}
 
-{% include elements/anchor.html name="Form control" %}
-
-<div class="content">
-  <p>
-    The <code>control</code> element is a wrapper for form controls. It gives the possibility to:
-  </p>
-  <ul>
-    <li>
-      resize form controls
-    </li>
-    <li>
-      combine form controls into a group
-    </li>
-    <li>
-      combine form controls into a list
-    </li>
-    <li>
-      append and prepend icons to a form control
-    </li>
-  </ul>
-</div>
-
-{% include elements/snippet.html content=control_example %}
-
 <div class="content">
   <p>
     For the best results using Bulma, it's recommended to use the <code>control</code> element as often as possible.
@@ -895,13 +871,33 @@ variables_keys:
 {% include elements/anchor.html name="Form control" %}
 
 <div class="content">
-  <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>
+  <p>
+    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:
+  </p>
+
   <ul>
     <li><code>input</code></li>
     <li><code>select</code></li>
     <li><code>button</code></li>
     <li><code>icon</code></li>
   </ul>
+  <p>
+    This container gives the ability to:
+  </p>
+  <ul>
+    <li>
+      keep the <strong>spacing</strong> consistent
+    </li>
+    <li>
+      combine form controls into a <strong>group</strong>
+    </li>
+    <li>
+      combine form controls into a <strong>list</strong>
+    </li>
+    <li>
+      append and prepend <strong>icons</strong> to a form control
+    </li>
+  </ul>
 </div>
 
 {% include elements/snippet.html content=control_input_example %}