@aplus-frontend/ui
Version:
2 lines (1 loc) • 894 B
JavaScript
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./token.js"),a=require("../../utils/cssinjs/index.js"),o=r=>{const{componentCls:t}=r,e=`${r.apProCardBorderLineWidth} ${r.apProCardBorderLineType} ${r.apProCardBorderColorSplit}`;return{[t]:{flex:"none",backgroundColor:r.apProCardBorderColorSplit,"&-vertical":{position:"relative",marginInline:"8px","&::after":{position:"absolute",height:r.apProCardDividerLineHeight,top:"50%",transform:"translateY(-50%)",right:0,borderRight:e,content:'""'}},"&-horizontal":{position:"relative",marginBlock:"8px","&::after":{position:"absolute",width:r.apProCardDividerLineHeight,left:"50%",transform:"translateX(-50%)",bottom:0,borderBottom:e,content:'""'}}}}},n=a.genComponentStyleHook("ProCard.Divider",r=>[o(r)],i.defaultToken);exports.default=n;exports.genProCardDividerStyle=o;