You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2014/10/27 20:44:42 UTC

svn commit: r1634664 - in /lucene/cms/branches/solr_6058/content/solr/assets: scripts/main.js styles/base.css

Author: sarowe
Date: Mon Oct 27 19:44:42 2014
New Revision: 1634664

URL: http://svn.apache.org/r1634664
Log:
SOLR-6058: fix anchor alignment (patch from Fran)

Modified:
    lucene/cms/branches/solr_6058/content/solr/assets/scripts/main.js
    lucene/cms/branches/solr_6058/content/solr/assets/styles/base.css

Modified: lucene/cms/branches/solr_6058/content/solr/assets/scripts/main.js
URL: http://svn.apache.org/viewvc/lucene/cms/branches/solr_6058/content/solr/assets/scripts/main.js?rev=1634664&r1=1634663&r2=1634664&view=diff
==============================================================================
--- lucene/cms/branches/solr_6058/content/solr/assets/scripts/main.js (original)
+++ lucene/cms/branches/solr_6058/content/solr/assets/scripts/main.js Mon Oct 27 19:44:42 2014
@@ -6,7 +6,11 @@
    * --------------------------------------------------------------------------
    */
 
-  $('.smooth-scroll').smoothScroll({ offset: 100 })
+
+  $(function() {
+    $('h2').addClass('offset');
+    $('.smooth-scroll').smoothScroll({ offset: 100 })
+  });
 
   /*
    * Shrinking top-bar

Modified: lucene/cms/branches/solr_6058/content/solr/assets/styles/base.css
URL: http://svn.apache.org/viewvc/lucene/cms/branches/solr_6058/content/solr/assets/styles/base.css?rev=1634664&r1=1634663&r2=1634664&view=diff
==============================================================================
--- lucene/cms/branches/solr_6058/content/solr/assets/styles/base.css (original)
+++ lucene/cms/branches/solr_6058/content/solr/assets/styles/base.css Mon Oct 27 19:44:42 2014
@@ -30,6 +30,13 @@ code, pre {
   outline: 0;
 }
 
+.offset {
+  position: relative;
+  top: -150px;
+  padding-top: 150px;
+  margin-bottom: -120px;
+}
+
 a.btn, button {
   border: 1px solid #d1d3d4;
   background-color:inherit;
@@ -682,6 +689,8 @@ section.list ul li p {
   padding-right: 30px;
   padding-left: 15px;
   border-right:1px solid #e4e2dd;
+  position: relative;
+  z-index: 2000;
 }
 
 .codehilite {