Skip to content

Commit

Permalink
Merge pull request #1626 from akvo/#1617-google-translate
Browse files Browse the repository at this point in the history
[#1617] google translate CSS tweaks
  • Loading branch information
KasperBrandt committed Jun 23, 2015
2 parents 41f9c67 + 4d5dda2 commit e9b33f2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
4 changes: 4 additions & 0 deletions akvo/rsr/static/styles-src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,10 @@ body.translationBarActive .nav {
padding-top: 39px; }
body.translationBarActive .navbar-brand {
margin-top: 39px; }
body.translationBarActive article, body.translationBarActive .updateMain, body.translationBarActive .organisationDetail, body.translationBarActive #map {
padding-top: 39px; }
body.translationBarActive div.skiptranslate ~ article, body.translationBarActive div.skiptranslate ~ .updateMain, body.translationBarActive div.skiptranslate ~ .organisationDetail, body.translationBarActive div.skiptranslate ~ #map {
padding-top: 0px; }

/* Cookie */
#cookie-law {
Expand Down
21 changes: 16 additions & 5 deletions akvo/rsr/static/styles-src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2022,12 +2022,23 @@ dd {
body {
&.translationBarActive {
.nav {
padding-top:39px;
padding-top: 39px;
}
.navbar-brand {
margin-top: 39px;
}
article,
.updateMain,
.organisationDetail,
#map {
padding-top: 39px;
}
div.skiptranslate ~ article,
div.skiptranslate ~ .updateMain,
div.skiptranslate ~ .organisationDetail,
div.skiptranslate ~ #map {
padding-top: 0px;
}

.navbar-brand {
margin-top:39px
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion akvo/templates/navigation/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ <h1>Akvo RSR</h1> {# Text is just a placeholder, svg from css #}
</li>
<li><a href="{% url 'sign_out' %}"><i class="fa fa-sign-out"></i> {% trans 'Sign out' %}</a></li>
{% endif %}
{% if not rsr_page or not rsr_page.google_translation %}
<li>
<div class="dropdown langDropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="false">
Expand All @@ -88,7 +89,7 @@ <h1>Akvo RSR</h1> {# Text is just a placeholder, svg from css #}
</ul>
</div>
</li>
{% if rsr_page and rsr_page.google_translation = True %}
{% else %}
<li>
<div class="dropdown langDropdown">
<div id="google_translate_element"></div>
Expand Down

0 comments on commit e9b33f2

Please sign in to comment.