Skip to content

Commit a827934

Browse files
MartijnCuppensXhmikosR
authored andcommitted
Documentation tweaks (#28679)
* Documentation tweaks * Remove redundant col-12 classes
1 parent 292cb46 commit a827934

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

js/tests/integration/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<body>
1414
<div class="container">
1515
<h1>Hello, world!</h1>
16-
<div class="col-12 mt-5">
16+
<div class="mt-5">
1717
<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="Tooltip on top">
1818
Tooltip on top
1919
</button>

site/content/docs/4.3/examples/grid/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ <h2 class="mt-4">Two columns with two nested columns</h2>
9595
<hr class="my-4">
9696

9797
<h2 class="mt-4">Mixed: mobile and desktop</h2>
98-
<p>The Bootstrap v4 grid system has five tiers of classes: xs (extra small), sm (small), md (medium), lg (large), and xl (extra large). You can use nearly any combination of these classes to create more dynamic and flexible layouts.</p>
99-
<p>Each tier of classes scales up, meaning if you plan on setting the same widths for xs and sm, you only need to specify xs.</p>
98+
<p>The Bootstrap v4 grid system has five tiers of classes: xs (extra small, this class infix is not used), sm (small), md (medium), lg (large), and xl (extra large). You can use nearly any combination of these classes to create more dynamic and flexible layouts.</p>
99+
<p>Each tier of classes scales up, meaning if you plan on setting the same widths for md, lg and xl, you only need to specify md.</p>
100100
<div class="row mb-3">
101-
<div class="col-12 col-md-8 themed-grid-col">.col-12 .col-md-8</div>
101+
<div class="col-md-8 themed-grid-col">.col-md-8</div>
102102
<div class="col-6 col-md-4 themed-grid-col">.col-6 .col-md-4</div>
103103
</div>
104104
<div class="row mb-3">
@@ -115,7 +115,7 @@ <h2 class="mt-4">Mixed: mobile and desktop</h2>
115115

116116
<h2 class="mt-4">Mixed: mobile, tablet, and desktop</h2>
117117
<div class="row mb-3">
118-
<div class="col-12 col-sm-6 col-lg-8 themed-grid-col">.col-12 .col-sm-6 .col-lg-8</div>
118+
<div class="col-sm-6 col-lg-8 themed-grid-col">.col-sm-6 .col-lg-8</div>
119119
<div class="col-6 col-lg-4 themed-grid-col">.col-6 .col-lg-4</div>
120120
</div>
121121
<div class="row mb-3">
@@ -124,4 +124,4 @@ <h2 class="mt-4">Mixed: mobile, tablet, and desktop</h2>
124124
<div class="col-6 col-sm-4 themed-grid-col">.col-6 .col-sm-4</div>
125125
</div>
126126

127-
</div> <!-- /container -->
127+
</div>

site/content/docs/4.3/layout/grid.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Don't want your columns to simply stack in some grid tiers? Use a combination of
303303
<div class="container">
304304
<!-- Stack the columns on mobile by making one full-width and the other half-width -->
305305
<div class="row">
306-
<div class="col-12 col-md-8">.col-12 .col-md-8</div>
306+
<div class="col-md-8">.col-md-8</div>
307307
<div class="col-6 col-md-4">.col-6 .col-md-4</div>
308308
</div>
309309

@@ -477,7 +477,7 @@ In practice, here's how it looks. Note you can continue to use this with all oth
477477
<div class="bd-example-row">
478478
{{< example >}}
479479
<div class="row no-gutters">
480-
<div class="col-12 col-sm-6 col-md-8">.col-12 .col-sm-6 .col-md-8</div>
480+
<div class="col-sm-6 col-md-8">.col-sm-6 .col-md-8</div>
481481
<div class="col-6 col-md-4">.col-6 .col-md-4</div>
482482
</div>
483483
{{< /example >}}

site/layouts/_default/docs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div class="container-fluid">
1212
<div class="row flex-xl-nowrap">
13-
<div class="col-12 col-md-3 col-xl-2 bd-sidebar">
13+
<div class="col-md-3 col-xl-2 bd-sidebar">
1414
{{ partial "docs-sidebar" . }}
1515
</div>
1616

@@ -20,7 +20,7 @@
2020
</nav>
2121
{{ end }}
2222

23-
<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
23+
<main class="col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
2424
<h1 class="bd-title" id="content">{{ .Title | markdownify }}</h1>
2525
<p class="bd-lead">{{ .Page.Params.Description | markdownify }}</p>
2626
{{ partial "ads" . }}

site/layouts/partials/home/masthead-followup.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="masthead-followup row m-0 border border-white">
2-
<div class="col-12 col-md-4 p-3 p-md-5 bg-light border border-white">
2+
<div class="col-md-4 p-3 p-md-5 bg-light border border-white">
33
{{ "<!-- Icon by Bytesize https://github.com/danklammer/bytesize-icons -->" | safeHTML }}
44
{{ partial "icons/import.svg" (dict "class" "text-primary mb-2" "width" "32" "height" "32") }}
55
<h3>Installation</h3>
@@ -13,7 +13,7 @@ <h3>Installation</h3>
1313
<a class="btn btn-outline-primary" href="/docs/{{ .Site.Params.docs_version }}/getting-started/download/">Read installation docs</a>
1414
</div>
1515

16-
<div class="col-12 col-md-4 p-3 p-md-5 bg-light border border-white">
16+
<div class="col-md-4 p-3 p-md-5 bg-light border border-white">
1717
{{ "<!-- Icon by Bytesize https://github.com/danklammer/bytesize-icons -->" | safeHTML }}
1818
{{ partial "icons/download.svg" (dict "class" "text-primary mb-2" "width" "32" "height" "32") }}
1919
<h3>BootstrapCDN</h3>
@@ -30,7 +30,7 @@ <h5>JS and Popper.js</h5>
3030
<a class="btn btn-outline-primary" href="/docs/{{ .Site.Params.docs_version }}/layout/overview/">Explore the docs</a>
3131
</div>
3232

33-
<div class="col-12 col-md-4 p-3 p-md-5 bg-light border border-white">
33+
<div class="col-md-4 p-3 p-md-5 bg-light border border-white">
3434
{{ "<!-- Icon by Bytesize https://github.com/danklammer/bytesize-icons -->" | safeHTML }}
3535
{{ partial "icons/lightning.svg" (dict "class" "text-primary mb-2" "width" "32" "height" "32") }}
3636
<h3>Official Themes</h3>

0 commit comments

Comments
 (0)