Skip to content

Commit

Permalink
fix: add padding for container
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed May 2, 2024
1 parent 0426e9d commit 518956b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions src/lib/components/Container.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<div class="container" {...$$restProps}>
<slot />
<div class="container-padder">
<div class="container" {...$$restProps}>
<slot />
</div>
</div>


<style lang="scss">
.container-padder {
padding: 0 24px;
}
</style>
2 changes: 1 addition & 1 deletion src/lib/components/footer/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
display: flex;
flex-direction: column;
gap: 12px;
padding: 24px;
padding: 24px 0;
}
.footer-title {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/stylesheets/system/_container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
margin: 0 auto;

@each $name, $data in $breakpoints {
@include breakpoint($name) {
max-width: map-get($data, 'min-width');
@media screen and (min-width: calc(#{inspect(map-get($data, 'min-width'))} + 24px * 2)) {
max-width: calc(map-get($data, 'min-width'));
}
}
}

0 comments on commit 518956b

Please sign in to comment.