Skip to content

Commit

Permalink
Fix main layout padding
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Nov 11, 2024
1 parent 90137a9 commit fc11ef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contao/templates/frontend/fe_page.html5
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<div class="inside">

<?php $this->block('main'); ?>
<div id="main">
<div id="main" class="main-section">
<div class="inside">
<?= $this->main ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion public/framework/scss/ctm_layout/_article-spacing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $spacings-list-bp: (
);

// Add default bottom-padding to #main articles
#main {
.main-section {
.mod_article:nth-last-child(n+2) { --mpb:#{$article-main-spacing-bottom}; }
.article_inside { padding-bottom: var(--mpb,0); }
}
Expand Down

0 comments on commit fc11ef1

Please sign in to comment.