Fix issue with scroll padding not being applied

This commit is contained in:
Andrew Kingston 2023-01-23 13:47:11 +00:00
parent 614e10b62f
commit a10f7b3890
1 changed files with 7 additions and 1 deletions

View File

@ -18,6 +18,7 @@
<div class="main"> <div class="main">
<div class="content" class:wide class:noPadding class:narrow> <div class="content" class:wide class:noPadding class:narrow>
<slot /> <slot />
<div class="fix-scroll-padding" />
</div> </div>
</div> </div>
<div <div
@ -55,9 +56,14 @@
max-width: 1080px; max-width: 1080px;
margin: 0 auto; margin: 0 auto;
flex: 1 1 auto; flex: 1 1 auto;
padding: 50px; padding: 50px 50px 0 50px;
z-index: 1; z-index: 1;
} }
.fix-scroll-padding {
content: "";
display: block;
flex: 0 0 50px;
}
.content.wide { .content.wide {
max-width: none; max-width: none;
} }