From: Alexander Ebert Date: Thu, 18 Aug 2016 22:07:32 +0000 (+0200) Subject: Fix for anchors headbutting the fixed header X-Git-Tag: 3.0.0_Beta_1~677 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e209f9c6fe78bc86579483700a8fb854352ffc58;p=GitHub%2FWoltLab%2FWCF.git Fix for anchors headbutting the fixed header --- diff --git a/wcfsetup/install/files/style/ui/message.scss b/wcfsetup/install/files/style/ui/message.scss index 041fcf0098..37b15fb881 100644 --- a/wcfsetup/install/files/style/ui/message.scss +++ b/wcfsetup/install/files/style/ui/message.scss @@ -7,8 +7,8 @@ > li { padding: 30px 0; - &:not(:first-child) { - border-top: 1px solid $wcfContentBorder; + &:not(:last-child) { + border-bottom: 1px solid $wcfContentBorder; } } } @@ -21,6 +21,24 @@ } } + @include screen-sm-up { + > .anchorFixedHeader:target { + margin-top: -50px; + pointer-events: none; + + &::after { + content: ""; + display: block; + height: 50px; + } + + > .message { + pointer-events: all; + transform: translateY(50px); + } + } + } + @include screen-sm-down { > li { padding-bottom: 20px;