Skip to content

Commit

Permalink
Add spacing helpers examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthms committed Jun 7, 2020
1 parent 4125514 commit 0430053
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion docs/documentation/helpers/spacing-helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</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>
Expand Down Expand Up @@ -107,6 +107,29 @@
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 %}
Expand Down

0 comments on commit 0430053

Please sign in to comment.