accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [1/2] accumulo git commit: Fix section linking/hiding under nav menu problem
Date Wed, 04 May 2016 22:23:18 GMT
Repository: accumulo
Updated Branches:
  refs/heads/asf-site 987edc45d -> 3a07227ec
  refs/heads/gh-pages 966e99581 -> d81c5f099


Fix section linking/hiding under nav menu problem

Fix linking directly to a section within a document by id attribute, by using
CSS to insert an invisible blank area just above the item being linked to, so
the actual content shifts below the navigation menu.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/d81c5f09
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/d81c5f09
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/d81c5f09

Branch: refs/heads/gh-pages
Commit: d81c5f0990b01e18edc0f699e0ffb3512d58ad2a
Parents: 966e995
Author: Christopher Tubbs <ctubbsii@apache.org>
Authored: Wed May 4 18:17:30 2016 -0400
Committer: Christopher Tubbs <ctubbsii@apache.org>
Committed: Wed May 4 18:17:30 2016 -0400

----------------------------------------------------------------------
 css/accumulo.css | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/d81c5f09/css/accumulo.css
----------------------------------------------------------------------
diff --git a/css/accumulo.css b/css/accumulo.css
index a87a2c0..3ae9330 100644
--- a/css/accumulo.css
+++ b/css/accumulo.css
@@ -115,3 +115,13 @@ h6:hover .header-link {
   opacity: 1;
 }
 
+/* insert invisible blank space above elements with an id attribute, so that if
+ * they are linked to, the actual content will appear below the nav menu */
+*[id]:before {
+  display: block;
+  content: " ";
+  margin-top: -55px;
+  height: 55px;
+  visibility: hidden;
+}
+


Mime
View raw message