1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-16 18:44:01 +02:00

Add v5.3.0 docs (#38658)

This commit is contained in:
XhmikosR
2023-05-30 18:21:02 +03:00
committed by GitHub
parent 87498ceeb2
commit 4be8b59d15
232 changed files with 4200 additions and 3253 deletions

View File

@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Learn how to modify columns with a handful of options for alignment, ordering, and offsetting thanks to our flexbox grid system. Plus, see how to use column classes to manage widths of non-grid elements.">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Hugo 0.111.3">
<meta name="generator" content="Hugo 0.112.5">
<meta name="docsearch:language" content="en">
<meta name="docsearch:version" content="5.3">
@@ -18,7 +18,7 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
<link href="/docs/5.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<link href="/docs/5.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link href="/docs/5.3/assets/css/docs.css" rel="stylesheet">
@@ -531,7 +531,7 @@
<main class="bd-main order-1">
<div class="bd-intro pt-2 ps-lg-2">
<div class="d-md-flex flex-md-row-reverse align-items-center justify-content-between">
<div class="mb-3 mb-md-0 d-flex text-nowrap"><a class="btn btn-sm btn-bd-light rounded-2" href="https://github.com/twbs/bootstrap/blob/v5.3.0-alpha3/site/content/docs/5.3/layout/columns.md" title="View and edit this file on GitHub" target="_blank" rel="noopener">
<div class="mb-3 mb-md-0 d-flex text-nowrap"><a class="btn btn-sm btn-bd-light rounded-2" href="https://github.com/twbs/bootstrap/blob/v5.3.0/site/content/docs/5.3/layout/columns.md" title="View and edit this file on GitHub" target="_blank" rel="noopener">
View on GitHub
</a>
</div>
@@ -603,7 +603,7 @@
<p>Use flexbox alignment utilities to vertically and horizontally align columns.</p>
<h3 id="vertical-alignment">Vertical alignment <a class="anchor-link" href="#vertical-alignment" aria-label="Link to this section: Vertical alignment"></a></h3>
<p>Change the vertical alignment with any of the responsive <code>align-items-*</code> classes.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row bd-example-row-flex-cols">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row bd-example-row-flex-cols">
<div class="container text-center">
<div class="row align-items-start">
<div class="col">
@@ -641,7 +641,7 @@
</span></span><span class="line"><span class="cl"> <span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span></span></span></code></pre></div></div>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row bd-example-row-flex-cols">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row bd-example-row-flex-cols">
<div class="container text-center">
<div class="row align-items-center">
<div class="col">
@@ -679,7 +679,7 @@
</span></span><span class="line"><span class="cl"> <span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span></span></span></code></pre></div></div>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row bd-example-row-flex-cols">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row bd-example-row-flex-cols">
<div class="container text-center">
<div class="row align-items-end">
<div class="col">
@@ -718,7 +718,7 @@
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span></span></span></code></pre></div></div>
<p>Or, change the alignment of each column individually with any of the responsive <code>.align-self-*</code> classes.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row bd-example-row-flex-cols">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row bd-example-row-flex-cols">
<div class="container text-center">
<div class="row">
<div class="col align-self-start">
@@ -758,7 +758,7 @@
<h3 id="horizontal-alignment">Horizontal alignment <a class="anchor-link" href="#horizontal-alignment" aria-label="Link to this section: Horizontal alignment"></a></h3>
<p>Change the horizontal alignment with any of the responsive <code>justify-content-*</code> classes.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row">
<div class="container text-center">
<div class="row justify-content-start">
<div class="col-4">
@@ -872,7 +872,7 @@
<h3 id="column-wrapping">Column wrapping <a class="anchor-link" href="#column-wrapping" aria-label="Link to this section: Column wrapping"></a></h3>
<p>If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row">
<div class="container">
<div class="row">
<div class="col-9">.col-9</div>
@@ -900,7 +900,7 @@
<h3 id="column-breaks">Column breaks <a class="anchor-link" href="#column-breaks" aria-label="Link to this section: Column breaks"></a></h3>
<p>Breaking columns to a new line in flexbox requires a small hack: add an element with <code>width: 100%</code> wherever you want to wrap your columns to a new line. Normally this is accomplished with multiple <code>.row</code>s, but not every implementation method can account for this.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row">
<div class="container text-center">
<div class="row">
<div class="col-6 col-sm-3">.col-6 .col-sm-3</div>
@@ -937,7 +937,7 @@
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span></span></span></code></pre></div></div>
<p>You may also apply this break at specific breakpoints with our <a href="/docs/5.3/utilities/display/">responsive display utilities</a>.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row">
<div class="container text-center">
<div class="row">
<div class="col-6 col-sm-4">.col-6 .col-sm-4</div>
@@ -976,7 +976,7 @@
<h2 id="reordering">Reordering <a class="anchor-link" href="#reordering" aria-label="Link to this section: Reordering"></a></h2>
<h3 id="order-classes">Order classes <a class="anchor-link" href="#order-classes" aria-label="Link to this section: Order classes"></a></h3>
<p>Use <code>.order-</code> classes for controlling the <strong>visual order</strong> of your content. These classes are responsive, so you can set the <code>order</code> by breakpoint (e.g., <code>.order-1.order-md-2</code>). Includes support for <code>1</code> through <code>5</code> across all six grid tiers. If you need more <code>.order-*</code> classes, you can modify the default number via Sass variable.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row">
<div class="container text-center">
<div class="row">
<div class="col">
@@ -1015,7 +1015,7 @@
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span></span></span></code></pre></div></div>
<p>There are also responsive <code>.order-first</code> and <code>.order-last</code> classes that change the <code>order</code> of an element by applying <code>order: -1</code> and <code>order: 6</code>, respectively. These classes can also be intermixed with the numbered <code>.order-*</code> classes as needed.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row">
<div class="container text-center">
<div class="row">
<div class="col order-last">
@@ -1057,7 +1057,7 @@
<p>You can offset grid columns in two ways: our responsive <code>.offset-</code> grid classes and our <a href="/docs/5.3/utilities/spacing/">margin utilities</a>. Grid classes are sized to match columns while margins are more useful for quick layouts where the width of the offset is variable.</p>
<h4 id="offset-classes">Offset classes <a class="anchor-link" href="#offset-classes" aria-label="Link to this section: Offset classes"></a></h4>
<p>Move columns to the right using <code>.offset-md-*</code> classes. These classes increase the left margin of a column by <code>*</code> columns. For example, <code>.offset-md-4</code> moves <code>.col-md-4</code> over four columns.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row">
<div class="container text-center">
<div class="row">
<div class="col-md-4">.col-md-4</div>
@@ -1096,7 +1096,7 @@
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span></span></span></code></pre></div></div>
<p>In addition to column clearing at responsive breakpoints, you may need to reset offsets. See this in action in <a href="/docs/5.3/examples/grid/">the grid example</a>.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row">
<div class="container text-center">
<div class="row">
<div class="col-sm-5 col-md-6">.col-sm-5 .col-md-6</div>
@@ -1130,7 +1130,7 @@
<h4 id="margin-utilities">Margin utilities <a class="anchor-link" href="#margin-utilities" aria-label="Link to this section: Margin utilities"></a></h4>
<p>With the move to flexbox in v4, you can use margin utilities like <code>.me-auto</code> to force sibling columns away from one another.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row">
<div class="container text-center">
<div class="row">
<div class="col-md-4">.col-md-4</div>
@@ -1172,7 +1172,7 @@
<h2 id="standalone-column-classes">Standalone column classes <a class="anchor-link" href="#standalone-column-classes" aria-label="Link to this section: Standalone column classes"></a></h2>
<p>The <code>.col-*</code> classes can also be used outside a <code>.row</code> to give an element a specific width. Whenever column classes are used as non-direct children of a row, the paddings are omitted.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example bd-example-row">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0 bd-example-row">
<div class="col-3 p-3 mb-2">
.col-3: width of 25%
</div>
@@ -1199,7 +1199,7 @@
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span></span></span></code></pre></div></div>
<p>The classes can be used together with utilities to create responsive floated images. Make sure to wrap the content in a <a href="/docs/5.3/helpers/clearfix/"><code>.clearfix</code></a> wrapper to clear the float if the text is shorter.</p>
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example">
<div class="bd-example-snippet bd-code-snippet"><div class="bd-example m-0 border-0">
<div class="clearfix">
<svg class="bd-placeholder-img col-md-6 float-md-end mb-3 ms-md-3" width="100%" height="210" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Responsive floated image" preserveAspectRatio="xMidYMid slice" focusable="false"><title>Placeholder</title><rect width="100%" height="100%" fill="#868e96"/><text x="50%" y="50%" fill="#dee2e6" dy=".3em">Responsive floated image</text></svg>
@@ -1258,7 +1258,7 @@
<ul class="list-unstyled small">
<li class="mb-2">Designed and built with all the love in the world by the <a href="/docs/5.3/about/team/">Bootstrap team</a> with the help of <a href="https://github.com/twbs/bootstrap/graphs/contributors">our contributors</a>.</li>
<li class="mb-2">Code licensed <a href="https://github.com/twbs/bootstrap/blob/main/LICENSE" target="_blank" rel="license noopener">MIT</a>, docs <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank" rel="license noopener">CC BY 3.0</a>.</li>
<li class="mb-2">Currently v5.3.0-alpha3.</li>
<li class="mb-2">Currently v5.3.0.</li>
</ul>
</div>
<div class="col-6 col-lg-2 offset-lg-1 mb-3">
@@ -1307,7 +1307,7 @@
</div>
</footer>
<script src="/docs/5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script>
<script src="/docs/5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
@@ -1335,10 +1335,10 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.3.0-alpha3\/dist\/css\/bootstrap.min.css" rel="stylesheet">
<link href="https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.3.0\/dist\/css\/bootstrap.min.css" rel="stylesheet">
<link href="https://getbootstrap.com/docs/5.3/assets/css/docs.css" rel="stylesheet">
<title>Bootstrap Example</title>
<${'script'} src="https:\/\/cdn\.jsdelivr\.net\/npm\/bootstrap@5\.3\.0\-alpha3\/dist\/js\/bootstrap\.bundle\.min\.js"></${'script'}>
<${'script'} src="https:\/\/cdn\.jsdelivr\.net\/npm\/bootstrap@5\.3\.0\/dist\/js\/bootstrap\.bundle\.min\.js"></${'script'}>
</head>
<body class="p-3 m-0 border-0 ${classes}">