From d01b4eb02560ba67b61b1b2c0496e9f8281c154d Mon Sep 17 00:00:00 2001 From: m5o Date: Wed, 14 Mar 2018 16:44:38 +0100 Subject: Remove custom example plugin. (#25784) --- docs/4.0/components/dropdowns.md | 65 ++++++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 26 deletions(-) (limited to 'docs/4.0/components/dropdowns.md') diff --git a/docs/4.0/components/dropdowns.md b/docs/4.0/components/dropdowns.md index 137b2a726..417f816fb 100644 --- a/docs/4.0/components/dropdowns.md +++ b/docs/4.0/components/dropdowns.md @@ -30,7 +30,7 @@ Wrap the dropdown's toggle (your button or link) and the dropdown menu within `. Any single `.btn` can be turned into a dropdown toggle with some markup changes. Here's how you can put them to work with either ` -{% endexample %} +{% endcapture %} +{% include example.html content=example %} You can also create non-interactive dropdown items with `.dropdown-item-text`. Feel free to style further with custom CSS or text utilities. -{% example html %} +{% capture example %} -{% endexample %} +{% endcapture %} +{% include example.html content=example %} ### Active Add `.active` to items in the dropdown to **style them as active**. -{% example html %} +{% capture example %} -{% endexample %} +{% endcapture %} +{% include example.html content=example %} ### Disabled Add `.disabled` to items in the dropdown to **style them as disabled**. -{% example html %} +{% capture example %} -{% endexample %} +{% endcapture %} +{% include example.html content=example %} ## Menu alignment @@ -596,7 +602,7 @@ By default, a dropdown menu is automatically positioned 100% from the top and al {% endcapture %} {% include callout.html content=callout type="info" %} -{% example html %} +{% capture example %}
-{% endexample %} +{% endcapture %} +{% include example.html content=example %} ## Menu content @@ -615,19 +622,20 @@ By default, a dropdown menu is automatically positioned 100% from the top and al Add a header to label sections of actions in any dropdown menu. -{% example html %} +{% capture example %} -{% endexample %} +{% endcapture %} +{% include example.html content=example %} ### Dividers Separate groups of related menu items with a divider. -{% example html %} +{% capture example %} -{% endexample %} +{% endcapture %} +{% include example.html content=example %} ### Text Place any freeform text within a dropdown menu with text and use [spacing utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/spacing/). Note that you'll likely need additional sizing styles to constrain the menu width. -{% example html %} +{% capture example %} -{% endexample %} +{% endcapture %} +{% include example.html content=example %} ### Forms Put a form within a dropdown menu, or make it into a dropdown menu, and use [margin or padding utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/spacing/) to give it the negative space you require. -{% example html %} +{% capture example %} -{% endexample %} +{% endcapture %} +{% include example.html content=example %} ## Usage -- cgit v1.2.3