Document it better, remove commented out code
This commit is contained in:
parent
026f417bf2
commit
b12f544c61
2 changed files with 2 additions and 1 deletions
|
|
@ -118,7 +118,6 @@
|
|||
.navbar-nav-scroll {
|
||||
max-height: var(--height, 70vh);
|
||||
overflow-y: auto;
|
||||
// overflow-x: hidden;
|
||||
}
|
||||
|
||||
// Button for toggling the navbar when in its collapsed state
|
||||
|
|
|
|||
|
|
@ -480,6 +480,8 @@ Also note that **`.sticky-top` uses `position: sticky`, which [isn't fully suppo
|
|||
|
||||
## Scrolling
|
||||
|
||||
Add `.navbar-nav-scroll` to a `.navbar-nav` to enable vertical scrolling when expanded navbar content gets too tall. By default, scrolling kicks in at `75vh` (or 75% of the viewport height), but you may override that with a local CSS custom property. For example, add `style="--height: 65vh;"` to the `.navbar-nav`.
|
||||
|
||||
{{< example >}}
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<div class="container-fluid">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue