diff --git a/pages/_docs/alerts.md b/pages/_docs/alerts.md index 0e7792735..3b02c8e1a 100644 --- a/pages/_docs/alerts.md +++ b/pages/_docs/alerts.md @@ -8,72 +8,76 @@ done: true ### Default markup -description here - -22222 test mmmm 2222 - -{% example %} +{% capture code %} {% for variant in site.variants %} {% capture variant-text %} This is a {{ variant.name }} alert — check it out! {% endcapture %} {% include ui/alert.html type=variant.name text=variant-text %} {% endfor %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Alert Links Add the `alert-link` class to any links inside the alert box to create "matching colored links": -{% example %} +{% capture code %} {% for variant in site.variants %} {% capture variant-text %} This is a {{ variant.name }} alert — check it out! {% endcapture %} {% include ui/alert.html type=variant.name text=variant-text %} {% endfor %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Dismissible Alerts -{% example %} +{% capture code %} {% for variant in site.variants %} {% capture variant-text %} This is a {{ variant.name }} alert — check it out! {% endcapture %} {% include ui/alert.html type=variant.name text=variant-text close=true %} {% endfor %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Alerts with icons -{% example %} +{% capture code %} {% for variant in site.variants %} {% capture variant-text %} This is a {{ variant.name }} alert — check it out! {% endcapture %} {% include ui/alert.html type=variant.name icon=variant.icon text=variant-text %} {% endfor %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Alert with avatar -{% example %} + +{% capture code %} {% for variant in site.variants %} {% capture variant-text %} Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. {% endcapture %} {% include ui/alert.html type=variant.name text=variant-text person-id=forloop.index %} {% endfor %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Alert with buttons -{% example %} - {% capture variant-text %} + +{% capture code %} +{% capture variant-text %}
Lorem ipsum Minim ad pariatur eiusmod ea ut nulla aliqua est quis id dolore minim voluptate.
{% endcapture %} {% include ui/alert.html type='success' close=true text=variant-text buttons=true %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} diff --git a/pages/_docs/autosize.md b/pages/_docs/autosize.md index 058bb7787..79333e82d 100644 --- a/pages/_docs/autosize.md +++ b/pages/_docs/autosize.md @@ -7,7 +7,8 @@ done: true ### Default markup -{% example html %} +{% capture code %} {% include ui/form/textarea-autosize.html %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} diff --git a/pages/_docs/avatars.md b/pages/_docs/avatars.md index 4bc0f64bb..cfdf5a07b 100644 --- a/pages/_docs/avatars.md +++ b/pages/_docs/avatars.md @@ -7,110 +7,120 @@ done: true ### Default markup -{% example html wrapper=avatar-list %} +{% capture code %} {% include ui/avatar.html person-id=1 %} {% include ui/avatar.html person-id=2 %} {% include ui/avatar.html person-id=3 %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Avatar image Set an image as the background. -{% example html wrapper=avatar-list %} +{% capture code %} {% include ui/avatar.html person-id=1 %} {% include ui/avatar.html person-id=3 %} {% include ui/avatar.html person-id=4 %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Initials You can easily use initials instead of images. -{% example html wrapper=avatar-list %} +{% capture code %} {% include ui/avatar.html placeholder="AB" %} {% include ui/avatar.html placeholder="CD" %} {% include ui/avatar.html placeholder="EF" %} {% include ui/avatar.html placeholder="GH" %} {% include ui/avatar.html placeholder="IJ" %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Avatar icons You can also use icons in avatars. -{% example html wrapper=avatar-list %} +{% capture code %} {% include ui/avatar.html icon="user" %} {% include ui/avatar.html icon="plus" %} {% include ui/avatar.html icon="user-plus" %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Avatar initials color Customize the color of the avatars' background. You can click [here]({% docs_url colors %}) to see the list of available colors. -{% example html wrapper=avatar-list %} +{% capture code %} {% include ui/avatar.html placeholder="AB" color="green" %} {% include ui/avatar.html placeholder="CD" color="red" %} {% include ui/avatar.html placeholder="EF" color="yellow" %} {% include ui/avatar.html placeholder="GH" color="blue" %} {% include ui/avatar.html placeholder="IJ" color="purple" %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Avatar size Using Bootstrap’s typical naming structure, you can create a standard avatar, or scale it up to different sizes based on what’s needed. -{% example html wrapper=avatar-list %} +{% capture code %} {% include ui/avatar.html person-id=10 size="xl" %} {% include ui/avatar.html person-id=9 size="lg" %} {% include ui/avatar.html person-id=8 size="md" %} {% include ui/avatar.html person-id=7 %} {% include ui/avatar.html person-id=6 size="sm" %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Avatar status Add an online or offline status indicator to show user's availability. -{% example html wrapper=avatar-list %} +{% capture code %} {% include ui/avatar.html person-id=11 %} {% include ui/avatar.html person-id=12 status="danger" %} {% include ui/avatar.html person-id=13 status="success" %} {% include ui/avatar.html person-id=14 status="warning" %} {% include ui/avatar.html person-id=15 status="info" %} {% include ui/avatar.html person-id=16 status="gray" status-text="5" %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Avatar shape Change the shape of an avatar with the default Bootstrap image classes. -{% example html wrapper=avatar-list %} +{% capture code %} {% include ui/avatar.html person-id=17 %} {% include ui/avatar.html person-id=18 shape="rounded" %} {% include ui/avatar.html person-id=19 shape="rounded-circle" %} {% include ui/avatar.html person-id=20 shape="rounded-0" %} {% include ui/avatar.html person-id=21 shape="rounded-lg" %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Avatars list You can easily create a list of avatars. -{% example %} +{% capture code %} {% include ui/avatar-list.html %} -{% endexample %} +{% endcapture %} +{% include example.html code=code %} ### Stacked list Make the list stack when it reaches a certain length. -{% example %} +{% capture code %}