@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 2.36 kB
Source Map (JSON)
{"version":3,"file":"style.mjs","names":["lobeStaticStylish","cssVar"],"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,YAAK,uBAAa;AAG5D,QAAO;EACL,QAAQ,GACNA,cAAkB,MAClB,KAAG;;;QAIJ;EACD,WAAW,KAAG;;;;;;;;;;;;;QAaV,WAAW,GAAG;;;;;;;;;;;;;iBAaLC,SAAO,qBAAqB;;;EAGzC,QAAQ,GACND,cAAkB,MAClB,KAAG;;sCAE6BC,SAAO,WAAW;;;+CAGTA,SAAO,cAAc;sBAC9CA,SAAO,mBAAmB;;WAErC,UAAU;;;;WAIV,UAAU;;;;;QAMhB;EACD,WAAW,KAAG;;gBA5DE,GA8DM;;SAEjB,UAAU;iBACFA,SAAO,oBAAoB;;;EAGzC;EACD"}