Permalink
Browse files

tweaked language selection

  • Loading branch information...
inmarelibero committed Nov 6, 2012
1 parent 91bfbda commit 07bcdf30d4cbbd88661c66b8140ce2154f39a04b
@@ -129,17 +129,19 @@ MAIN NAVBAR
margin-top: 2px;
padding-left: 20px;
.btn-group { z-index: 0;
- & > .btn { padding-bottom: 6px; }
+ & > .btn {
+ padding: 1px 2px 1px 4px;
+ }
+
.dropdown-menu {
min-width: 0px;
z-index: -1;
margin-top: -12px;
padding: 10px 0px 4px 0px;
a {
- display: inline-block;
- padding-left: 16px;
- padding-right: 16px;
+ display: inline-block;
+ padding: 2px 9px 2px 8px;
}
}
}
@@ -61,32 +61,6 @@
</div>
</form>
</li>
- <li id="nav-locales">
- <div class="btn-group">
- <button class="btn btn-mini">
- {% if interface_translation_locales[app.request.locale] is not null %}
- <img src="{{ asset('img/flags/'~interface_translation_locales[app.request.locale]['flag']) }}">
- {% else %}
- {{ app.request.locale }}
- {% endif %}
- </button>
- <button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu">
- {% for locale in interface_translation_locales %}
- <li>
- <a href="{{ path('homepage', {'_locale': locale.code}) }}">
- <img src="{{ asset('img/flags/'~locale.flag) }}">
- </a>
- </li>
- {% endfor %}
- </ul>
- </div>
- {#
- #}
- </select>
- </li>
</ul>
<ul class="nav pull-right">
<li>
@@ -119,6 +93,27 @@
</a>
</li>
{% endif %}
+ <li id="nav-locales">
+ <div class="btn-group">
+ <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
+ {% if interface_translation_locales[app.request.locale] is not null %}
+ <img src="{{ asset('img/flags/'~interface_translation_locales[app.request.locale]['flag']) }}">
+ {% else %}
+ {{ app.request.locale }}
+ {% endif %}
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu">
+ {% for locale in interface_translation_locales %}
+ <li>
+ <a href="{{ path('homepage', {'_locale': locale.code}) }}">
+ <img src="{{ asset('img/flags/'~locale.flag) }}">
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ </li>
</ul>
</div>
</div>

0 comments on commit 07bcdf3

Please sign in to comment.