Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

1.4 KB
Raw Blame
/* Shared action feedback: only this background layer moves; the hitbox and
   children remain stationary. Face values are theme-token aliases supplied by
   Button / ChromeIconButton / SidebarIconButton, not a second theme registry. */
:where(.cindy-button-frame) {
  position: relative;
  isolation: isolate;
}

.cindy-button-frame::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: calc(0px - var(--button-face-outset, 0px));
  border-radius: inherit;
  border: var(--button-face-border-width, 0px) solid var(--button-face-border, transparent);
  background: var(--button-face-bg, transparent);
  transition:
    inset var(--motion-instant) var(--motion-ease-out),
    background-color var(--motion-fast),
    border-color var(--motion-fast);
}

.cindy-button-frame:enabled:not([aria-disabled='true']):not(
    [data-press-feedback='none']
  ):active::before {
  inset: calc(var(--space-px) - var(--button-face-outset, 0px));
}

.cindy-button {
  --button-face-outset: var(--space-px);
  --button-face-border-width: var(--space-px);
}

@media (prefers-reduced-motion: reduce) {
  .cindy-button-frame,
  .cindy-button-frame::before {
    transition: none;
  }

  .cindy-button-frame:enabled:not([aria-disabled='true']):not(
      [data-press-feedback='none']
    ):active::before {
    inset: calc(0px - var(--button-face-outset, 0px));
  }
}