mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-24 06:39:38 +08:00
Fixed sidebar scroll on mobile
This commit is contained in:
@ -81,6 +81,8 @@ body.flexbox {
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
transform: translate3d(-330px, 0, 0);
|
transform: translate3d(-330px, 0, 0);
|
||||||
transition: transform ease-in-out 120ms;
|
transition: transform ease-in-out 120ms;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.flex.sidebar.open {
|
.flex.sidebar.open {
|
||||||
box-shadow: 1px 2px 2px 1px rgba(0,0,0,.10);
|
box-shadow: 1px 2px 2px 1px rgba(0,0,0,.10);
|
||||||
@ -114,6 +116,10 @@ body.flexbox {
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.sidebar .scroll-body {
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
#sidebar .scroll-body.fixed {
|
#sidebar .scroll-body.fixed {
|
||||||
width: auto !important;
|
width: auto !important;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user