You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
782 B
58 lines
782 B
.global-alert {
|
|
position: relative;
|
|
width: 100%;
|
|
background-color: var(--color-primary-default);
|
|
|
|
.msg {
|
|
@include H7;
|
|
|
|
width: 100%;
|
|
display: block;
|
|
color: var(--color-primary-inverse);
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.global-alert.hidden {
|
|
animation: alertHidden 0.5s ease forwards;
|
|
}
|
|
|
|
.global-alert.visible {
|
|
animation: alert 0.5s ease forwards;
|
|
}
|
|
|
|
/* Animation */
|
|
@keyframes alert {
|
|
0% {
|
|
opacity: 0;
|
|
top: -50px;
|
|
padding: 0;
|
|
line-height: 12px;
|
|
}
|
|
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
top: 0;
|
|
padding: 8px;
|
|
line-height: 12px;
|
|
}
|
|
}
|
|
|
|
@keyframes alertHidden {
|
|
0% {
|
|
top: 0;
|
|
opacity: 1;
|
|
padding: 8px;
|
|
line-height: 12px;
|
|
}
|
|
|
|
100% {
|
|
opacity: 0;
|
|
top: -50px;
|
|
padding: 0;
|
|
line-height: 0;
|
|
}
|
|
}
|
|
|