mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
redo how we do sticky sidebar because overflow-x/-y woes
This commit is contained in:
parent
7673f4cc74
commit
e9b6a064f8
@ -12,7 +12,7 @@
|
||||
}
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
overflow-y: auto;
|
||||
overflow-x: visible;
|
||||
font-size: .875rem;
|
||||
}
|
||||
|
||||
@ -52,9 +52,9 @@
|
||||
@supports (position: sticky) {
|
||||
position: sticky;
|
||||
top: 4rem;
|
||||
z-index: 1000;
|
||||
max-height: calc(100vh - 4rem);
|
||||
}
|
||||
overflow-y: auto;
|
||||
border-right: 1px solid rgba(0,0,0,.1);
|
||||
}
|
||||
|
||||
@ -64,7 +64,15 @@
|
||||
}
|
||||
|
||||
.bd-links {
|
||||
margin: 1rem -15px;
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
margin-right: -15px;
|
||||
margin-left: -15px;
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
max-height: calc(100vh - 9rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
// Override collapse behaviors
|
||||
@include media-breakpoint-up(md) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user