2024-08-21 02:01:29 +02:00
|
|
|
// Copyright 2024, Command Line Inc.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2024-11-22 01:05:04 +01:00
|
|
|
$dot-width: 11px;
|
|
|
|
$dot-color: var(--success-color);
|
|
|
|
$speed: 1.5s;
|
2024-07-03 23:32:55 +02:00
|
|
|
|
|
|
|
.typing {
|
|
|
|
position: relative;
|
2024-11-22 01:05:04 +01:00
|
|
|
height: $dot-width;
|
2024-07-03 23:32:55 +02:00
|
|
|
|
|
|
|
span {
|
|
|
|
content: "";
|
2024-11-22 01:05:04 +01:00
|
|
|
animation: blink $speed infinite;
|
2024-07-03 23:32:55 +02:00
|
|
|
animation-fill-mode: both;
|
2024-11-22 01:05:04 +01:00
|
|
|
height: $dot-width;
|
|
|
|
width: $dot-width;
|
|
|
|
background: $dot-color;
|
2024-07-03 23:32:55 +02:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
&:nth-child(2) {
|
|
|
|
animation-delay: 0.2s;
|
2024-11-22 01:05:04 +01:00
|
|
|
margin-left: $dot-width * 1.5;
|
2024-07-03 23:32:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:nth-child(3) {
|
|
|
|
animation-delay: 0.4s;
|
2024-11-22 01:05:04 +01:00
|
|
|
margin-left: $dot-width * 3;
|
2024-07-03 23:32:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes blink {
|
|
|
|
0% {
|
|
|
|
opacity: 0.1;
|
|
|
|
}
|
|
|
|
20% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0.1;
|
|
|
|
}
|
|
|
|
}
|