Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

1.3 KB
Raw Blame
import { createStaticStyles } from '@lobehub/ui';

export const styles = createStaticStyles(({ css, cssVar }) => ({
  card: css`
    &:hover {
      border-color: ${cssVar.colorBorder} !important;
    }

    &:hover .task-template-dismiss {
      pointer-events: auto;
      opacity: 1;
    }
  `,
  compactRow: css`
    margin-inline: -8px;
    padding-inline-end: 4px;
    border-radius: ${cssVar.borderRadius};
    transition: background ${cssVar.motionDurationFast};

    &:hover {
      background: ${cssVar.colorFillQuaternary};
    }

    &:hover .task-template-dismiss,
    &:focus-within .task-template-dismiss {
      pointer-events: auto;
      opacity: 1;
    }
  `,
  compactMain: css`
    flex: 1;
    justify-content: flex-start;

    height: auto;
    padding-block: 6px;
    padding-inline: 8px 4px;
    border: 0;

    text-align: start;

    html[data-density='compact'] & {
      padding-block: 4px;
    }

    /* compactRow owns the hover highlight; the selector mirrors base-ui's
       variantText hover rule so it can outrank its fill */
    &:hover:not(:disabled, [aria-disabled='true']) {
      background: none;
    }
  `,
  compactTitle: css`
    min-width: 0;
  `,
  dismissBtn: css`
    pointer-events: none;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
  `,
}));