You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the default `.btn-close` to be white with the `.btn-close-white` class. This class uses the `filter` property to invert the `background-image`.
28
+
{{< deprecated-in "5.0.0" >}}
29
+
30
+
{{< callout warning >}}
31
+
**Heads up!** As of v5.0.0, the `.btn-close-white` class is deprecated. Instead, use `data-coreui-theme="dark"` to change the color mode of the close button.
32
+
{{< /callout >}}
33
+
34
+
Add `data-coreui-theme="dark"` to the `.btn-close`, or to its parent element, to invert the close button. This uses the `filter` property to invert the `background-image` without overriding its value.
@@ -121,7 +121,7 @@ You can replace the text within the `.navbar-brand` with an `<img>`.
121
121
You can also make use of some additional utilities to add an image and text at the same time. Note the addition of `.d-inline-block` and `.align-text-top` on the `<img>`.
@@ -190,7 +190,7 @@ And because we use classes for our navs, you can avoid the list-based approach e
190
190
You can also use dropdowns in your navbar. Dropdown menus require a wrapping element for positioning, so be sure to use separate and nested elements for `.nav-item` and `.nav-link` as shown below.
@@ -241,7 +241,7 @@ Place various form controls and components within a navbar:
241
241
Immediate child elements of `.navbar` use flex layout and will default to `justify-content: space-between`. Use additional [flex utilities]({{< docsref "/utilities/flex" >}}) as needed to adjust this behavior.
242
242
243
243
{{< example >}}
244
-
<navclass="navbar bg-body-tertiary"">
244
+
<navclass="navbar bg-body-tertiary">
245
245
<divclass="container-fluid">
246
246
<a class="navbar-brand">Navbar</a>
247
247
<form class="d-flex" role="search">
@@ -255,7 +255,7 @@ Immediate child elements of `.navbar` use flex layout and will default to `justi
255
255
Input groups work, too. If your navbar is an entire form, or mostly a form, you can use the `<form>` element as the container and save some HTML.
@@ -268,7 +268,7 @@ Input groups work, too. If your navbar is an entire form, or mostly a form, you
268
268
Various buttons are supported as part of these navbar forms, too. This is also a great reminder that vertical alignment utilities can be used to align different sized elements.
@@ -326,7 +326,7 @@ Mix and match with other components and utilities as needed.
326
326
327
327
---
328
328
329
-
**New in v5.0.0 —** Navbar theming is now powered by CSS variables and `.navbar-light` has been deprecated. CSS variables are applied to `.navbar`, defaulting to the "light" appearance, and can be overridden with `.navbar-dark`.
329
+
**New in v4.2.6 —** Navbar theming is now powered by CSS variables and `.navbar-light` has been deprecated. CSS variables are applied to `.navbar`, defaulting to the "light" appearance, and can be overridden with `.navbar-dark`.
330
330
{{< /callout >}}
331
331
332
332
Navbar themes are easier than ever thanks to CoreUI for Bootstrap's combination of Sass and CSS variables. The default is our "light navbar" for use with light background colors, but you can also apply `data-coreui-theme="dark"` for dark background colors. Then, customize with `.bg-*` utilities.
@@ -440,7 +440,7 @@ Although it's not required, you can wrap a navbar in a `.container` to center it
@@ -465,39 +465,39 @@ Use our [position utilities]({{< docsref "/utilities/position" >}}) to place nav
465
465
Fixed navbars use `position: fixed`, meaning they're pulled from the normal flow of the DOM and may require custom CSS (e.g., `padding-top` on the `<body>`) to prevent overlap with other elements.
0 commit comments