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.

959 B
Raw Blame
import { createStaticStyles } from '@lobehub/ui';

export const styles = createStaticStyles(({ css, cssVar }) => ({
  dragging: css`
    will-change: transform;
    opacity: 0.5;
  `,
  fileItemDragOver: css`
    outline: 1px dashed ${cssVar.colorPrimaryBorder};
    outline-offset: -2px;

    &,
    &:hover {
      background: ${cssVar.colorPrimaryBg};
    }
  `,
  dropBefore: css`
    &,
    &:hover {
      box-shadow: inset 0 2px 0 0 ${cssVar.colorPrimary};
    }
  `,
  dropAfter: css`
    &,
    &:hover {
      box-shadow: inset 0 -2px 0 0 ${cssVar.colorPrimary};
    }
  `,
  treeItem: css`
    cursor: pointer;

    .hierarchy-node-actions {
      opacity: 0;
      transition: opacity 0.15s;
    }

    /* Hover, keyboard focus on the action itself, or an open menu keep it visible. */
    &:hover .hierarchy-node-actions,
    .hierarchy-node-actions:focus-within,
    .hierarchy-node-actions[data-open='true'] {
      opacity: 1;
    }
  `,
}));