{hascontent}
<div class="boxesContentBottom">
- {content}
- {foreach from=$__wcf->getBoxHandler()->getBoxes('contentBottom') item=box}
- {@$box}
- {/foreach}
- {/content}
+ <div class="boxContainer">
+ {content}
+ {foreach from=$__wcf->getBoxHandler()->getBoxes('contentBottom') item=box}
+ {@$box}
+ {/foreach}
+ {/content}
+ </div>
</div>
{/hascontent}
{hascontent}
<aside class="sidebar boxesSidebarRight">
- {content}
- {event name='boxesSidebarRightTop'}
-
- {* WCF2.1 Fallback *}
- {if !$sidebar|empty}
- {if !$sidebarOrientation|isset || $sidebarOrientation == 'right'}
- {@$sidebar}
+ <div class="boxContainer">
+ {content}
+ {event name='boxesSidebarRightTop'}
+
+ {* WCF2.1 Fallback *}
+ {if !$sidebar|empty}
+ {if !$sidebarOrientation|isset || $sidebarOrientation == 'right'}
+ {@$sidebar}
+ {/if}
{/if}
- {/if}
-
- {if !$sidebarRight|empty}
- {@$sidebarRight}
- {/if}
+
+ {if !$sidebarRight|empty}
+ {@$sidebarRight}
+ {/if}
+
+ {foreach from=$__wcf->getBoxHandler()->getBoxes('sidebarRight') item=box}
+ {@$box}
+ {/foreach}
- {foreach from=$__wcf->getBoxHandler()->getBoxes('sidebarRight') item=box}
- {@$box}
- {/foreach}
-
- {event name='boxesSidebarRightBottom'}
- {/content}
+ {event name='boxesSidebarRightBottom'}
+ {/content}
+ </div>
</aside>
{/hascontent}
</div>
{hascontent}
<div class="boxesBottom">
<div class="layoutBoundary">
- {content}
- {foreach from=$__wcf->getBoxHandler()->getBoxes('bottom') item=box}
- {@$box}
- {/foreach}
- {/content}
+ <div class="boxContainer">
+ {content}
+ {foreach from=$__wcf->getBoxHandler()->getBoxes('bottom') item=box}
+ {@$box}
+ {/foreach}
+ {/content}
+ </div>
</div>
</div>
{/hascontent}
{hascontent}
<div class="boxesFooterBoxes">
<div class="layoutBoundary">
- {content}
- {if !$footerBoxes|empty}{@$footerBoxes}{/if}
-
- {foreach from=$__wcf->getBoxHandler()->getBoxes('footerBoxes') item=box}
- {@$box}
- {/foreach}
- {/content}
+ <div class="boxContainer">
+ {content}
+ {if !$footerBoxes|empty}{@$footerBoxes}{/if}
+
+ {foreach from=$__wcf->getBoxHandler()->getBoxes('footerBoxes') item=box}
+ {@$box}
+ {/foreach}
+ {/content}
+ </div>
</div>
</div>
{/hascontent}
{hascontent}
<div class="boxesHeaderBoxes">
<div class="layoutBoundary">
- {content}
- {foreach from=$__wcf->getBoxHandler()->getBoxes('headerBoxes') item=box}
- {@$box}
- {/foreach}
- {/content}
+ <div class="boxContainer">
+ {content}
+ {foreach from=$__wcf->getBoxHandler()->getBoxes('headerBoxes') item=box}
+ {@$box}
+ {/foreach}
+ {/content}
+ </div>
</div>
</div>
{/hascontent}
{hascontent}
<div class="boxesTop">
<div class="layoutBoundary">
- {content}
- {foreach from=$__wcf->getBoxHandler()->getBoxes('top') item=box}
- {@$box}
- {/foreach}
- {/content}
+ <div class="boxContainer">
+ {content}
+ {foreach from=$__wcf->getBoxHandler()->getBoxes('top') item=box}
+ {@$box}
+ {/foreach}
+ {/content}
+ </div>
</div>
</div>
{/hascontent}
<div class="layoutBoundary">
{hascontent}
<aside class="sidebar boxesSidebarLeft">
- {content}
- {if MODULE_WCF_AD && $__disableAds|empty}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.top')}{/if}
-
- {event name='boxesSidebarLeftTop'}
-
- {* WCF2.1 Fallback *}
- {if !$sidebar|empty}
- {if !$sidebarOrientation|isset || $sidebarOrientation == 'left'}
- {@$sidebar}
- {/if}
- {/if}
-
- {if !$sidebarLeft|empty}
- {@$sidebarLeft}
- {/if}
-
- {foreach from=$__wcf->getBoxHandler()->getBoxes('sidebarLeft') item=box}
- {@$box}
- {/foreach}
-
- {event name='boxesSidebarLeftBottom'}
-
- {if MODULE_WCF_AD && $__disableAds|empty}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.bottom')}{/if}
- {/content}
+ <div class="boxContainer">
+ {content}
+ {if MODULE_WCF_AD && $__disableAds|empty}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.top')}{/if}
+
+ {event name='boxesSidebarLeftTop'}
+
+ {* WCF2.1 Fallback *}
+ {if !$sidebar|empty}
+ {if !$sidebarOrientation|isset || $sidebarOrientation == 'left'}
+ {@$sidebar}
+ {/if}
+ {/if}
+
+ {if !$sidebarLeft|empty}
+ {@$sidebarLeft}
+ {/if}
+
+ {foreach from=$__wcf->getBoxHandler()->getBoxes('sidebarLeft') item=box}
+ {@$box}
+ {/foreach}
+
+ {event name='boxesSidebarLeftBottom'}
+
+ {if MODULE_WCF_AD && $__disableAds|empty}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.bottom')}{/if}
+ {/content}
+ </div>
</aside>
{/hascontent}
{hascontent}
<div class="boxesContentTop">
- {content}
- {foreach from=$__wcf->getBoxHandler()->getBoxes('contentTop') item=box}
- {@$box}
- {/foreach}
- {/content}
+ <div class="boxContainer">
+ {content}
+ {foreach from=$__wcf->getBoxHandler()->getBoxes('contentTop') item=box}
+ {@$box}
+ {/foreach}
+ {/content}
+ </div>
</div>
{/hascontent}
<div class="layoutBoundary">
{hascontent}
<div class="boxesFooter">
- {content}
- {foreach from=$__wcf->getBoxHandler()->getBoxes('footer') item=box}
- {@$box}
- {/foreach}
- {/content}
+ <div class="boxContainer">
+ {content}
+ {foreach from=$__wcf->getBoxHandler()->getBoxes('footer') item=box}
+ {@$box}
+ {/foreach}
+ {/content}
+ </div>
</div>
{/hascontent}
{hascontent}
<div class="boxesHero">
<div class="layoutBoundary">
- {content}
- {foreach from=$__wcf->getBoxHandler()->getBoxes('hero') item=box}
- {@$box}
- {/foreach}
- {/content}
+ <div class="boxContainer">
+ {content}
+ {foreach from=$__wcf->getBoxHandler()->getBoxes('hero') item=box}
+ {@$box}
+ {/foreach}
+ {/content}
+ </div>
</div>
</div>
{/hascontent}
.boxesHeaderBoxes {
background-color: rgb(247, 248, 250); // @todo
- .layoutBoundary {
+ .boxContainer {
display: flex;
flex-wrap: wrap;
+ margin-left: -10px;
+ margin-right: -10px;
padding: 40px 0;
}
.box {
flex: 0 0 25%;
- padding-right: 10px;
padding-left: 10px;
-
+ padding-right: 10px;
+
&:nth-child(4n+1):not(:first-child) {
margin-top: 20px;
}
color: $wcfFooterBoxText;
}
- .layoutBoundary {
+ .boxContainer {
display: flex;
flex-wrap: wrap;
+ margin-left: -10px;
+ margin-right: -10px;
padding: 40px 0;
}
.box {
flex: 0 0 50%;
+ padding-left: 10px;
+ padding-right: 10px;
&:nth-child(n+3) {
margin-top: 40px;
}
-
- &:nth-child(even) {
- padding-left: 10px;
- }
-
- &:nth-child(odd) {
- padding-right: 10px;
- }
}
.boxImage {