mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
193 lines
No EOL
9 KiB
HTML
193 lines
No EOL
9 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
|
|
<meta name="generator" content="Hugo 0.72.0">
|
|
<title>Masonry example · Bootstrap</title>
|
|
|
|
<link rel="canonical" href="https://v5.getbootstrap.com/docs/5.0/examples/masonry/">
|
|
|
|
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css"
|
|
integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous">
|
|
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
|
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
|
|
crossorigin="anonymous"></script>
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"
|
|
integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
|
|
crossorigin="anonymous"></script>
|
|
|
|
<!-- Favicons -->
|
|
<!-- <link rel="apple-touch-icon" href="/docs/5.0/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
|
|
<link rel="icon" href="/docs/5.0/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
|
|
<link rel="icon" href="/docs/5.0/assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
|
|
<link rel="manifest" href="/docs/5.0/assets/img/favicons/manifest.json">
|
|
<link rel="mask-icon" href="/docs/5.0/assets/img/favicons/safari-pinned-tab.svg" color="#7952b3">
|
|
<link rel="icon" href="/docs/5.0/assets/img/favicons/favicon.ico">
|
|
-->
|
|
|
|
|
|
<meta name="theme-color" content="#7952b3">
|
|
|
|
|
|
<style>
|
|
.bd-placeholder-img {
|
|
font-size: 1.125rem;
|
|
text-anchor: middle;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.bd-placeholder-img-lg {
|
|
font-size: 3.5rem;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container py-5">
|
|
<h1>Bootstrap and Masonry</h1>
|
|
<p class="lead">Integrate <a href="https://masonry.desandro.com/">Masonry</a> with the Bootstrap grid system and
|
|
cards component.</p>
|
|
|
|
<p>Masonry is not included in Bootstrap. Add it by including the JavaScript plugin manually, or using a CDN like
|
|
so:</p>
|
|
|
|
<pre><code>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/masonry/4.2.2/masonry.pkgd.min.js" integrity="sha384-GNFwBvfVxBkLMJpYMOABq3c+d3KnQxudP/mGPkzpZSTYykLBNsZEnG2D9G/X/+7D" crossorigin="anonymous" async></script>
|
|
</code></pre>
|
|
|
|
<p>By adding <code>data-masonry='{"percentPosition": true }'</code> to the <code>.row</code> wrapper, we can
|
|
combine the powers of Bootstrap's responsive grid and Masonry's positioning.</p>
|
|
|
|
<hr class="my-5">
|
|
|
|
<div class="row" data-masonry='{"percentPosition": true }'>
|
|
<div class="col-sm-6 col-lg-4 mb-4">
|
|
<div class="card">
|
|
<svg class="bd-placeholder-img card-img-top" width="100%" height="200"
|
|
xmlns="http://www.w3.org/2000/svg" aria-label="Placeholder: Image cap"
|
|
preserveAspectRatio="xMidYMid slice" role="img" focusable="false">
|
|
<title>Placeholder</title>
|
|
<rect width="100%" height="100%" fill="#868e96" /><text x="50%" y="50%" fill="#dee2e6"
|
|
dy=".3em">Image cap</text>
|
|
</svg>
|
|
|
|
<div class="card-body">
|
|
<h5 class="card-title">Card title that wraps to a new line</h5>
|
|
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to
|
|
additional content. This content is a little bit longer.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-lg-4 mb-4">
|
|
<div class="card p-3">
|
|
<figure class="p-3 mb-0">
|
|
<blockquote class="blockquote">
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
|
</blockquote>
|
|
<figcaption class="blockquote-footer mb-0 text-muted">
|
|
Someone famous in <cite title="Source Title">Source Title</cite>
|
|
</figcaption>
|
|
</figure>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-lg-4 mb-4">
|
|
<div class="card">
|
|
<svg class="bd-placeholder-img card-img-top" width="100%" height="200"
|
|
xmlns="http://www.w3.org/2000/svg" aria-label="Placeholder: Image cap"
|
|
preserveAspectRatio="xMidYMid slice" role="img" focusable="false">
|
|
<title>Placeholder</title>
|
|
<rect width="100%" height="100%" fill="#868e96" /><text x="50%" y="50%" fill="#dee2e6"
|
|
dy=".3em">Image cap</text>
|
|
</svg>
|
|
|
|
<div class="card-body">
|
|
<h5 class="card-title">Card title</h5>
|
|
<p class="card-text">This card has supporting text below as a natural lead-in to additional
|
|
content.</p>
|
|
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-lg-4 mb-4">
|
|
<div class="card bg-primary text-white text-center p-3">
|
|
<figure class="mb-0">
|
|
<blockquote class="blockquote">
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.</p>
|
|
</blockquote>
|
|
<figcaption class="blockquote-footer mb-0 text-white">
|
|
Someone famous in <cite title="Source Title">Source Title</cite>
|
|
</figcaption>
|
|
</figure>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-lg-4 mb-4">
|
|
<div class="card text-center">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Card title</h5>
|
|
<p class="card-text">This card has a regular title and short paragraph of text below it.</p>
|
|
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-lg-4 mb-4">
|
|
<div class="card">
|
|
<svg class="bd-placeholder-img card-img" width="100%" height="260"
|
|
xmlns="http://www.w3.org/2000/svg" aria-label="Placeholder: Card image"
|
|
preserveAspectRatio="xMidYMid slice" role="img" focusable="false">
|
|
<title>Placeholder</title>
|
|
<rect width="100%" height="100%" fill="#868e96" /><text x="50%" y="50%" fill="#dee2e6"
|
|
dy=".3em">Card image</text>
|
|
</svg>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-lg-4 mb-4">
|
|
<div class="card p-3 text-right">
|
|
<figure class="mb-0">
|
|
<blockquote class="blockquote">
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
|
</blockquote>
|
|
<figcaption class="blockquote-footer mb-0 text-muted">
|
|
Someone famous in <cite title="Source Title">Source Title</cite>
|
|
</figcaption>
|
|
</figure>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-lg-4 mb-4">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Card title</h5>
|
|
<p class="card-text">This is another card with title and supporting text below. This card has
|
|
some additional content to make it slightly taller overall.</p>
|
|
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script async src="https://cdnjs.cloudflare.com/ajax/libs/masonry/4.2.2/masonry.pkgd.min.js"
|
|
integrity="sha384-GNFwBvfVxBkLMJpYMOABq3c+d3KnQxudP/mGPkzpZSTYykLBNsZEnG2D9G/X/+7D"
|
|
crossorigin="anonymous"></script>
|
|
</body>
|
|
|
|
</html> |