Fix for anchors headbutting the fixed header
authorAlexander Ebert <ebert@woltlab.com>
Thu, 18 Aug 2016 22:07:32 +0000 (00:07 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 18 Aug 2016 22:07:32 +0000 (00:07 +0200)
wcfsetup/install/files/style/ui/message.scss

index 041fcf0098eb212e9f2904740fd0054dec612ac8..37b15fb8814bd3ffe550d4af7c9242eb61e0e22f 100644 (file)
@@ -7,8 +7,8 @@
                        > li {
                                padding: 30px 0;
                                
-                               &:not(:first-child) {
-                                       border-top: 1px solid $wcfContentBorder;
+                               &:not(:last-child) {
+                                       border-bottom: 1px solid $wcfContentBorder;
                                }
                        }
                }
                }
        }
        
+       @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;