From 6444e726716c65744a3d74d8e64831512ecf8bb4 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 29 Nov 2016 18:21:31 +0100 Subject: [PATCH] Overhauled cookie policy notice --- com.woltlab.wcf/templates/footer.tpl | 25 +++++++++------- wcfsetup/install/files/style/ui/alert.scss | 35 +++++++++++++++++++++- wcfsetup/install/lang/de.xml | 3 +- wcfsetup/install/lang/en.xml | 3 +- 4 files changed, 53 insertions(+), 13 deletions(-) diff --git a/com.woltlab.wcf/templates/footer.tpl b/com.woltlab.wcf/templates/footer.tpl index 96e051433b..c8d8956f11 100644 --- a/com.woltlab.wcf/templates/footer.tpl +++ b/com.woltlab.wcf/templates/footer.tpl @@ -103,21 +103,26 @@
{if MODULE_COOKIE_POLICY_PAGE && $__wcf->session->isFirstVisit() && !$__wcf->user->userID} -

- {lang}wcf.page.cookiePolicy.info{/lang} - - -

+
+
+ {lang}wcf.page.cookiePolicy.info{/lang} + {lang}wcf.page.cookiePolicy.info.moreInformation{/lang} + {lang}wcf.global.button.close{/lang} + +
+
{/if} {event name='pageFooterStickyNotice'}
diff --git a/wcfsetup/install/files/style/ui/alert.scss b/wcfsetup/install/files/style/ui/alert.scss index 2095948de9..f597ccbc78 100644 --- a/wcfsetup/install/files/style/ui/alert.scss +++ b/wcfsetup/install/files/style/ui/alert.scss @@ -75,7 +75,6 @@ left: 0; right: 0; position: fixed; - text-align: center; .error, .info, @@ -85,6 +84,40 @@ border-top-width: 1px; border-top-style: solid; margin-top: 0; + padding: 10px 0; + + @include screen-sm-down { + @include wcfFontSmall; + } + } + + .cookiePolicyNotice { + .layoutBoundary { + display: flex; + align-items: center; + + @include screen-sm-down { + flex-wrap: wrap; + } + } + + .cookiePolicyNoticeText { + flex: 1 1 auto; + + @include screen-sm-down { + flex-basis: 100%; + margin-bottom: 5px; + } + } + + .cookiePolicyNoticeMoreInformation, + .cookiePolicyNoticeDismiss { + flex: 0 0 auto; + } + + .cookiePolicyNoticeDismiss { + margin-left: 5px; + } } } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index ab0660daf1..1991340d22 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -2832,7 +2832,8 @@ Fehler sind beispielsweise: - Weitere Informationen]]> + + Community-Software: WoltLab Suite™{if SHOW_VERSION_NUMBER} {@WCF_VERSION}{/if}]]> getLink()}">{$article->getTitle()}]]> getLink()}">{$category->getTitle()}]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 5235c3edb2..d361890f78 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -2787,7 +2787,8 @@ Errors are: - More details]]> + + Powered by WoltLab Suite™{if SHOW_VERSION_NUMBER} {@WCF_VERSION}{/if}]]> getLink()}">{$article->getTitle()}]]> getLink()}">{$category->getTitle()}]]> -- 2.20.1