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.8 KB
Raw Blame
/*
 * One soft frame for every dialog. The top is washed in `--page-c` (the dialog's own tone,
 * else the page it opened from); without a tone the wash mixes with transparent and disappears.
 */
.dialog {
  --wash: color-mix(in srgb, var(--page-c, transparent) 11%, var(--card));
  width: min(820px, calc(100vw - 64px));
  max-height: calc(100vh - 64px - var(--titlebar-height, 0px));
  padding: 0;
  border: 1px solid var(--b1);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--wash) 0, var(--wash) 64px, var(--card) 220px) no-repeat
    var(--card);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  animation: dialogIn 260ms var(--ease-out);
}
.dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(4px);
}
.dialog[data-closing] {
  opacity: 0;
  transition: opacity 150ms;
}
@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}
.header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--wash);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px 22px;
}
.header h1 {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.body {
  padding: 8px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 18px;
  background: var(--card);
}
.body button:focus-visible,
.body select:focus-visible,
.footer button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.body input:focus-visible,
.body textarea:focus-visible {
  outline: none;
  border-color: var(--text2);
}
@media (prefers-reduced-motion: reduce) {
  .dialog {
    animation: none;
  }
  .dialog[data-closing] {
    transition: none;
  }
}