Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

1.6 KB
Raw Blame
.avatar {
  display: inline-block;
  flex: none;
  line-height: 0;
  transform-origin: 50% 80%;
}
.avatar svg {
  overflow: visible;
}
.avatar[data-state="thinking"] {
  animation: bob 1.6s ease-in-out infinite;
}
.avatar[data-state="working"] {
  animation: sway 1.1s ease-in-out infinite;
}
.avatar[data-state="waiting"] {
  animation: wiggle 3.2s ease-in-out infinite;
}
.avatar[data-state="blocked"] svg {
  filter: grayscale(0.8) opacity(0.7);
}
.blink {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 6s var(--blink-delay) infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8%);
  }
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}
@keyframes wiggle {
  0%,
  40%,
  100% {
    transform: rotate(0);
  }
  6% {
    transform: rotate(-12deg);
  }
  12% {
    transform: rotate(10deg);
  }
  18% {
    transform: rotate(-8deg);
  }
  24% {
    transform: rotate(6deg);
  }
  30% {
    transform: rotate(-3deg);
  }
}
@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .avatar[data-state],
  .blink {
    animation: none;
  }
}

.image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  /* A picture can match the background (a black logo in dark mode, a white one in light): a hairline
     in the theme's border colour keeps its edge visible in both. */
  outline: 1px solid var(--b3);
  outline-offset: -1px;
}