Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

3.7 KB
Raw Blame
/*
 * The composer's Voice Mode bar: a lead icon and label, a fine full-width
 * waveform, then the microphone and exit controls. While a finished turn
 * settles into a message the lead and waveform dim beside three dots.
 */
.panel {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.lead {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  color: var(--app-ink);
  transition: opacity var(--app-floating-duration) ease;
}

.label {
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  color: var(--app-muted);
}

.wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 24px;
  color: var(--app-ink);
  transition: opacity var(--app-floating-duration) ease;
}

.wave i {
  display: block;
  flex: 0 0 1px;
  width: 1px;
  min-height: 1px;
  height: calc(1px + 23px * var(--voice-level, 0) * var(--voice-weight, 1));
  border-radius: 1px;
  background: currentColor;
  transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1);
  animation: voice-wave-ripple 1.1s ease-in-out infinite;
  animation-delay: var(--voice-delay, 0s);
}

/* The ripple only reshapes lines the voice has lifted; silence stays flat. */
@keyframes voice-wave-ripple {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

.panel[data-settling] .lead,
.panel[data-settling] .wave {
  opacity: 0.4;
}

.settlingDots {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 32px;
  height: 32px;
}

.settlingDots i {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--app-ink);
  animation: voice-settling-dot 1.2s ease-in-out infinite;
}

.settlingDots i:nth-child(2) {
  animation-delay: 0.16s;
}

.settlingDots i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes voice-settling-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.mute {
  width: 32px;
  height: 32px;
  margin-left: 20px;
  color: var(--app-ink);
}

.exit {
  width: 32px;
  height: 32px;
  border: 1px solid var(--app-border);
  border-radius: 9999px;
  background: var(--app-surface);
  color: var(--app-ink);
}

.exit:hover {
  background: var(--app-surface-soft);
}

/*
 * Another Me on the floating voice window. While the microphone listens it
 * beats like a heart, beating harder with the voice level; while the Human
 * speaks it keeps turning. Both rest when muted or silent.
 */
.avatarBeat {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 9999px;
  --voice-level: 0;
}

.avatarBeat[data-listening] {
  animation: voice-avatar-beat 1.1s ease-in-out infinite;
}

/* A round crop of the square avatar tile, so the turning face reads as a disc. */
.avatarSpin {
  display: inline-flex;
  overflow: hidden;
  border-radius: 9999px;
  animation: voice-avatar-spin 3.2s linear infinite;
  animation-play-state: paused;
}

.avatarBeat[data-speaking] .avatarSpin {
  animation-play-state: running;
}

@keyframes voice-avatar-beat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(calc(1.06 + var(--voice-level) * 0.12));
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(calc(1.03 + var(--voice-level) * 0.08));
  }
  70% {
    transform: scale(1);
  }
}

@keyframes voice-avatar-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatarBeat[data-listening],
  .avatarSpin {
    animation: none;
  }
  .wave i {
    transition: none;
    animation: none;
    height: 3px;
    opacity: 0.72;
  }
  .settlingDots i {
    animation: none;
    opacity: 0.6;
  }
}