krb5 commit: Consolidate style settings in kerb.css

Tom Yu tlyu at MIT.EDU
Thu Jan 31 15:40:49 EST 2013


https://github.com/krb5/krb5/commit/3e4bb2ebc22e947dfb5a6b3217fd35b3fb2dc82f
commit 3e4bb2ebc22e947dfb5a6b3217fd35b3fb2dc82f
Author: Tom Yu <tlyu at mit.edu>
Date:   Thu Jan 17 22:58:46 2013 -0500

    Consolidate style settings in kerb.css
    
    Move style settings that were previously in layout.html to kerb.css.
    Rename kerb.css kerb.css_t, making it a template, to allow
    parameterized style settings to remain parameterized.

 doc/_static/kerb.css       |  163 ------------------------------------------
 doc/_static/kerb.css_t     |  169 ++++++++++++++++++++++++++++++++++++++++++++
 doc/_templates/layout.html |    9 +--
 3 files changed, 172 insertions(+), 169 deletions(-)

diff --git a/doc/_static/kerb.css b/doc/_static/kerb.css_t
similarity index 94%
rename from doc/_static/kerb.css
rename to doc/_static/kerb.css_t
index 4d79929..40569b9 100644
--- a/doc/_static/kerb.css
+++ b/doc/_static/kerb.css_t
@@ -31,7 +31,7 @@ div.header-wrapper {
 
 div.header {
   padding-top: 10px;
-  padding-bottom: 10px;
+  padding-bottom: 0px;
 }
 
 div.header h1 {
@@ -39,6 +39,12 @@ div.header h1 {
   font-weight: normal;
 }
 
+div.header h1 a {
+  color: {{ theme_bgcolor }};
+  font-size: 120%;
+  padding-top: 10px;
+}
+
 div.header div.right a {
   color: #fcaf3e;
   letter-spacing: .1em;
@@ -84,7 +90,7 @@ div.sidebar {
   width: 20%;
   margin: 0;
   padding: 0;
-  background-color: white;
+  background-color: #F9F9F9;
 }
 
 div.sidebar ul {
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html
index bada10b..fa0ddc8 100644
--- a/doc/_templates/layout.html
+++ b/doc/_templates/layout.html
@@ -36,7 +36,7 @@
 
 {% block header %}
     <div class="header-wrapper">
-        <div class="header" style="padding-bottom: 0px;">
+        <div class="header">
             {% if logo %}
                 <p class="logo">
                     {# Link logo to kerberos.org #}
@@ -45,9 +45,7 @@
                 </p>
             {% endif %}
             {% block headertitle %}
-                <h1><a href="{{ pathto (master_doc) }}"
-                style="color: {{ theme_bgcolor }}; font-size: 120%;
-                padding-top: 10px;">{{ shorttitle|e }}</a></h1>
+            <h1><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></h1>
             {% endblock %}
             <div class="rel">
                 {%- for rellink in rellinks|reverse %}
@@ -67,8 +65,7 @@
         <div class="content">
             {%- block sidebar2 %} {%- endblock %}
             {%- block sidebar1 %}
-                <div class="sidebar"
-                    style="float: right; background: #F9F9F9">
+                <div class="sidebar">
                     <h2>{{ _('On this page') }} </h2>
                     {{ toc }}
                     <br/>


More information about the cvs-krb5 mailing list