]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- pull in the whole top into the fixed part, reduce the size, clean it up
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 May 2014 16:31:43 +0000 (12:31 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 May 2014 16:31:43 +0000 (12:31 -0400)
doc/build/conf.py
doc/build/static/docs.css
doc/build/static/init.js
doc/build/templates/layout.mako
doc/build/templates/search.mako

index ff7f70661a473067bf5514b8d3c8b9c2808f4879..b714fc579dd1f669d94e291c9e5ab5bb74082fc2 100644 (file)
@@ -206,9 +206,11 @@ html_domain_indices = False
 
 # If true, the reST sources are included in the HTML build as _sources/<name>.
 #html_copy_source = True
+html_copy_source = False
 
 # If true, links to the reST sources are added to the pages.
 #html_show_sourcelink = True
+html_show_sourcelink = False
 
 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
 #html_show_sphinx = True
index 54ae768d0974c8e0cd628c0ac6e09df0ef9fafe4..d3131bfc77083f9972f4537a9597bd50183ccbdf 100644 (file)
@@ -2,7 +2,7 @@
 
 body {
   background-color: #FDFBFC;
-  margin:38px;
+  margin:38px;
   color:#333333;
 }
 
@@ -61,6 +61,7 @@ a.headerlink:hover {
 
 #docs-container {
   max-width:1000px;
+  margin: 0 auto;
 }
 
 
@@ -77,7 +78,7 @@ a.headerlink:hover {
   font-family:Verdana,sans-serif;
 
   font-size:.9em;
-
+  position: relative;
 }
 
 #docs-top-navigation,
@@ -92,8 +93,14 @@ a.headerlink:hover {
 #docs-top-navigation {
   margin:10px 0px;
   line-height:1.2em;
+  position: relative;
 }
 
+#docs-version-header {
+  position: absolute;
+  right: 0;
+  bottom: 0;
+}
 
 .docs-navigation-links {
   font-family:Verdana,sans-serif;
@@ -121,13 +128,10 @@ a.headerlink:hover {
     font-size:1.6em;
 }
 
-#docs-search {
-    float:right;
-}
-
 #docs-top-page-control {
-  float:right;
-  width:350px;
+  position: absolute;
+  right: 20px;
+  bottom: 14px;
 }
 
 #docs-top-page-control ul {
index c7de23a9a892585480de4b10301f3442262a1fe6..23a4d973313096c8f87b2e27fc26b05ee2de365b 100644 (file)
@@ -17,28 +17,27 @@ function initFloatyThings() {
         $("#docs-top-navigation-container").css("width", $("#docs-container").width());
     }
 
-    $(window).scroll(function() {
+    function setScroll() {
         var scrolltop = $(window).scrollTop();
         if (scrolltop >= automatedBreakpoint - 10) {
             setNavSize();
             $("#docs-top-navigation-container").addClass("automated");
             $("#docs-sidebar").addClass("automated");
             $("#docs-sidebar").css("top", $("#docs-top-navigation-container").height());
-            $("#docs-top-navigation").addClass("automated");
-            $("#docs-body").css("padding-top", "100px");
+            $("#docs-body").css("margin-top", $("#docs-top-navigation-container").height());
         }
         else {
             $("#docs-top-navigation-container.automated").css("width", "");
             $("#docs-sidebar.automated").scrollTop(0);
             $("#docs-top-navigation-container").removeClass("automated");
             $("#docs-sidebar").removeClass("automated");
-            $("#docs-top-navigation").removeClass("automated");
-            $("#docs-body").css("padding-top", "");
+            $("#docs-body").css("margin-top", "");
         }
-
-    })
+    }
+    $(window).scroll(setScroll)
 
     $(window).resize(setNavSize());
+    setScroll();
 }
 
 
