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/utilities/flex.md | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) (limited to 'docs/4.0/utilities/flex.md') diff --git a/docs/4.0/utilities/flex.md b/docs/4.0/utilities/flex.md index dabf2149d..2a2dec02a 100644 --- a/docs/4.0/utilities/flex.md +++ b/docs/4.0/utilities/flex.md @@ -10,13 +10,15 @@ toc: true Apply `display` utilities to create a flexbox container and transform **direct children elements** into flex items. Flex containers and items are able to be modified further with additional flex properties. -{% example html %} +{% capture example %}
I'm a flexbox container!
-{% endexample %} +{% endcapture %} +{% include example.html content=example %} -{% example html %} +{% capture example %}
I'm an inline flexbox container!
-{% endexample %} +{% endcapture %} +{% include example.html content=example %} Responsive variations also exist for `.d-flex` and `.d-inline-flex`. @@ -30,7 +32,7 @@ Set the direction of flex items in a flex container with direction utilities. In Use `.flex-row` to set a horizontal direction (the browser default), or `.flex-row-reverse` to start the horizontal direction from the opposite side. -{% example html %} +{% capture example %}
Flex item 1
Flex item 2
@@ -41,11 +43,12 @@ Use `.flex-row` to set a horizontal direction (the browser default), or `.flex-r
Flex item 2
Flex item 3
-{% endexample %} +{% endcapture %} +{% include example.html content=example %} Use `.flex-column` to set a vertical direction, or `.flex-column-reverse` to start the vertical direction from the opposite side. -{% example html %} +{% capture example %}
Flex item 1
Flex item 2
@@ -56,7 +59,8 @@ Use `.flex-column` to set a vertical direction, or `.flex-column-reverse` to st
Flex item 2
Flex item 3
-{% endexample %} +{% endcapture %} +{% include example.html content=example %} Responsive variations also exist for `flex-direction`. @@ -217,13 +221,14 @@ Responsive variations also exist for `align-self`. Use the `.flex-fill` class on a series of sibling elements to force them into equal widths while taking up all available horizontal space. [Especially useful for equal-width, or justified, navigation.]({{ site.baseurl }}/docs/{{ site.docs_version }}/components/navs/#working-with-flex-utilities) -{% example html %} +{% capture example %}
Flex item
Flex item
Flex item
-{% endexample %} +{% endcapture %} +{% include example.html content=example %} Responsive variations also exist for `flex-fill`. @@ -236,7 +241,7 @@ Flexbox can do some pretty awesome things when you mix flex alignments with auto **Unfortunately, IE10 and IE11 do not properly support auto margins on flex items whose parent has a non-default `justify-content` value.** [See this StackOverflow answer](https://stackoverflow.com/a/37535548) for more details. -{% example html %} +{% capture example %}
Flex item
Flex item
@@ -254,13 +259,14 @@ Flexbox can do some pretty awesome things when you mix flex alignments with auto
Flex item
Flex item
-{% endexample %} +{% endcapture %} +{% include example.html content=example %} ### With align-items Vertically move one flex item to the top or bottom of a container by mixing `align-items`, `flex-direction: column`, and `margin-top: auto` or `margin-bottom: auto`. -{% example html %} +{% capture example %}
Flex item
Flex item
@@ -272,7 +278,8 @@ Vertically move one flex item to the top or bottom of a container by mixing `ali
Flex item
Flex item
-{% endexample %} +{% endcapture %} +{% include example.html content=example %} ## Wrap @@ -358,13 +365,14 @@ Responsive variations also exist for `flex-wrap`. Change the _visual_ order of specific flex items with a handful of `order` utilities. We only provide options for making an item first or last, as well as a reset to use the DOM order. As `order` takes any integer value (e.g., `5`), add custom CSS for any additional values needed. -{% example html %} +{% capture example %}
First flex item
Second flex item
Third flex item
-{% endexample %} +{% endcapture %} +{% include example.html content=example %} Responsive variations also exist for `order`. -- cgit v1.2.3