mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
a74fdbc911
* refactor: add basic cssinjs strcture * refactor: add more refactor style * style: modify more style * style: keep the code style consistent
29 lines
808 B
TypeScript
29 lines
808 B
TypeScript
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;
|