Simplify styles for the remote translations message

Instead of adding all the styles of a callout and then overwriting half
of them, we can simply add the half we need.
This commit is contained in:
Javi Martín
2023-01-30 15:38:57 +01:00
parent 9bca73bc8b
commit fb2b88b10a
4 changed files with 18 additions and 18 deletions

View File

@@ -989,9 +989,7 @@ form {
}
&.primary {
background-color: $info-bg;
border-color: $info-border;
color: $color-info;
@include info-colors;
}
&.warning {

View File

@@ -1,10 +1,7 @@
.remote-translations-button {
@include info-colors;
font-size: $small-font-size;
text-align: center;
&.callout {
border: 0;
margin: 0;
overflow: visible;
padding: rem-calc(6);
[type="submit"] {
@@ -18,5 +15,4 @@
text-decoration: underline;
}
}
}
}

View File

@@ -94,6 +94,12 @@
@include text-color($anchor-color-hover, anchor-color-hover);
}
@mixin info-colors {
background-color: $info-bg;
border-color: $info-border;
color: $color-info;
}
%brand-background {
@include brand-background;
}

View File

@@ -1,4 +1,4 @@
<div class="remote-translations-button callout primary">
<div class="remote-translations-button">
<% if display_remote_translation_button? %>
<%= form_tag remote_translations_path do %>
<%= hidden_field_tag :remote_translations, remote_translations.to_json %>