The label 'message <agent>' is the input's placeholder (the label stays for screen readers). The send button shows a spinner over its label while the request is pending and keeps its width, and the 'sent' line is gone: the box empties when the message is held. Spinner is a component of its own now, used by the button and the refresh picker.
26 lines
553 B
CSS
26 lines
553 B
CSS
.ui-spinner {
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
width: 1em;
|
|
height: 1em;
|
|
border: 2px solid currentColor;
|
|
border-right-color: transparent;
|
|
border-radius: 50%;
|
|
animation: ui-spinner-turn 0.8s linear infinite;
|
|
}
|
|
@keyframes ui-spinner-turn {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.ui-spinner {
|
|
animation: none;
|
|
}
|
|
}
|
|
:root[data-motion="reduce"] .ui-spinner {
|
|
animation: none;
|
|
}
|
|
:root[data-motion="allow"] .ui-spinner {
|
|
animation: ui-spinner-turn 0.8s linear infinite;
|
|
}
|