This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-23 10:26:02 +02:00

74 lines
1.3 KiB
SCSS

.alert {
padding: 10px 20px;
//display: flex;
color: $white;
.close:hover,
.close:focus {
color: $white;
opacity: 1;
}
a{
color:rgba(white,0.8);
&:hover{
color:rgba(white,0.5);
}
}
}
.alert-outline,
.alert-outline-coloured {
color: $body-color;
background: white;
hr {
border-top-color: $gray-400;
}
.close:hover,
.close:focus {
color: $gray-800;
}
.alert-message {
@include border-right-radius($alert-border-radius);
@include border-left-radius($alert-border-radius);
border: 1px solid $gray-400;
}
.alert-message:not(:first-child) {
@include border-left-radius(0);
border-left: 0;
}
.alert-icon {
@include border-left-radius($alert-border-radius);
color: $white;
}
@each $color, $value in $theme-colors {
&.alert-#{$color} .alert-icon {
background-color: $value;
}
}
}
.alert-outline-coloured {
@each $color, $value in $theme-colors {
&.alert-#{$color} .alert-message {
border-color: $value;
}
}
}
.alert-icon {
padding: $alert-padding-y $alert-padding-x;
background: rgba(255,255,255,.1);
}
.alert-message {
padding: $alert-padding-y $alert-padding-x;
width: 100%;
box-sizing: border-box;
}