diff --git a/pages/_docs/divider.md b/pages/_docs/divider.md index d50a9a4bf..588e6f5e2 100644 --- a/pages/_docs/divider.md +++ b/pages/_docs/divider.md @@ -6,20 +6,34 @@ done: true ### Default markup -{% example html max-width=300 %} -

- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab consequatur maxime quia reprehenderit tempore? -

-
Left divider
+{% example html columns=1 %}

Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!

-
Centered divider
+{% include ui/hr.html text="Left divider" %}

Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!

-
Right divider
+{% include ui/hr.html text="Centered divider" position="center" %} +

+ Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit! +

+{% include ui/hr.html text="Right divider" position="right" %}

Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!

{% endexample %} + +### Divider color + +Customize the color of the divider. You can click [here]({% docs_url colors %}) to see the list of available colors. + +{% example html columns=1 %} +

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex. +

+{% include ui/hr.html text="Green divider" color="green" %} +

+ Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit! +

+{% endexample %} diff --git a/pages/_includes/ui/hr.html b/pages/_includes/ui/hr.html new file mode 100644 index 000000000..b0357a25b --- /dev/null +++ b/pages/_includes/ui/hr.html @@ -0,0 +1 @@ +
{{ include.text | default: 'Label' }}