mirror of https://github.com/ColorlibHQ/AdminLTE
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.0 KiB
53 lines
1.0 KiB
//
|
|
// Component: Alert
|
|
//
|
|
|
|
.alert {
|
|
.icon {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.close {
|
|
color: $black;
|
|
opacity: .2;
|
|
|
|
&:hover {
|
|
opacity: .5;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: $white;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
//Alert Variants
|
|
@each $color, $value in $theme-colors {
|
|
.alert-#{$color} {
|
|
color: color-yiq($value);
|
|
background-color: $value;
|
|
border-color: darken($value, 5%);
|
|
}
|
|
|
|
.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));
|
|
}
|
|
}
|
|
|
|
@include dark-mode () {
|
|
@each $color, $value in $theme-colors-alt {
|
|
.alert-#{$color} {
|
|
color: color-yiq($value);
|
|
background-color: $value;
|
|
border-color: darken($value, 5%);
|
|
}
|
|
|
|
.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));
|
|
}
|
|
}
|
|
}
|
|
|
|
//
|