From: Alexander Ebert Date: Wed, 31 Aug 2016 20:49:38 +0000 (+0200) Subject: Fixed jumping to a message on smartphones X-Git-Tag: 3.0.0_Beta_1~370^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=458cab06e205b4575a0f6de2c9183f40a1508e24;p=GitHub%2FWoltLab%2FWCF.git Fixed jumping to a message on smartphones --- 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 {