Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions thinkhazard/static/less/report.less
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,9 @@ footer {
}

.navbar-center-logo {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 50%;
margin-top: -18px;
display: block;
float: left;
margin-top: 25px;
font-size: 22px;
}

Expand Down Expand Up @@ -511,9 +509,7 @@ footer {

@media (max-width: 992px) {
.navbar-center-logo {
left: 15px;
transform: translateY(-50%);
margin-top: 0;
margin-left: 15px;
}

#search.navbar-left {
Expand Down
10 changes: 5 additions & 5 deletions thinkhazard/templates/common.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
<img src="{{'thinkhazard:static/images/logo-gfdrr-world-bank.svg'|static_url}}" alt="GFDRR">
</a>
{% endif %}
{% if includes.thinkhazard_logo %}
<a class="navbar-center-logo logo" href="{{'index'|route_url}}" title="{{gettext('Go to homepage')}}">
<span class="logo-think">Think</span><span class="logo-hazard">Hazard</span><span class="logo-think">!</span>
</a>
{% endif %}
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
Expand All @@ -23,6 +18,11 @@
</div>
</form>
{% endif %}
{% if includes.thinkhazard_logo %}
<a class="navbar-center-logo logo" href="{{'index'|route_url}}" title="{{gettext('Go to homepage')}}">
<span class="logo-think">Think</span><span class="logo-hazard">Hazard</span><span class="logo-think">!</span>
</a>
{% endif %}
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
Expand Down