AdminLTE/build/scss/_alerts.scss

53 lines
1.0 KiB
SCSS
Raw Normal View History

//
// 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 {
color: $black;
2015-10-31 21:00:16 +00:00
opacity: .2;
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;
}
}
//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));
}
}
2021-03-09 19:44:26 +00:00
.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));
}
}
}
//