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:
Dan Brown 2022-05-14 13:55:03 +01:00
parent 35a47a273b
commit 78920d7d65
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
2 changed files with 4 additions and 4 deletions

View File

@ -295,9 +295,9 @@ body.flexbox {
}
@include larger-than($xxl) {
.tri-layout-left-contents, .tri-layout-right-contents {
padding: $-m;
padding: $-xl $-m;
position: sticky;
top: $-m;
top: 0;
max-height: 100vh;
min-height: 50vh;
overflow-y: scroll;

View File

@ -27,7 +27,7 @@
<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">
@yield('left')
</aside>
@ -39,7 +39,7 @@
</div>
</div>
<div class="tri-layout-right print-hidden pt-m">
<div class="tri-layout-right print-hidden">
<aside class="tri-layout-right-contents">
@yield('right')
</aside>