mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
Fixes #17230: Renames .navbar-static-top to .navbar-full and adds docs for it
This commit is contained in:
parent
180f97d7b2
commit
584cfdd72b
@ -163,7 +163,13 @@ Although it's not required, you can wrap a navbar in a `.container` to center it
|
|||||||
|
|
||||||
## Placement
|
## Placement
|
||||||
|
|
||||||
Navbars can be statically placed (their default behavior), or fixed to the top or bottom of the viewport.
|
Navbars can be statically placed (their default behavior), static without rounded corners, or fixed to the top or bottom of the viewport.
|
||||||
|
|
||||||
|
{% example html %}
|
||||||
|
<nav class="navbar navbar-full navbar-light bg-faded">
|
||||||
|
<a class="navbar-brand" href="#">Full width</a>
|
||||||
|
</nav>
|
||||||
|
{% endexample %}
|
||||||
|
|
||||||
{% example html %}
|
{% example html %}
|
||||||
<nav class="navbar navbar-fixed-top navbar-light bg-faded">
|
<nav class="navbar navbar-fixed-top navbar-light bg-faded">
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
// Display the navbar across the entirety of the page or fixed it to the top or
|
// Display the navbar across the entirety of the page or fixed it to the top or
|
||||||
// bottom of the page.
|
// bottom of the page.
|
||||||
|
|
||||||
// Static top (unfixed, but 100% wide) navbar
|
// A static, full width modifier with no rounded corners.
|
||||||
.navbar-static-top {
|
.navbar-full {
|
||||||
z-index: $zindex-navbar;
|
z-index: $zindex-navbar;
|
||||||
|
|
||||||
@include media-breakpoint-up(sm) {
|
@include media-breakpoint-up(sm) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user