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.

2.0 KB
Raw Blame
.root {
  position: relative;
  flex: none;
  -webkit-app-region: no-drag;
}
.trigger {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.trigger[data-labelled] {
  width: auto;
  border-radius: var(--radius-pill);
  display: inline-flex;
  gap: 5px;
  padding: 0 8px;
  font: inherit;
  white-space: nowrap;
}
.trigger[data-menu] {
  background: var(--tert);
  color: var(--text);
}
.trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.trigger:enabled:hover,
.trigger[aria-expanded="true"] {
  background: var(--hover);
  color: var(--text);
}
.trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.menu {
  box-sizing: border-box;
  position: absolute;
  z-index: 150;
  width: min(300px, calc(100vw - 40px));
  max-height: min(65vh, 500px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  /* The floating soft card shared by every menu. */
  border: 1px solid var(--b1);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font: 13px / 1.5 var(--font-sans);
  animation: menuIn 180ms var(--ease-out);
}
.menu[data-placement="above"] {
  top: auto;
  bottom: calc(100% + 5px);
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.menu p {
  margin: 6px 10px 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text2);
}
/* Items lead with their IconTile; the tile carries the colour, the label stays in text colour. */
.menu button {
  max-width: 100%;
  min-height: 34px;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  text-align: left;
  justify-content: flex-start;
  white-space: normal;
  transition: background-color 140ms ease;
}
.menu > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .menu {
    animation: none;
  }
}