Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorMark Otto <markd.otto@gmail.com>2021-01-19 08:32:18 +0300
committerGitHub <noreply@github.com>2021-01-19 08:32:18 +0300
commit40b15de723114fbfd449e60c443e8956eb62462b (patch)
tree1374e0052150a0b6f5f87360780470e52d09218b /scss
parent4167c107f81aeb2b05e3fe3e2e511b50ea9be640 (diff)
Add `.navbar-nav-scroll` for vertical scrolling of navbar content (#32037)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'scss')
-rw-r--r--scss/_navbar.scss9
1 files changed, 9 insertions, 0 deletions
diff --git a/scss/_navbar.scss b/scss/_navbar.scss
index 852328aca1..1187d617bd 100644
--- a/scss/_navbar.scss
+++ b/scss/_navbar.scss
@@ -148,6 +148,11 @@
background-size: 100%;
}
+.navbar-nav-scroll {
+ max-height: var(--bs-scroll-height, 75vh);
+ overflow-y: auto;
+}
+
// Generate series of `.navbar-expand-*` responsive classes for configuring
// where your navbar collapses.
.navbar-expand {
@@ -174,6 +179,10 @@
}
}
+ .navbar-nav-scroll {
+ overflow: visible;
+ }
+
.navbar-collapse {
display: flex !important; // stylelint-disable-line declaration-no-important
}