mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-07 09:30:58 +00:00
Updated tri-layout sidebars to not be cut-off by padding
Would cause effect where scroll area would be cut of by spacing which looked a bit strange. This retains the same padding sizes but cuts the content at the header or top of viewport.
This commit is contained in:
parent
35a47a273b
commit
78920d7d65
2 changed files with 4 additions and 4 deletions
resources
|
@ -295,9 +295,9 @@ body.flexbox {
|
||||||
}
|
}
|
||||||
@include larger-than($xxl) {
|
@include larger-than($xxl) {
|
||||||
.tri-layout-left-contents, .tri-layout-right-contents {
|
.tri-layout-left-contents, .tri-layout-right-contents {
|
||||||
padding: $-m;
|
padding: $-xl $-m;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: $-m;
|
top: 0;
|
||||||
max-height: 100vh;
|
max-height: 100vh;
|
||||||
min-height: 50vh;
|
min-height: 50vh;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
<div refs="tri-layout@container" class="tri-layout-container" @yield('container-attrs') >
|
<div refs="tri-layout@container" class="tri-layout-container" @yield('container-attrs') >
|
||||||
|
|
||||||
<div class="tri-layout-left print-hidden pt-m" id="sidebar">
|
<div class="tri-layout-left print-hidden" id="sidebar">
|
||||||
<aside class="tri-layout-left-contents">
|
<aside class="tri-layout-left-contents">
|
||||||
@yield('left')
|
@yield('left')
|
||||||
</aside>
|
</aside>
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tri-layout-right print-hidden pt-m">
|
<div class="tri-layout-right print-hidden">
|
||||||
<aside class="tri-layout-right-contents">
|
<aside class="tri-layout-right-contents">
|
||||||
@yield('right')
|
@yield('right')
|
||||||
</aside>
|
</aside>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue