{"version":3,"file":"style.mjs","names":["lobeStaticStylish"],"sources":["../../src/Toc/style.ts"],"sourcesContent":["import { createStaticStyles, cx, responsive } from 'antd-style';\n\nimport { lobeStaticStylish } from '@/styles';\n\nconst prefixCls = 'ant';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n  const fixHeight = 36;\n\n  return {\n    anchor: cx(\n      lobeStaticStylish.blur,\n      css`\n        overflow: hidden auto;\n        max-height: 60dvh !important;\n      `,\n    ),\n    container: css`\n      position: sticky;\n      inset-block-start: calc(var(--toc-header-height, 64px) + 64px);\n\n      overscroll-behavior: contain;\n      grid-area: toc;\n\n      width: var(--toc-width, 176px);\n      margin-inline-end: 24px;\n      border-radius: 3px;\n\n      -webkit-overflow-scrolling: touch;\n\n      ${responsive.sm} {\n        position: relative;\n        inset-inline-start: 0;\n        width: 100%;\n        margin-block-start: 0;\n      }\n\n      > h4 {\n        margin-block: 0 8px;\n        margin-inline: 0;\n\n        font-size: 12px;\n        line-height: 1;\n        color: ${cssVar.colorTextDescription};\n      }\n    `,\n    expand: cx(\n      lobeStaticStylish.blur,\n      css`\n        width: 100%;\n        border-block-end: 1px solid ${cssVar.colorSplit};\n        border-radius: 0;\n\n        background-color: color-mix(in srgb, ${cssVar.colorBgLayout} 50%, transparent);\n        box-shadow: ${cssVar.boxShadowSecondary};\n\n        .${prefixCls}-collapse-content {\n          overflow: auto;\n        }\n\n        .${prefixCls}-collapse-header {\n          z-index: 10;\n          padding-block: 8px !important;\n          padding-inline: 16px 8px !important;\n        }\n      `,\n    ),\n    mobileCtn: css`\n      width: 100%;\n      height: ${fixHeight}px;\n\n      .${prefixCls}-collapse-expand-icon {\n        color: ${cssVar.colorTextQuaternary};\n      }\n    `,\n  };\n});\n"],"mappings":";;;AAIA,MAAM,YAAY;AAElB,MAAa,SAAS,oBAAoB,EAAE,KAAK,aAAa;AAG5D,QAAO;EACL,QAAQ,GACNA,cAAkB,MAClB,GAAG;;;QAIJ;EACD,WAAW,GAAG;;;;;;;;;;;;;QAaV,WAAW,GAAG;;;;;;;;;;;;;iBAaL,OAAO,qBAAqB;;;EAGzC,QAAQ,GACNA,cAAkB,MAClB,GAAG;;sCAE6B,OAAO,WAAW;;;+CAGT,OAAO,cAAc;sBAC9C,OAAO,mBAAmB;;WAErC,UAAU;;;;WAIV,UAAU;;;;;QAMhB;EACD,WAAW,GAAG;;gBA5DE,GA8DM;;SAEjB,UAAU;iBACF,OAAO,oBAAoB;;;EAGzC;EACD"}