From: Marcel Werk Date: Tue, 22 Dec 2015 16:27:54 +0000 (+0100) Subject: Small style improvements X-Git-Tag: 3.0.0_Beta_1~2030^2~207^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c734a302a236fe1e0799556b390e7111f399e401;p=GitHub%2FWoltLab%2FWCF.git Small style improvements --- diff --git a/com.woltlab.wcf/templates/footer.tpl b/com.woltlab.wcf/templates/footer.tpl index 496ff4876a..2cc8504a71 100644 --- a/com.woltlab.wcf/templates/footer.tpl +++ b/com.woltlab.wcf/templates/footer.tpl @@ -2,11 +2,13 @@ {hascontent}
- {content} - {foreach from=$__wcf->getBoxHandler()->getBoxes('contentBottom') item=box} - {@$box} - {/foreach} - {/content} +
+ {content} + {foreach from=$__wcf->getBoxHandler()->getBoxes('contentBottom') item=box} + {@$box} + {/foreach} + {/content} +
{/hascontent} @@ -17,26 +19,28 @@ {hascontent} {/hascontent} @@ -45,11 +49,13 @@ {hascontent}
- {content} - {foreach from=$__wcf->getBoxHandler()->getBoxes('bottom') item=box} - {@$box} - {/foreach} - {/content} +
+ {content} + {foreach from=$__wcf->getBoxHandler()->getBoxes('bottom') item=box} + {@$box} + {/foreach} + {/content} +
{/hascontent} @@ -57,13 +63,15 @@ {hascontent}
- {content} - {if !$footerBoxes|empty}{@$footerBoxes}{/if} - - {foreach from=$__wcf->getBoxHandler()->getBoxes('footerBoxes') item=box} - {@$box} - {/foreach} - {/content} +
+ {content} + {if !$footerBoxes|empty}{@$footerBoxes}{/if} + + {foreach from=$__wcf->getBoxHandler()->getBoxes('footerBoxes') item=box} + {@$box} + {/foreach} + {/content} +
{/hascontent} diff --git a/com.woltlab.wcf/templates/header.tpl b/com.woltlab.wcf/templates/header.tpl index c43f53daec..0d35123630 100644 --- a/com.woltlab.wcf/templates/header.tpl +++ b/com.woltlab.wcf/templates/header.tpl @@ -10,11 +10,13 @@ {hascontent}
- {content} - {foreach from=$__wcf->getBoxHandler()->getBoxes('headerBoxes') item=box} - {@$box} - {/foreach} - {/content} +
+ {content} + {foreach from=$__wcf->getBoxHandler()->getBoxes('headerBoxes') item=box} + {@$box} + {/foreach} + {/content} +
{/hascontent} @@ -24,11 +26,13 @@ {hascontent}
- {content} - {foreach from=$__wcf->getBoxHandler()->getBoxes('top') item=box} - {@$box} - {/foreach} - {/content} +
+ {content} + {foreach from=$__wcf->getBoxHandler()->getBoxes('top') item=box} + {@$box} + {/foreach} + {/content} +
{/hascontent} @@ -37,30 +41,32 @@
{hascontent} {/hascontent} @@ -69,11 +75,13 @@ {hascontent}
- {content} - {foreach from=$__wcf->getBoxHandler()->getBoxes('contentTop') item=box} - {@$box} - {/foreach} - {/content} +
+ {content} + {foreach from=$__wcf->getBoxHandler()->getBoxes('contentTop') item=box} + {@$box} + {/foreach} + {/content} +
{/hascontent} diff --git a/com.woltlab.wcf/templates/pageFooter.tpl b/com.woltlab.wcf/templates/pageFooter.tpl index 35ec30e87a..2f6c23fcee 100644 --- a/com.woltlab.wcf/templates/pageFooter.tpl +++ b/com.woltlab.wcf/templates/pageFooter.tpl @@ -2,11 +2,13 @@
{hascontent}
- {content} - {foreach from=$__wcf->getBoxHandler()->getBoxes('footer') item=box} - {@$box} - {/foreach} - {/content} +
+ {content} + {foreach from=$__wcf->getBoxHandler()->getBoxes('footer') item=box} + {@$box} + {/foreach} + {/content} +
{/hascontent} diff --git a/com.woltlab.wcf/templates/pageHeader.tpl b/com.woltlab.wcf/templates/pageHeader.tpl index 4b1451e7f3..200dce29a2 100644 --- a/com.woltlab.wcf/templates/pageHeader.tpl +++ b/com.woltlab.wcf/templates/pageHeader.tpl @@ -30,11 +30,13 @@ {hascontent}
- {content} - {foreach from=$__wcf->getBoxHandler()->getBoxes('hero') item=box} - {@$box} - {/foreach} - {/content} +
+ {content} + {foreach from=$__wcf->getBoxHandler()->getBoxes('hero') item=box} + {@$box} + {/foreach} + {/content} +
{/hascontent} diff --git a/wcfsetup/install/files/style/layout/box.scss b/wcfsetup/install/files/style/layout/box.scss index a2bfd1c712..829d596d51 100644 --- a/wcfsetup/install/files/style/layout/box.scss +++ b/wcfsetup/install/files/style/layout/box.scss @@ -60,17 +60,19 @@ .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; } @@ -266,26 +268,22 @@ 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 {