Browse Source

DIV-1088: Make button hover colours consistent

pull/172/head
ariannedee 5 years ago
parent
commit
d61715fef0
4 changed files with 61 additions and 63 deletions
  1. +1
    -1
      edivorce/apps/core/static/css/main.css
  2. +57
    -59
      edivorce/apps/core/static/css/main.scss
  3. +1
    -1
      edivorce/apps/core/static/js/main.js
  4. +2
    -2
      edivorce/apps/core/templates/partials/alias_field.html

+ 1
- 1
edivorce/apps/core/static/css/main.css
File diff suppressed because it is too large
View File


+ 57
- 59
edivorce/apps/core/static/css/main.scss View File

@ -666,18 +666,64 @@ div#other_names_fields {
/* Buttons & Icons*/
.btn {
line-height: initial;
padding: 12px 15px;
line-height: initial;
padding: 12px 15px;
text-decoration: none;
}
.btn-primary {
background: $brand-buttons;
font-weight: bold;
color: #ffffff;
-webkit-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
font-size: 16px;
border: none;
border-radius: 4px;
&:hover {
background-color: darken($brand-buttons, 20%);
}
&:focus {
outline: none;
box-shadow: none;
-webkit-box-shadow: none;
&:active {
outline: none;
}
}
&:hover {
-webkit-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
}
&[disabled] {
pointer-events: none;
cursor: default;
}
&.btn-primary {
background: $brand-buttons;
&:hover {
background-color: $color-blue-dark;
}
}
&.btn-danger {
background-color: $color-red;
&:hover {
background-color: $color-red-dark;
}
}
&.btn-success {
background-color: $color-green;
&:hover {
background-color: $color-green-dark;
}
}
i.fa {
color: #ffffff;
}
}
i.fa {
@ -694,42 +740,12 @@ i.fa {
margin: 30px 0;
.btn {
font-size: 16px;
border: none;
border-radius: 4px;
padding: 16px;
background-color: $brand-buttons;
color: #ffffff;
margin-bottom: 12px;
-webkit-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
padding: 16px;
&:hover {
background-color: $brand-blue;
-webkit-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
}
i.fa {
color: #ffffff;
}
&.btn-success {
background-color: $color-green;
&.btn-success {
margin-left: 12px;
-webkit-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
&:hover {
background-color: $color-green-dark;
-webkit-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
}
}
&[disabled] {
pointer-events: none;
cursor: default;
}
}
}
@ -786,24 +802,6 @@ i.fa {
}
}
.btn-danger {
background-color: $color-red;
border: 1px solid $color-red;
font-weight: bold;
&:hover {
background-color: lighten($color-red, 5%);
}
}
.btn-success {
background-color: $color-green;
border: 1px solid $color-green;
font-weight: bold;
&:hover {
background-color: lighten($color-green, 5%);
}
}
.error-text {
color: $color-red;
font-weight: bold;


+ 1
- 1
edivorce/apps/core/static/js/main.js View File

@ -1075,7 +1075,7 @@ var mirrorOnChange = function(e) {
var deleteAddedField = function(e){
var field = $('#' + e.data.field_name);
var button = $('#' + e.data.button_name);
$(this).parent('div').remove();
$(this).parents('div').first().remove();
//enable btn_add_other_names button
if (button.prop('id') === "btn_add_other_names"){


+ 2
- 2
edivorce/apps/core/templates/partials/alias_field.html View File

@ -8,10 +8,10 @@
<option value="with assumed name of" {% if alias_type == 'with assumed name of' %} selected {% endif %}>With assumed name of</option>
</select>
{% endcomment %}
<div class="label-group">
<span class="label-group">
<label>Also known as</label>
<input type="button" class="btn btn-danger btn-delete-name form-control pull-right" value="Delete" />
</div>
</span>
<div class="form-group name-group alias-body">
<div>
<p>First Name</p>


Loading…
Cancel
Save