Adds styles for language select

This commit is contained in:
Alberto Garcia Cabeza
2015-08-20 21:28:10 +02:00
parent 73f5c4e21e
commit 2415a0fae2
5 changed files with 27 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -436,6 +436,24 @@ footer {
// 08. Forms
// - - - - - - - - - - - - - - - - - - - - - - - - -
form.language {
display: inline-block;
position: relative;
select {
background-image: url("language_select.png");
&.js-locale-switcher {
background-color: transparent;
border: 0;
color: white;
outline: none;
padding-left: rem-calc(3);
padding-right: rem-calc(24);
}
}
}
form {
label {

View File

@@ -1,10 +1,8 @@
<div class="locale">
<span>
<%= t("layouts.header.language") %>
<form>
<select class="js-locale-switcher" name='locale-switcher'>
<span class="inline-block"><%= t("layouts.header.language") %></span>
<form class="language">
<select class="js-locale-switcher" name="locale-switcher">
<%= available_locale_options_for_select %>
</select>
</form>
</span>
</div>

View File

@@ -13,7 +13,7 @@ en:
open_city_slogan: So the citizens can decide what kind of city they want.
see_all_debates: See all debates
my_account_link: My account
language: Site language
language: "Site language:"
administration: Administration
moderation: Moderation
welcome: Welcome

View File

@@ -1,5 +1,5 @@
es:
locale: 'Español'
locale: "Español"
layouts:
header:
external_link_transparency: Transparencia
@@ -13,7 +13,7 @@ es:
open_city_slogan: Para que todos los madrileños decidamos que ciudad queremos tener.
see_all_debates: Ver todos los debates
my_account_link: Mi cuenta
language: Idioma de la página
language: "Idioma de la página:"
administration: Administrar
moderation: Moderar
welcome: Portada