index 192780effa7087e3022d2bdce3148b5cce6815ee..e7de6e2dbb60b1a664bae4386b04ce0beb628671 100644 (file)
@@ -89,52 +89,41 @@ withsidebar = bool(toc) and current_page_name != 'index'
 
 </%block>
 
-<div id="docs-header">
-    <h1>${docstitle|h}</h1>
-
-    <div id="docs-search">
-    Search:
-    <form class="search" action="${pathto('search')}" method="get">
-      <input type="text" name="q" size="18" /> <input type="submit" value="${_('Search')}" />
-      <input type="hidden" name="check_keywords" value="yes" />
-      <input type="hidden" name="area" value="default" />
-    </form>
-    </div>
 
+<div id="docs-top-navigation-container">
+<div id="docs-header">
     <div id="docs-version-header">
         Release: <span class="version-num">${release}</span> | Release Date: ${release_date}
 
-        % if pdf_url:
-        | <a href="${pdf_url}">Download PDF</a>
-        % endif
 
     </div>
 
-</div>
+    <h1>${docstitle|h}</h1>
 
-<div id="docs-top-navigation-container">
+
+
+</div>
 <div id="docs-top-navigation">
     <div id="docs-top-page-control" class="docs-navigation-links">
-        <ul>
         % if prevtopic:
-            <li>Prev:
-            <a href="${prevtopic['link']|h}" title="${_('previous chapter')}">${prevtopic['title']}</a>
-            </li>
+            <a href="${prevtopic['link']|h}" title="${prevtopic['title']}">Prev</a> |
         % endif
         % if nexttopic:
-            <li>Next:
-            <a href="${nexttopic['link']|h}" title="${_('next chapter')}">${nexttopic['title']}</a>
-            </li>
+            <a href="${nexttopic['link']|h}" title="${nexttopic['title']}">Next</a> |
+        % endif
+
+        <a href="${pathto('index')}">Contents</a> |
+        <a href="${pathto('genindex')}">Index</a>
+        % if pdf_url:
+        | <a href="${pdf_url}">PDF</a>
         % endif
 
-        <li>
-            <a href="${pathto('contents')}">Table of Contents</a> |
-            <a href="${pathto('genindex')}">Index</a>
-            % if sourcename:
-            | <a href="${pathto('_sources/' + sourcename, True)|h}">${_('view source')}
-            % endif
-        </li>
-        </ul>
+        | <form class="search" action="${pathto('search')}" method="get">
+          <input type="text" name="q" size="12" /> <input type="submit" value="${_('Search')}" />
+          <input type="hidden" name="check_keywords" value="yes" />
+          <input type="hidden" name="area" value="default" />
+        </form>
+
     </div>
 
     <div id="docs-navigation-banner">
@@ -163,15 +152,6 @@ withsidebar = bool(toc) and current_page_name != 'index'
 % if withsidebar:
     <div id="docs-sidebar">
 
-    <h4>Quick Search</h4>
-    <p>
-    <form class="search" action="${pathto('search')}" method="get">
-      <input type="text" name="q" size="18" /> <input type="submit" value="${_('Search')}" />
-      <input type="hidden" name="check_keywords" value="yes" />
-      <input type="hidden" name="area" value="default" />
-    </form>
-    </p>
-
     <h3><a href="${pathto('index')}">Table of Contents</a></h3>
     ${toc}
 
index 83a3fcd84a389e6a11715ae3834a21f781b1ac36..d0aa3d8259e6e447c3b625b6d4d461ca61ed9b08 100644 (file)
     </script>
 </%block>
 
-<div id="searchform">
-<h3>Enter Search Terms:</h3>
-<form class="search" action="${pathto('search')}" method="get">
-  <input type="text" name="q" size="18" /> <input type="submit" value="${_('Search')}" />
-  <input type="hidden" name="check_keywords" value="yes" />
-  <input type="hidden" name="area" value="default" />
-</form>
-</div>
-
 <div id="search-results"></div>
 
 <%block name="footer">