From 458cab06e205b4575a0f6de2c9183f40a1508e24 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 31 Aug 2016 22:49:38 +0200 Subject: [PATCH] Fixed jumping to a message on smartphones --- wcfsetup/install/files/style/ui/message.scss | 35 +++++++++++++++----- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/wcfsetup/install/files/style/ui/message.scss b/wcfsetup/install/files/style/ui/message.scss index 7d75d563fc..d253c88776 100644 --- a/wcfsetup/install/files/style/ui/message.scss +++ b/wcfsetup/install/files/style/ui/message.scss @@ -33,22 +33,39 @@ } } - @include screen-sm-up { - > .anchorFixedHeader:target { - margin-top: -50px; - pointer-events: none; + > .anchorFixedHeader:target { + pointer-events: none; + + &::after { + content: ""; + display: block; + } + + > .message { + pointer-events: all; + } + + @include screen-md-down { + margin-top: -52px; &::after { - content: ""; - display: block; - height: 50px; + height: 52px; } > .message { - pointer-events: all; - transform: translateY(50px); + transform: translateY(52px); } } + + @include screen-lg { + margin-top: -50px; + + &::after { + height: 50px; + } + + transform: translateY(50px); + } } @include screen-sm-down { -- 2.20.1