Revert previous ("Sphinx doc: consolidate...")
authorTom Yu <tlyu@mit.edu>
Wed, 16 Jan 2013 22:45:41 +0000 (17:45 -0500)
committerTom Yu <tlyu@mit.edu>
Wed, 16 Jan 2013 23:02:27 +0000 (18:02 -0500)
This reverts commit 87634edc472cebde4a37d002b7006ed38a1b25c2.

That commit is not neutral with respect to the rendering of the HTML,
and causes the version built with the logo to look unacceptably
disordered.

doc/_static/kerb.css
doc/_templates/layout.html

index 4a17f8fda21941d3ba3148928da55f36ee681d2d..1eeebb71dcf040cc0998bfe716ebe62f296bfddc 100644 (file)
@@ -31,13 +31,12 @@ div.header-wrapper {
 
 div.header {
   padding-top: 10px;
-  padding-bottom: 0px;
+  padding-bottom: 10px;
 }
 
-div.header  h1 a {
-  color: #5d1509;
-  font-size: 120%;
-  padding-top: 10px;
+div.header h1 {
+  font-family: "Georgia", "Times New Roman", serif,  black;
+  font-weight: normal;
 }
 
 div.header div.right a {
@@ -47,11 +46,6 @@ div.header div.right a {
   float: right;
 }
 
-div.header div.rel{
-  font-size: 50%;
-  padding-bottom: 0px;
-}
-
 /* Content */
 
 div.document {
@@ -84,7 +78,7 @@ div.sidebar {
   width: 20%;
   margin: 0;
   padding: 0;
-  background: #F9F9F9;
+  background-color: white;
 }
 
 div.sidebar ul {
index 6f3b944ce87faa1ba8c045b8d167ddc6ea7a6ebe..4ec97c2ff5da18e30a24fc225d19ad8755e2ab15 100644 (file)
@@ -36,8 +36,7 @@
 
 {% block header %}
     <div class="header-wrapper">
-        <div class="header">
-            <h1><a href="{{pathto(master_doc)}}">{{shorttitle|e}}</a></h1>
+        <div class="header" style="padding-bottom: 0px;">
             {% if logo %}
                 <p class="logo">
                     {# Link logo to kerberos.org #}
                     src="{{ pathto('_static/' + logo, 1) }}" alt="Logo" /></a>
                 </p>
             {% endif %}
-            <div class="rel">
+            {% block headertitle %}
+                <h1><a href="{{ pathto (master_doc) }}"
+                style="color: {{ theme_bgcolor }}; font-size: 120%;
+                padding-top: 10px;">{{ shorttitle|e }}</a><h1>
+            {% endblock %}
+            <div class="rel" style="font-size: 50%; padding-bottom: 0px;" >
                 {%- for rellink in rellinks|reverse %}
                     <a href="{{ pathto(rellink[0]) }}"
                     title="{{ rellink[1]|striptags }}"
@@ -64,6 +68,7 @@
             {%- block sidebar2 %} {%- endblock %}
             {%- block sidebar1 %}
                 <div class="sidebar"
+                    style="float: right; background: #F9F9F9">
                     <h2>{{ _('On this page') }} </h2>
                     {{ toc }}
                     <br/>