]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add spacing helpers examples
authorJeremy Thomas <bbxdesign@gmail.com>
Sun, 7 Jun 2020 12:23:16 +0000 (13:23 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Sun, 7 Jun 2020 12:23:16 +0000 (13:23 +0100)
docs/documentation/helpers/spacing-helpers.html

index e60914c8c6b3f37a4c4eb323ba2eaaf73fbfc487..94130da766aeb0e53b472c3cde152ef5abceca1c 100644 (file)
@@ -62,7 +62,7 @@ customValues:
   </ul>
 
   <p>
-    You need to <strong>combine</strong> a margin/padding prefix with a direciton suffix. For example:
+    You need to <strong>combine</strong> a margin/padding prefix with a direction suffix. For example:
   </p>
 
   <ul>
@@ -107,6 +107,29 @@ customValues:
   vertical=page.vertical
 %}
 
+<div class="content">
+  <p>
+    To use these classes, simply append them to any HTML element:
+  </p>
+</div>
+
+{% highlight html %}
+<!-- Adds 1rem of margin at the bottom -->
+<p class="mb-4">
+  Margin bottom
+</p>
+
+<!-- Adds 0.25rem of padding on the left and the right -->
+<p class="px-1">
+  Horizontal padding
+</p>
+
+<!-- Removes the margin on the right and adds 0.75rem padding at the top -->
+<p class="mr-0 pt-3">
+  Both
+</p>
+{% endhighlight %}
+
 {% include elements/anchor.html name="Configuration" %}
 
 {% capture custom %}