blob: 741eb6929fe32aa5c5471b1d11c348a949428791 [file] [log] [blame]
.alert {
display: flex;
padding: $spacer;
border-width: 0 0 0 3px;
color: gray("800");
margin-bottom: $spacer;
&.small {
padding: $spacer / 2;
font-size: 1rem;
}
.close {
font-weight: 300;
opacity: 1;
}
.alert-icon {
display: inline-flex;
align-items: flex-start;
margin-right: $spacer;
margin-bottom: $spacer;
@include media-breakpoint-up(sm) {
margin-bottom: 0;
}
}
.alert-content {
flex: 1 1 auto;
}
.alert-title {
margin-bottom: $spacer / 2;
}
.alert-msg {
p + p {
margin-bottom: $spacer;
}
p:last-of-type {
margin-bottom: 0;
}
}
&.alert-info {
border-left-color: theme-color("info");
background-color: $info-light;
fill: theme-color("info");
}
&.alert-success {
border-left-color: theme-color("success");
background-color: $success-light;
fill: theme-color("success");
}
&.alert-danger {
border-left-color: theme-color("danger");
background-color: $danger-light;
fill: theme-color("danger");
}
&.alert-warning {
border-left-color: theme-color("warning");
background-color: $warning-light;
fill: theme-color("warning");
}
}