From e209f9c6fe78bc86579483700a8fb854352ffc58 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 19 Aug 2016 00:07:32 +0200 Subject: [PATCH] Fix for anchors headbutting the fixed header --- wcfsetup/install/files/style/ui/message.scss | 22 ++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) 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; -- 2.20.1