use a svg logilab logo instead of a png one draft default tip
authorDavid Douard <david.douard@logilab.fr>
Thu, 03 May 2018 16:40:38 +0200
changeset 2 c017658d39ee
parent 1 5f4c560711a5
use a svg logilab logo instead of a png one
logilab_sphinx_themes/layout.html
logilab_sphinx_themes/static/lglb-sphinx-doc.css
--- a/logilab_sphinx_themes/layout.html	Thu May 03 16:16:50 2018 +0200
+++ b/logilab_sphinx_themes/layout.html	Thu May 03 16:40:38 2018 +0200
@@ -3,7 +3,7 @@
 {% block header %}
 <div class="header">
  <a href="http://www.logilab.fr/">
-  <img alt="Logilab logo" src="_static/logilab_logo.png"/>
+  <img class="logo" alt="Logilab logo" src="_static/logilab_logo.svg"/>
  </a>
 </div>
 {% endblock %}
--- a/logilab_sphinx_themes/static/lglb-sphinx-doc.css	Thu May 03 16:16:50 2018 +0200
+++ b/logilab_sphinx_themes/static/lglb-sphinx-doc.css	Thu May 03 16:40:38 2018 +0200
@@ -41,14 +41,18 @@
     padding: 0.5em 20px 20px 20px;
 }
 
-div.header { 
+div.header {
     margin: 0;
-    padding: 5px 5px 25px 5px;
+    padding: 5px 5px 5px 5px;
     background-color: #FFFFFF;
     text-align: left;
     line-height: 80%;
  }
 
+div.header img.logo {
+	height: 4em;
+}
+
 div.related {
     font-size: 1em;
 }
@@ -143,15 +147,15 @@
 
 /* -- body styles ----------------------------------------------------------- */
 
-p {    
+p {
     margin: 0.8em 0 0 0;
 }
 
-ul, ol {  
+ul, ol {
     margin: 0;
 }
 
-li {  
+li {
     margin: 0.2em 0 0 0;
 }
 
@@ -367,6 +371,6 @@
 
 /* TOC trees */
 
-li.toctree-l1 { 
+li.toctree-l1 {
     margin-top: 0.4em;
- }
\ No newline at end of file
+ }