UX: Better close button positioning in alerts, some cleanup

This commit is contained in:
Kris 2019-04-05 16:21:16 -04:00
parent a6f283da30
commit a1c2181232
3 changed files with 11 additions and 26 deletions

View File

@ -1,25 +1,19 @@
.alert {
padding: 8px 35px 8px 14px;
padding: 8px 32px 8px 16px;
background-color: $danger-low;
color: #c09853;
color: $primary;
position: relative;
.close {
position: relative;
top: -2px;
right: -21px;
position: absolute;
top: 8px;
right: 8px;
line-height: $line-height-small;
float: right;
font-size: $font-up-3;
font-weight: bold;
color: $primary;
opacity: 0.2;
filter: alpha(opacity = 20);
color: $primary-low-mid;
@include hover {
color: $primary;
text-decoration: none;
color: $primary-medium;
cursor: pointer;
opacity: 0.4;
filter: alpha(opacity = 40);
}
}
button.close {
@ -30,11 +24,11 @@
-webkit-appearance: none;
}
&.alert-success {
background-color: $success-medium;
background-color: $success-low;
color: $primary;
}
&.alert-error {
background-color: rgba($danger-low, 0.5);
background-color: $danger-low;
color: $primary;
}
&.alert-info {

View File

@ -14,9 +14,8 @@
}
.close {
font-size: $font-up-4;
margin-top: -5px;
color: dark-light-choose($primary-low-mid, $secondary-medium);
color: $primary-low-mid;
padding-left: 5px;
float: right;
}

View File

@ -102,14 +102,6 @@
margin-bottom: 20px;
}
.alert {
padding: 5px;
&.alert-success {
background-color: $success-low;
color: $success;
}
}
.change-timestamp-footer .btn-primary {
float: right;
margin-right: 5px;