diff options
| author | Vino Rodrigues <[email protected]> | 2021-01-16 13:07:57 +1100 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2021-01-25 14:34:01 -0800 |
| commit | ba30df146c78f7704e99e1d59de2e42f9d01a44a (patch) | |
| tree | 86765e569526a735a1e9f1720de4626886dd9d13 | |
| parent | c6d6160a7c2203fbe620b6e4a660f72c40b2efd3 (diff) | |
| download | bootstrap-ba30df146c78f7704e99e1d59de2e42f9d01a44a.tar.xz bootstrap-ba30df146c78f7704e99e1d59de2e42f9d01a44a.zip | |
Replace .bg-white with .bg-body in docs
Response to issue #32810
Use of the .bg-white class to define visual aspects of the examples
would be unintuitive for theme builders to test themes on.
This replaces instances of .bg-white with .bg-body in the examples.
- Edited examples to replace use .bg-white class with .bg-body class
- product
- offcanvas
- pricing
- cheatsheet
- cheatsheet-rtl
- Edited utilities colors.md & shadows.md to include .bg-body class
7 files changed, 14 insertions, 13 deletions
diff --git a/site/content/docs/5.0/examples/cheatsheet-rtl/index.html b/site/content/docs/5.0/examples/cheatsheet-rtl/index.html index 9b9b81ea6..712c583dd 100644 --- a/site/content/docs/5.0/examples/cheatsheet-rtl/index.html +++ b/site/content/docs/5.0/examples/cheatsheet-rtl/index.html @@ -70,7 +70,7 @@ direction: rtl </ul> </nav> </aside> -<div class="bd-cheatsheet container-fluid bg-white"> +<div class="bd-cheatsheet container-fluid bg-body"> <section id="content"> <h2 class="sticky-xl-top fw-bold pt-3 pt-xl-5 pb-2 pb-xl-3">محتويات</h2> diff --git a/site/content/docs/5.0/examples/cheatsheet/index.html b/site/content/docs/5.0/examples/cheatsheet/index.html index 39637a487..394142510 100644 --- a/site/content/docs/5.0/examples/cheatsheet/index.html +++ b/site/content/docs/5.0/examples/cheatsheet/index.html @@ -69,7 +69,7 @@ body_class: "bg-light" </ul> </nav> </aside> -<div class="bd-cheatsheet container-fluid bg-white"> +<div class="bd-cheatsheet container-fluid bg-body"> <section id="content"> <h2 class="sticky-xl-top fw-bold pt-3 pt-xl-5 pb-2 pb-xl-3">Contents</h2> diff --git a/site/content/docs/5.0/examples/offcanvas/index.html b/site/content/docs/5.0/examples/offcanvas/index.html index a7c99a538..c25c6a116 100644 --- a/site/content/docs/5.0/examples/offcanvas/index.html +++ b/site/content/docs/5.0/examples/offcanvas/index.html @@ -46,7 +46,7 @@ body_class: "bg-light" </div> </nav> -<div class="nav-scroller bg-white shadow-sm"> +<div class="nav-scroller bg--body shadow-sm"> <nav class="nav nav-underline" aria-label="Secondary navigation"> <a class="nav-link active" aria-current="page" href="#">Dashboard</a> <a class="nav-link" href="#"> @@ -72,7 +72,7 @@ body_class: "bg-light" </div> </div> - <div class="my-3 p-3 bg-white rounded shadow-sm"> + <div class="my-3 p-3 bg-body rounded shadow-sm"> <h6 class="border-bottom pb-2 mb-0">Recent updates</h6> <div class="d-flex text-muted pt-3"> {{< placeholder width="32" height="32" background="#007bff" color="#007bff" class="flex-shrink-0 me-2 rounded" >}} @@ -100,7 +100,7 @@ body_class: "bg-light" </small> </div> - <div class="my-3 p-3 bg-white rounded shadow-sm"> + <div class="my-3 p-3 bg-body rounded shadow-sm"> <h6 class="border-bottom pb-2 mb-0">Suggestions</h6> <div class="d-flex text-muted pt-3"> {{< placeholder width="32" height="32" background="#007bff" color="#007bff" class="flex-shrink-0 me-2 rounded" >}} diff --git a/site/content/docs/5.0/examples/pricing/index.html b/site/content/docs/5.0/examples/pricing/index.html index 58bb22ccf..57d4747dd 100644 --- a/site/content/docs/5.0/examples/pricing/index.html +++ b/site/content/docs/5.0/examples/pricing/index.html @@ -6,7 +6,7 @@ extra_css: include_js: false --- -<header class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom shadow-sm"> +<header class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-body border-bottom shadow-sm"> <p class="h5 my-0 me-md-auto fw-normal">Company name</p> <nav class="my-2 my-md-0 me-md-3"> <a class="p-2 text-dark" href="#">Features</a> diff --git a/site/content/docs/5.0/examples/product/index.html b/site/content/docs/5.0/examples/product/index.html index 423890e3b..291901efa 100644 --- a/site/content/docs/5.0/examples/product/index.html +++ b/site/content/docs/5.0/examples/product/index.html @@ -71,14 +71,14 @@ extra_css: <h2 class="display-5">Another headline</h2> <p class="lead">And an even wittier subheading.</p> </div> - <div class="bg-white shadow-sm mx-auto" style="width: 80%; height: 300px; border-radius: 21px 21px 0 0;"></div> + <div class="bg-body shadow-sm mx-auto" style="width: 80%; height: 300px; border-radius: 21px 21px 0 0;"></div> </div> <div class="bg-light me-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center overflow-hidden"> <div class="my-3 py-3"> <h2 class="display-5">Another headline</h2> <p class="lead">And an even wittier subheading.</p> </div> - <div class="bg-white shadow-sm mx-auto" style="width: 80%; height: 300px; border-radius: 21px 21px 0 0;"></div> + <div class="bg-body shadow-sm mx-auto" style="width: 80%; height: 300px; border-radius: 21px 21px 0 0;"></div> </div> </div> @@ -88,14 +88,14 @@ extra_css: <h2 class="display-5">Another headline</h2> <p class="lead">And an even wittier subheading.</p> </div> - <div class="bg-white shadow-sm mx-auto" style="width: 80%; height: 300px; border-radius: 21px 21px 0 0;"></div> + <div class="bg-body shadow-sm mx-auto" style="width: 80%; height: 300px; border-radius: 21px 21px 0 0;"></div> </div> <div class="bg-light me-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center overflow-hidden"> <div class="my-3 py-3"> <h2 class="display-5">Another headline</h2> <p class="lead">And an even wittier subheading.</p> </div> - <div class="bg-white shadow-sm mx-auto" style="width: 80%; height: 300px; border-radius: 21px 21px 0 0;"></div> + <div class="bg-body shadow-sm mx-auto" style="width: 80%; height: 300px; border-radius: 21px 21px 0 0;"></div> </div> </div> </main> diff --git a/site/content/docs/5.0/utilities/colors.md b/site/content/docs/5.0/utilities/colors.md index ede13df06..3f11cb2b5 100644 --- a/site/content/docs/5.0/utilities/colors.md +++ b/site/content/docs/5.0/utilities/colors.md @@ -44,6 +44,7 @@ Similar to the contextual text color classes, easily set the background of an el {{- end -}} {{< /colors.inline >}} <div class="p-3 mb-2 bg-white text-dark">.bg-white</div> +<div class="p-3 mb-2 bg-body text-body">.bg-body</div> <div class="p-3 mb-2 bg-transparent text-dark">.bg-transparent</div> {{< /example >}} diff --git a/site/content/docs/5.0/utilities/shadows.md b/site/content/docs/5.0/utilities/shadows.md index 2803031d6..c1a155689 100644 --- a/site/content/docs/5.0/utilities/shadows.md +++ b/site/content/docs/5.0/utilities/shadows.md @@ -11,7 +11,7 @@ While shadows on components are disabled by default in Bootstrap and can be enab {{< example >}} <div class="shadow-none p-3 mb-5 bg-light rounded">No shadow</div> -<div class="shadow-sm p-3 mb-5 bg-white rounded">Small shadow</div> -<div class="shadow p-3 mb-5 bg-white rounded">Regular shadow</div> -<div class="shadow-lg p-3 mb-5 bg-white rounded">Larger shadow</div> +<div class="shadow-sm p-3 mb-5 bg-body rounded">Small shadow</div> +<div class="shadow p-3 mb-5 bg-body rounded">Regular shadow</div> +<div class="shadow-lg p-3 mb-5 bg-body rounded">Larger shadow</div> {{< /example >}} |
