1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-08 20:50:44 +02:00
* Backport #32037

Add `.navbar-nav-scroll` for vertical scrolling of navbar content

* drop the css var for a Sass css

Co-authored-by: Mark Otto <markdotto@gmail.com>
This commit is contained in:
XhmikosR
2021-01-19 08:18:19 +02:00
committed by GitHub
parent 9c4abcc6a1
commit 9d87bd7a30
3 changed files with 56 additions and 0 deletions

View File

@@ -139,6 +139,11 @@
background: 50% / 100% 100% no-repeat;
}
.navbar-nav-scroll {
max-height: $navbar-nav-scroll-max-height;
overflow-y: auto;
}
// Generate series of `.navbar-expand-*` responsive classes for configuring
// where your navbar collapses.
.navbar-expand {
@@ -198,6 +203,10 @@
}
}
.navbar-nav-scroll {
overflow: visible;
}
.navbar-collapse {
display: flex !important; // stylelint-disable-line declaration-no-important