2014-07-07 23:46:32 +08:00
|
|
|
.alert {
|
|
|
|
padding: 8px 35px 8px 14px;
|
2017-10-11 04:07:46 +08:00
|
|
|
background-color: $danger-low;
|
2014-07-07 23:46:32 +08:00
|
|
|
color: #c09853;
|
|
|
|
|
|
|
|
.close {
|
|
|
|
position: relative;
|
|
|
|
top: -2px;
|
|
|
|
right: -21px;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-small;
|
2014-07-07 23:46:32 +08:00
|
|
|
float: right;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-3;
|
2014-07-07 23:46:32 +08:00
|
|
|
font-weight: bold;
|
|
|
|
color: $primary;
|
|
|
|
opacity: 0.2;
|
|
|
|
filter: alpha(opacity = 20);
|
|
|
|
@include hover {
|
|
|
|
color: $primary;
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: 0.4;
|
|
|
|
filter: alpha(opacity = 40);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
button.close {
|
|
|
|
padding: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
-webkit-appearance: none;
|
|
|
|
}
|
|
|
|
&.alert-success {
|
2018-06-08 17:49:31 +08:00
|
|
|
background-color: $success-medium;
|
2014-08-06 21:31:13 +08:00
|
|
|
color: $primary;
|
2014-07-07 23:46:32 +08:00
|
|
|
}
|
|
|
|
&.alert-error {
|
2018-06-08 17:49:31 +08:00
|
|
|
background-color: rgba($danger-low, 0.5);
|
2014-08-06 21:31:13 +08:00
|
|
|
color: $primary;
|
2014-07-07 23:46:32 +08:00
|
|
|
}
|
|
|
|
&.alert-info {
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $tertiary-low;
|
2014-07-07 23:46:32 +08:00
|
|
|
color: $primary;
|
2016-04-26 12:36:28 +08:00
|
|
|
&.clickable {
|
2016-04-25 06:24:17 +08:00
|
|
|
color: $tertiary;
|
|
|
|
}
|
2014-07-07 23:46:32 +08:00
|
|
|
}
|
|
|
|
}
|