UNPKG

ll-package

Version:

2 lines (1 loc) 2.7 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("../../../../@babel/runtime/helpers/esm/extends.js");require("../../theme/internal.js");const x=require("./light.js"),H=require("../../theme/util/genComponentStyleHook.js"),$=require("../../theme/util/statistic.js"),m=t=>{const{antCls:o,componentCls:e,colorText:l,colorTextLightSolid:r,colorBgHeader:i,colorBgBody:n,colorBgTrigger:g,layoutHeaderHeight:u,layoutHeaderPaddingInline:y,layoutHeaderColor:p,layoutFooterPadding:S,layoutTriggerHeight:s,layoutZeroTriggerSize:a,motionDurationMid:c,motionDurationSlow:h,fontSize:f,borderRadius:d}=t;return{[e]:b.default(b.default({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:n,"&, *":{boxSizing:"border-box"},[`&${e}-has-sider`]:{flexDirection:"row",[`> ${e}, > ${e}-content`]:{width:0}},[`${e}-header, &${e}-footer`]:{flex:"0 0 auto"},[`${e}-header`]:{height:u,paddingInline:y,color:p,lineHeight:`${u}px`,background:i,[`${o}-menu`]:{lineHeight:"inherit"}},[`${e}-footer`]:{padding:S,color:l,fontSize:f,background:n},[`${e}-content`]:{flex:"auto",minHeight:0},[`${e}-sider`]:{position:"relative",minWidth:0,background:i,transition:`all ${c}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:s},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:s,color:r,lineHeight:`${s}px`,textAlign:"center",background:g,cursor:"pointer",transition:`all ${c}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:u,insetInlineEnd:-a,zIndex:1,width:a,height:a,color:r,fontSize:t.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:i,borderStartStartRadius:0,borderStartEndRadius:d,borderEndEndRadius:d,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-a,borderStartStartRadius:d,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:d}}}}},x.default(t)),{"&-rtl":{direction:"rtl"}})}},T=H.default("Layout",t=>{const{colorText:o,controlHeightSM:e,controlHeight:l,controlHeightLG:r,marginXXS:i}=t,n=r*1.25,g=$.merge(t,{layoutHeaderHeight:l*2,layoutHeaderPaddingInline:n,layoutHeaderColor:o,layoutFooterPadding:`${e}px ${n}px`,layoutTriggerHeight:r+i*2,layoutZeroTriggerSize:r});return[m(g)]},t=>{const{colorBgLayout:o}=t;return{colorBgHeader:"#001529",colorBgBody:o,colorBgTrigger:"#002140"}});exports.default=T;