import{gold as l}from"../../node_modules/.pnpm/@ant-design_colors@7.2.1/node_modules/@ant-design/colors/es/presets.mjs";import{initInputToken as a}from"../../input/style/index.mjs";import{operationUnit as d}from"../../style/operationUnit.mjs";const s=(i,n,o,e)=>{const{sizeMarginHeadingVerticalEnd:t,fontWeightStrong:r}=e;return{marginBottom:t,color:o,fontWeight:r,fontSize:i,lineHeight:n}},m=i=>{const n=[1,2,3,4,5],o={};return n.forEach(e=>{o[`
      h${e}&,
      div&-h${e},
      div&-h${e} > textarea,
      h${e}
    `]=s(i[`fontSizeHeading${e}`],i[`lineHeightHeading${e}`],i.colorTextHeading,i)}),o},b=i=>{const{componentCls:n}=i;return{"a&, a":{...d(i),textDecoration:i.linkDecoration,"&:active, &:hover":{textDecoration:i.linkHoverDecoration},[`&[disabled], &${n}-disabled`]:{color:i.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:i.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},u=()=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:l[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),S=i=>{const{componentCls:n}=i,e=a(i).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-i.paddingSM,marginTop:-e,marginBottom:`calc(1em - ${e}px)`},[`${n}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:i.marginXS+2,insetBlockEnd:i.marginXS,color:i.colorTextDescription,fontWeight:"normal",fontSize:i.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},x=i=>({"&-copy-success":{"\n    &,\n    &:hover,\n    &:focus":{color:i.colorSuccess}}}),f=()=>({"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}});export{x as getCopiableStyles,S as getEditableStyles,f as getEllipsisStyles,b as getLinkStyles,u as getResetStyles,m as getTitleStyles};
