]> git.mxchange.org Git - friendica.git/commitdiff
bbcode documentation: fix anchors on frio
authorHypolite Petovan <ben.lort@gmail.com>
Thu, 3 Nov 2016 02:41:07 +0000 (22:41 -0400)
committerHypolite Petovan <ben.lort@gmail.com>
Thu, 3 Nov 2016 02:41:07 +0000 (22:41 -0400)
view/theme/frio/css/style.css

index 2be7d5cb46fc997fc1e3428629d5e53132a8ec97..d2467b1355f977671563d241e250935d8d9af798 100644 (file)
@@ -38,6 +38,18 @@ body a {
     color: $link_color;
     text-decoration: none;
 }
+/* Anchors incorrectly display with a fixed top menu. This global rule offsets all
+ * anchors so that accessing them with a # link will actually scroll the associated
+ * content in the visible part of the page.
+ *
+ * anchor.top should be the opposite of body.padding-top
+ */
+body a[name]:not([href]) {
+       display: block;
+    position: relative;
+    top: -110px;
+    visibility: hidden;
+}
 
 body a:hover, body a:focus, body a:active, body a.active, body .btn-link:hover{
     /*color: #59d6e4;*/