2024-04-30 12:16:09 +02:00
|
|
|
@define-mixin flash-type $type {
|
|
|
|
.flash--$(type) {
|
2024-05-03 20:08:52 +02:00
|
|
|
border: 0;
|
2024-04-30 12:16:09 +02:00
|
|
|
background: var(--$(type)-color);
|
2024-04-30 20:38:28 +02:00
|
|
|
}
|
2024-04-30 12:16:09 +02:00
|
|
|
|
2024-04-30 20:38:28 +02:00
|
|
|
.flash--$(type) .flash__message {
|
|
|
|
border-left: 1px solid var(--$(type)-border-color);
|
|
|
|
}
|
2024-04-30 12:16:09 +02:00
|
|
|
|
2024-04-30 20:38:28 +02:00
|
|
|
.flash--$(type) a {
|
|
|
|
color: var(--$(type)-link-color);
|
|
|
|
}
|
2024-04-30 12:16:09 +02:00
|
|
|
|
2024-04-30 20:38:28 +02:00
|
|
|
.flash--$(type) a:hover {
|
|
|
|
color: var(--link-hover-color);
|
2024-04-30 12:16:09 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.flash {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: auto 1fr;
|
|
|
|
margin: var(--padding-normal);
|
|
|
|
margin-bottom: 0;
|
|
|
|
border-radius: var(--border-radius-inner);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin if-phone {
|
|
|
|
.flash {
|
|
|
|
margin: var(--padding-small);
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.flash__icon {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
padding: var(--padding-normal);
|
|
|
|
}
|
|
|
|
|
|
|
|
.flash__message {
|
|
|
|
padding: var(--padding-normal);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin flash-type success;
|
|
|
|
@mixin flash-type warning;
|
|
|
|
@mixin flash-type danger;
|
|
|
|
@mixin flash-type information;
|
|
|
|
@mixin flash-type special;
|