mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
50 lines
722 B
SCSS
50 lines
722 B
SCSS
@import 'variables';
|
|
@import 'mixins';
|
|
|
|
.alert {
|
|
font-size: $font-size-small;
|
|
display: inline-block;
|
|
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
|
|
&::after {
|
|
overflow: hidden;
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
animation: ellipsis steps(4, end) 1s infinite;
|
|
content: '\2026'; // ascii code for the ellipsis character
|
|
width: 0;
|
|
position: absolute;
|
|
}
|
|
}
|
|
|
|
.error {
|
|
composes: alert;
|
|
color: darken($alert-error, 60%);
|
|
|
|
:global(.dark) & {
|
|
color: darken($alert-error, 40%);
|
|
}
|
|
|
|
&::after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.success {
|
|
composes: alert;
|
|
color: darken($alert-success, 60%);
|
|
|
|
&::after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@keyframes ellipsis {
|
|
to {
|
|
width: 0.75rem;
|
|
}
|
|
}
|