2019-07-18 14:22:11 +00:00
|
|
|
//
|
|
|
|
// Component: Alert
|
|
|
|
//
|
2015-10-31 21:00:16 +00:00
|
|
|
|
|
|
|
.alert {
|
|
|
|
.icon {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
.close {
|
2019-06-28 08:02:07 +00:00
|
|
|
color: $black;
|
2015-10-31 21:00:16 +00:00
|
|
|
opacity: .2;
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
&:hover {
|
|
|
|
opacity: .5;
|
|
|
|
}
|
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
a {
|
2018-03-17 17:07:55 +00:00
|
|
|
color: $white;
|
2015-10-31 21:00:16 +00:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-21 09:57:44 +00:00
|
|
|
//Alert Variants
|
|
|
|
@each $color, $value in $theme-colors {
|
|
|
|
.alert-#{$color} {
|
|
|
|
color: color-yiq($value);
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $value;
|
2019-10-21 09:57:44 +00:00
|
|
|
border-color: darken($value, 5%);
|
|
|
|
}
|
2019-07-18 14:22:11 +00:00
|
|
|
|
2019-10-21 09:57:44 +00:00
|
|
|
.alert-default-#{$color} {
|
|
|
|
@include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level));
|
|
|
|
}
|
2019-07-18 14:22:11 +00:00
|
|
|
}
|