From 88065dfe71e9af618b3aeebe0a3313dad67e4a8e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 17 Jul 2019 14:46:40 -0700 Subject: [PATCH] Use .html like every other example, change the layout, simplify some things for now --- .../docs/4.3/examples/masonry/index.html | 105 ++++++++++++++++++ .../docs/4.3/examples/masonry/index.md | 102 ----------------- 2 files changed, 105 insertions(+), 102 deletions(-) create mode 100644 site/content/docs/4.3/examples/masonry/index.html delete mode 100644 site/content/docs/4.3/examples/masonry/index.md diff --git a/site/content/docs/4.3/examples/masonry/index.html b/site/content/docs/4.3/examples/masonry/index.html new file mode 100644 index 0000000000..39b36b6755 --- /dev/null +++ b/site/content/docs/4.3/examples/masonry/index.html @@ -0,0 +1,105 @@ +--- +layout: examples +title: Masonry example +extra_js: + - src: "https://cdnjs.cloudflare.com/ajax/libs/masonry/4.2.2/masonry.pkgd.min.js" + integrity: "sha256-Nn1q/fx0H7SNLZMQ5Hw5JLaTRZp0yILA/FRexe19VdI=" + async: true +--- + + + +
+

Bootstrap and Masonry

+

Integrate Masonry with the Bootstrap grid system and cards component.

+ +

Masonry is not included in Bootstrap. Add it by including the JavaScript plugin manually, or using a CDN like so:

+ + {{< highlight html >}}{{< /highlight >}} + +

By adding data-masonry='{"percentPosition": true }' to the .row wrapper, we can combine the powers of Bootstrap's responsive grid and Masonry's positioning.

+ +
+ +
+
+
+ {{< placeholder width="100%" height="200" class="card-img-top" text="Image cap" >}} +
+
Card title that wraps to a new line
+

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

+
+
+
+
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
+ + Someone famous in Source Title + +
+
+
+
+
+
+ {{< placeholder width="100%" height="200" class="card-img-top" text="Image cap" >}} +
+
Card title
+

This card has supporting text below as a natural lead-in to additional content.

+

Last updated 3 mins ago

+
+
+
+
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.

+
+ + Someone famous in Source Title + +
+
+
+
+
+
+
+
Card title
+

This card has a regular title and short paragraphy of text below it.

+

Last updated 3 mins ago

+
+
+
+
+
+ {{< placeholder width="100%" height="260" class="card-img" text="Card image" >}} +
+
+
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
+ + Someone famous in Source Title + +
+
+
+
+
+
+
+
Card title
+

This is another card with title and supporting text below. This card has some additional content to make it slightly taller overall.

+

Last updated 3 mins ago

+
+
+
+
+ +
diff --git a/site/content/docs/4.3/examples/masonry/index.md b/site/content/docs/4.3/examples/masonry/index.md deleted file mode 100644 index d03e3cc7a9..0000000000 --- a/site/content/docs/4.3/examples/masonry/index.md +++ /dev/null @@ -1,102 +0,0 @@ ---- -layout: single -title: Bootstrap grid masonry example -description: This example illustrates how to integrate the [Masonry plugin](https://masonry.desandro.com/) with the Bootstrap grid. More options & documentation can be found on their [documentation site](https://masonry.desandro.com/). -include_docs_stylesheets: true -active_menu: "example" -extra_js: - - src: "https://cdnjs.cloudflare.com/ajax/libs/masonry/4.2.2/masonry.pkgd.min.js" - integrity: "sha256-Nn1q/fx0H7SNLZMQ5Hw5JLaTRZp0yILA/FRexe19VdI=" - async: true ---- - -Masonry is not included in Bootstrap, but can easily be added by including your locally hosted file or using the following hosted javascript file: - -```js - -``` - -By adding `data-masonry='{"percentPosition": true }'` to the `.row` wrapper, we can combine the powers of Bootstrap's responsive grid and Masonry's positioning. - -{{< example >}} -
-
-
- {{< placeholder width="100%" height="160" class="card-img-top" text="Image cap" >}} -
-
Card title that wraps to a new line
-

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
-
-
-
-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

-
- - Someone famous in Source Title - -
-
-
-
-
-
- {{< placeholder width="100%" height="160" class="card-img-top" text="Image cap" >}} -
-
Card title
-

This card has supporting text below as a natural lead-in to additional content.

-

Last updated 3 mins ago

-
-
-
-
-
-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.

-
- - Someone famous in Source Title - -
-
-
-
-
-
-
-
Card title
-

This card has a regular title and short paragraphy of text below it.

-

Last updated 3 mins ago

-
-
-
-
-
- {{< placeholder width="100%" height="260" class="card-img" text="Card image" >}} -
-
-
-
-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

-
- - Someone famous in Source Title - -
-
-
-
-
-
-
-
Card title
-

This is another card with title and supporting text below. This card has some additional content to make it slightly taller overall.

-

Last updated 3 mins ago

-
-
-
-
-{{< /example >}}