Fixes globalize tabs when there is a lot of available locales

This commit is contained in:
decabeza
2018-11-20 14:09:10 +01:00
parent 91e89ce3af
commit 8f27398bd1
2 changed files with 26 additions and 10 deletions

View File

@@ -359,19 +359,34 @@ a {
.tabs-title {
font-size: $base-font-size;
margin-bottom: 0;
margin-right: $line-height;
}
.tabs-title > a {
color: $text-medium;
margin-bottom: rem-calc(-1);
margin-right: $line-height;
position: relative;
&:hover {
background: none;
color: $brand;
text-decoration: none;
}
&[aria-selected='true'],
&.is-active {
border-bottom: 0;
color: $brand;
border-bottom: 2px solid $brand;
font-weight: bold;
&::after {
background: $brand;
border-bottom: 2px solid $brand;
bottom: 0;
content: '';
left: 0;
position: absolute;
width: 100%;
}
}
}

View File

@@ -1,10 +1,11 @@
<% I18n.available_locales.each do |locale| %>
<%= link_to t("admin.translations.remove_language"), "#",
id: "js_delete_#{locale}",
style: display_translation_style(resource, locale),
class: 'float-right delete js-delete-language',
data: { locale: locale } %>
<div class="text-right">
<%= link_to t("admin.translations.remove_language"), "#",
id: "js_delete_#{locale}",
style: display_translation_style(resource, locale),
class: 'delete js-delete-language',
data: { locale: locale } %>
</div>
<% end %>
<ul class="tabs" data-tabs id="globalize_locale">