diff --git a/app/packs/stylesheets/decidim/decidim_application.scss b/app/packs/stylesheets/decidim/decidim_application.scss index 094ccce..7842aaa 100644 --- a/app/packs/stylesheets/decidim/decidim_application.scss +++ b/app/packs/stylesheets/decidim/decidim_application.scss @@ -222,4 +222,28 @@ body, h1, h2, h3, h4, h5, h6, p, a, span { border-color: transparent; } } +} + +.g-language-choose-medium { + .goog-te-gadget { + text-indent: -9999px; + font-size: 0; + + & > span { + display: none; + } + + & > div { + text-indent: 0; + } + + select { + font-family: $body-font-family; + font-size: 1rem; + text-align: center; + background-color: transparent; + color: var(--secondary); + border-color: transparent; + } + } } \ No newline at end of file diff --git a/app/views/layouts/decidim/_language_chooser.html.erb b/app/views/layouts/decidim/_language_chooser.html.erb index 66daecf..3d29f4f 100644 --- a/app/views/layouts/decidim/_language_chooser.html.erb +++ b/app/views/layouts/decidim/_language_chooser.html.erb @@ -82,4 +82,7 @@
+
+
+
<% end %> diff --git a/app/views/layouts/decidim/_wrapper.html.erb b/app/views/layouts/decidim/_wrapper.html.erb index dc4283a..ed1e795 100644 --- a/app/views/layouts/decidim/_wrapper.html.erb +++ b/app/views/layouts/decidim/_wrapper.html.erb @@ -21,7 +21,23 @@ end -
+
+ +
+
<% if current_user %> - <%= render partial: "layouts/decidim/language_chooser" %> +
+
+
<%= render partial: "layouts/decidim/social_media_links" %> <%= render partial: "layouts/decidim/admin_links" %>
+ <% else %>
<%= link_to t("layouts.decidim.header.sign_in"), decidim.new_user_session_path, class: "sign-in-link" %>
+
+ <%= render partial: "layouts/decidim/language_chooser" %> +
- <%= render partial: "layouts/decidim/language_chooser" %> <%= render partial: "layouts/decidim/social_media_links" %> <%= render partial: "layouts/decidim/admin_links" %> <% end %>