From 405de3b60f453dfca0c11555f653128694b7ecb6 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 18 May 2022 12:45:06 +0200 Subject: [PATCH] Improved behaviour for contentHeaderNavigation buttons ref https://www.woltlab.com/community/thread/295238-%C3%A4nderung-der-reihenfolge-von-antworten-pagination-abonnieren-in-der-mobilen-ansi/?postID=1894039#post1894039 --- .../install/files/style/layout/content.scss | 48 ++++++++++++------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/wcfsetup/install/files/style/layout/content.scss b/wcfsetup/install/files/style/layout/content.scss index 7141856f8e..5e4764b26d 100644 --- a/wcfsetup/install/files/style/layout/content.scss +++ b/wcfsetup/install/files/style/layout/content.scss @@ -27,6 +27,28 @@ } .contentHeader { + align-items: flex-start; + display: flex; + justify-content: flex-end; + margin-top: -10px; + + .contentHeaderIcon { + flex: 0 0 64px; + margin-right: 15px; + } + + .contentHeaderTitle { + flex: 1 auto; + margin-top: 10px; + } + + .contentHeaderNavigation { + flex: 0 0 auto; + margin-left: 15px; + margin-top: 10px; + max-width: 50%; + } + .contentHeaderDescription { color: $wcfContentDimmedText; margin-top: 5px; @@ -79,31 +101,15 @@ } @include screen-sm-down { + flex-wrap: wrap; + .contentHeaderIcon { display: none; } - - .contentHeaderNavigation > ul { - margin-top: 10px; - } } @include screen-md-up { - display: flex; - align-items: flex-start; - - .contentHeaderIcon { - flex: 0 0 64px; - margin-right: 15px; - } - - .contentHeaderTitle { - flex: 1 1 0%; - } - .contentHeaderNavigation { - flex: 0 0 auto; - margin-left: 15px; max-width: 50%; } } @@ -433,6 +439,12 @@ fieldset { } } +@include screen-sm-down { + .contentHeader + .contentInteraction { + margin-top: 10px; + } +} + .contentInteractionButtonContainer { align-self: center; display: flex; -- 2.20.1