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.

3.5 KB
Raw Blame
import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
import * as stylex from '@stylexjs/stylex';

export const chapterScrubberStyles = stylex.create({
  root: {
    userSelect: 'none',
    position: 'relative',
    flex: 'none',
    paddingBlockStart: '21px',
  },
  track: {
    touchAction: 'none',
    cursor: 'pointer',
    position: 'relative',
    height: '20px',
    borderRadius: '4px',
    outline: {
      'default': 'none',
      ':focus-visible': `2px solid ${cssVar.colorPrimaryBorder}`,
    },
  },
  segment: {
    pointerEvents: 'none',
    position: 'absolute',
    insetBlockStart: '7px',
    overflow: 'hidden',
    height: '6px',
    borderRadius: '3px',
    backgroundColor: cssVar.colorFill,
    backgroundImage: 'none',
  },
  played: {
    height: '100%',
    backgroundColor: cssVar.colorPrimary,
    backgroundImage: 'none',
  },
  noteSpan: {
    pointerEvents: 'none',
    position: 'absolute',
    insetBlockStart: '15px',
    height: '2px',
    borderRadius: '1px',
    backgroundColor: cssVar.colorError,
    backgroundImage: 'none',
  },
  range: {
    pointerEvents: 'none',
    position: 'absolute',
    insetBlockStart: '3px',
    height: '14px',
    borderRadius: '4px',
    backgroundColor: `color-mix(in srgb, ${cssVar.colorWarning} 25%, transparent)`,
    backgroundImage: 'none',
    boxShadow: `inset 0 0 0 1px ${cssVar.colorWarning}`,
  },
  head: {
    pointerEvents: 'none',
    position: 'absolute',
    insetBlockStart: '4px',
    width: '12px',
    height: '12px',
    marginInlineStart: '-6px',
    borderRadius: '50%',
    backgroundColor: cssVar.colorPrimary,
    backgroundImage: 'none',
    boxShadow: `0 0 0 2px ${cssVar.colorBgElevated}`,
  },
  pin: {
    cursor: 'pointer',
    position: 'absolute',
    zIndex: 1,
    display: 'grid',
    placeItems: 'center',
    margin: 0,
    padding: 0,
    borderWidth: 0,
    borderStyle: 'none',
    borderColor: 'currentcolor',
    borderRadius: '50%',
    fontFamily: 'inherit',
    backgroundColor: 'transparent',
    backgroundImage: 'none',
    outline: {
      'default': 'none',
      ':focus-visible': `2px solid ${cssVar.colorPrimaryBorder}`,
    },
    appearance: 'none',
  },
  notePin: {
    insetBlockStart: '4px',
    width: '20px',
    height: '20px',
    marginInlineStart: '-10px',
    fontSize: '12px',
    fontWeight: 600,
    lineHeight: '20px',
    color: cssVar.colorTextLightSolid,
    backgroundColor: cssVar.colorError,
  },
  claimPin: {
    insetBlockStart: '7px',
    width: '16px',
    height: '16px',
    marginInlineStart: '-8px',
  },
  claimDot: {
    width: '8px',
    height: '8px',
    borderRadius: '50%',
  },
  claimColor: (color: string) => ({ backgroundColor: color }),
  labels: {
    position: 'relative',
    height: '20px',
    marginBlockStart: '-3px',
  },
  label: {
    cursor: 'pointer',
    position: 'absolute',
    insetBlockStart: 0,
    overflow: 'hidden',
    margin: 0,
    padding: 0,
    borderWidth: 0,
    borderStyle: 'none',
    borderColor: 'currentcolor',
    borderRadius: '2px',
    fontFamily: 'inherit',
    fontSize: '12px',
    lineHeight: '20px',
    color: { 'default': cssVar.colorTextSecondary, ':hover': cssVar.colorText },
    textAlign: 'start',
    textOverflow: 'ellipsis',
    whiteSpace: 'nowrap',
    backgroundColor: 'transparent',
    backgroundImage: 'none',
    outline: {
      'default': 'none',
      ':focus-visible': `2px solid ${cssVar.colorPrimaryBorder}`,
    },
    appearance: 'none',
  },
  labelCurrent: {
    fontWeight: 500,
    color: { 'default': cssVar.colorText, ':hover': cssVar.colorText },
  },
});