Files
deepseek-harness/packages/client/ui-plan/src/client/PlanModeControl.module.css
2026-07-30 15:33:45 +08:00

50 lines
1.1 KiB
CSS

/* Plan-mode toggle chip: quiet while off; the pressed state takes the
business accent pair (same token pairing as the trajectory user badge). */
.wrap {
display: inline-flex;
align-items: center;
gap: 6px;
}
.chip {
display: inline-flex;
align-items: center;
padding: 4px 8px;
border: none;
border-radius: 8px;
background: transparent;
color: var(--dsw-alias-label-secondary);
font-size: 14px;
line-height: 20px;
cursor: pointer;
}
.chip:hover:not(:disabled) {
background: var(--dsw-alias-interactive-bg-hover);
}
/* Hovering keeps the pressed accent: the higher-specificity hover rule above
would otherwise swap it back to the neutral hover wash. */
.chip[aria-pressed='true'],
.chip[aria-pressed='true']:hover:not(:disabled) {
color: var(--dsw-alias-state-business-primary);
background: var(--dsw-alias-state-business-tertiary);
}
.chip:focus-visible {
outline: 2px solid var(--dsw-alias-label-secondary);
outline-offset: 2px;
}
.chip:disabled {
opacity: 0.6;
cursor: default;
}
.error {
color: var(--dsw-alias-state-error-primary);
font-size: 12px;
line-height: 18px;
}