Browse Source

Fix logo alignment

To fit with column alignment
Jocelyn Delalande 6 years ago
parent
commit
d9fb5858ad
2 changed files with 10 additions and 1 deletions
  1. 7 0
      coin/static/css/local.css
  2. 3 1
      coin/templates/base.html

+ 7 - 0
coin/static/css/local.css

@@ -39,6 +39,13 @@ h1 a, h1:after {
     font-weight: bold;
 }
 
+h1 span.columns {
+    /* avoid having different margins because of h1 font-size */
+    padding-left: 0.9375rem;
+    padding-right: 0.9375rem;
+}
+
+
 /* Barre de navigation */
 
 .side-nav {

+ 3 - 1
coin/templates/base.html

@@ -36,7 +36,9 @@
                     <div class="large-12">
                         <h1>
                             {% if SITE_LOGO_URL %}
-                            <img class="medium-3 large-3 columns" src="{{ SITE_LOGO_URL }}" alt="" />
+                            <span class="medium-3 large-3 columns">
+                                <img src="{{ SITE_LOGO_URL }}" alt="" />
+                            </span
                             {% else %}
                             <span class="default-logo">&nbsp;</span>
                             {% endif %}