Specify height on logo to fix main.offsetTop value on load
diff --git a/static/css/style.less b/static/css/style.less
index acb0b55..ad65a1a 100644
--- a/static/css/style.less
+++ b/static/css/style.less
@@ -14,6 +14,7 @@
@main_size: 755px;
@border_color: #C2C2C2;
@pag_label_size: 50px;
+@logo_size: 150px;
body {
margin: 0;
@@ -47,6 +48,11 @@
padding: 40px 20px 40px 20px;
text-align: center;
+ img#logo {
+ width: @logo_size;
+ height: @logo_size;
+ }
+
h2 {
margin: 15px 0 5px 0;
}
diff --git a/templates/base.html b/templates/base.html
index 9e7f42e..a812cc5 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -48,9 +48,9 @@
<div id="user_meta">
<a href="{{ SITEURL }}">
{% if USER_LOGO_URL %}
- <img src="{{ USER_LOGO_URL }}" alt="logo">
+ <img src="{{ USER_LOGO_URL }}" alt="logo" id="logo">
{% else %}
- <img src="{{ SITEURL }}/theme/images/logo.png" alt="logo">
+ <img src="{{ SITEURL }}/theme/images/logo.png" alt="logo" id="logo">
{% endif %}
</a>
<h2><a href="{{ SITEURL }}" class="nohover">{{ AUTHOR }}</a></h2>