From 487db634a17368ab7f3597016d806cf50eb6dd65 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 7 Jan 2016 19:31:22 +0100 Subject: [PATCH] Style overhaul (WIP) --- com.woltlab.wcf/templates/cms.tpl | 36 +++--- com.woltlab.wcf/templates/messageSidebar.tpl | 3 +- .../templates/pageFooterCopyright.tpl | 2 + .../templates/pageHeaderSearch.tpl | 38 +++--- .../install/files/acp/templates/boxAdd.tpl | 14 +-- .../files/acp/templates/pageHeaderSearch.tpl | 36 +++--- .../install/files/lib/data/box/Box.class.php | 2 +- .../install/files/lib/system/WCF.class.php | 9 ++ wcfsetup/install/files/style/layout/box.scss | 25 ++++ .../install/files/style/layout/content.scss | 111 +++++++++++------- wcfsetup/install/files/style/layout/form.scss | 11 +- .../install/files/style/layout/global.scss | 13 +- .../install/files/style/layout/layout.scss | 44 +------ .../files/style/layout/pageHeader.scss | 75 ++++++++++-- .../files/style/layout/pageHeaderSticky.scss | 4 +- wcfsetup/install/files/style/ui/button.scss | 13 +- wcfsetup/install/files/style/ui/dialog.scss | 2 +- wcfsetup/install/files/style/ui/dropdown.scss | 16 +-- wcfsetup/install/files/style/ui/message.scss | 16 +++ wcfsetup/setup/db/install.sql | 69 +++++------ 20 files changed, 334 insertions(+), 205 deletions(-) diff --git a/com.woltlab.wcf/templates/cms.tpl b/com.woltlab.wcf/templates/cms.tpl index d92be9d231..6535d44282 100644 --- a/com.woltlab.wcf/templates/cms.tpl +++ b/com.woltlab.wcf/templates/cms.tpl @@ -13,20 +13,22 @@ {include file='header'} {if $page->isLandingPage} -
-

{PAGE_TITLE|language}

+
+

{PAGE_TITLE|language}

{hascontent}

{content}{PAGE_DESCRIPTION|language}{/content}

{/hascontent}
{else} -
-

{$content[title]}

-
+ {if $content[title]} +
+

{$content[title]}

+
+ {/if} {/if} {include file='userNotice'} -
- {hascontent} +{hascontent} +
- {/hascontent} -
+
+{/hascontent} -
- {@$content[content]} -
+{if $content[content]} +
+ {@$content[content]} +
+{/if} -
- {hascontent} +{hascontent} +
- {/hascontent} -
+
+{/hascontent} {include file='footer'} diff --git a/com.woltlab.wcf/templates/messageSidebar.tpl b/com.woltlab.wcf/templates/messageSidebar.tpl index f459fedb17..dabd84ca40 100644 --- a/com.woltlab.wcf/templates/messageSidebar.tpl +++ b/com.woltlab.wcf/templates/messageSidebar.tpl @@ -13,8 +13,7 @@ {capture assign='__userAvatar'}{@$userProfile->getAvatar()->getImageTag(128)}{/capture} {@' - {* @TODO *} - {*if MESSAGE_SIDEBAR_ENABLE_ONLINE_STATUS && $userProfile->isOnline()}{lang}wcf.user.online{/lang}{/if*} + {if MESSAGE_SIDEBAR_ENABLE_ONLINE_STATUS && $userProfile->isOnline()}{lang}wcf.user.online{/lang}{/if} {/if} {/if} diff --git a/com.woltlab.wcf/templates/pageFooterCopyright.tpl b/com.woltlab.wcf/templates/pageFooterCopyright.tpl index b79336e5c9..2ab68fa1db 100644 --- a/com.woltlab.wcf/templates/pageFooterCopyright.tpl +++ b/com.woltlab.wcf/templates/pageFooterCopyright.tpl @@ -1 +1,3 @@ {event name='copyright'} + +{if $__wcf->isActiveApplication()}{/if} diff --git a/com.woltlab.wcf/templates/pageHeaderSearch.tpl b/com.woltlab.wcf/templates/pageHeaderSearch.tpl index 2fc10fb1ce..d9d212502e 100644 --- a/com.woltlab.wcf/templates/pageHeaderSearch.tpl +++ b/com.woltlab.wcf/templates/pageHeaderSearch.tpl @@ -5,21 +5,27 @@ {event name='settings'} -