You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
808 B

import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme';
import type { LayoutToken } from '.';
const genLayoutLightStyle: GenerateStyle<LayoutToken, CSSObject> = token => {
const {
componentCls,
layoutSiderBackgroundLight,
layoutTriggerBackgroundLight,
layoutTriggerColorLight,
} = token;
return {
[`&${componentCls}-sider-light`]: {
background: layoutSiderBackgroundLight,
[`${componentCls}-sider-trigger`]: {
color: layoutTriggerColorLight,
background: layoutTriggerBackgroundLight,
},
[`${componentCls}-sider-zero-width-trigger`]: {
color: layoutTriggerColorLight,
background: layoutTriggerBackgroundLight,
},
},
};
};
export default genLayoutLightStyle;