Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

1.6 KB
Raw Blame
/* 状态 .badge [ok | err | warn | off]:一个状态点 + 文字,不做成彩色胶囊(和设置页「● 已连接」同一种写法)。
   计数 .badge.count:唯一保留底色的徽标——数字需要一块底才读得出是"几条待处理"。
   状态点 .dot [ok | err | warn]。
   定制:覆盖 --badge-fg(点的颜色;计数时也是字色)/ --badge-bg(只对计数生效)。 */
.badge {
  --badge-bg: var(--pill);
  --badge-fg: var(--faint);
  display: inline-flex; align-items: center; gap: var(--space-1-5); height: 20px;
  font-size: var(--fs-xs); white-space: nowrap; flex: none; color: var(--fg-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--badge-fg); flex: none; }
.badge.ok { --badge-fg: var(--green); }
.badge.err { --badge-fg: var(--red); }
.badge.warn { --badge-fg: var(--amber); }
.badge.off { --badge-fg: var(--faint); color: var(--muted); }
.badge.count {
  --badge-fg: var(--fg-2);
  height: 18px; min-width: 18px; padding: 0 var(--space-1-5); border-radius: var(--r-full); justify-content: center;
  font-size: var(--fs-2xs); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums;
  background: var(--badge-bg); color: var(--badge-fg);
}
.badge.count::before { content: none; }
.badge.count.warn { --badge-bg: var(--amber-soft); --badge-fg: var(--amber); }

.dot { --dot-bg: var(--faint); width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--dot-bg); display: inline-block; }
.dot.ok { --dot-bg: var(--green); }
.dot.err { --dot-bg: var(--red); }
.dot.warn { --dot-bg: var(--amber); }