ant-design/components/layout/style/light.ts
二货机器人 de2992f96f
chore: move path (#36243)
* chore: base move

* chore: all path

* chore: fix script
2022-06-27 14:25:59 +08:00

28 lines
792 B
TypeScript

import type { CSSObject } from '@ant-design/cssinjs';
import type { LayoutToken } from '.';
import type { GenerateStyle } from '../../theme';
const genLayoutLightStyle: GenerateStyle<LayoutToken, CSSObject> = token => {
const { componentCls, colorBgComponent, colorBgBody, colorText } = token;
return {
[`${componentCls}-sider-light`]: {
background: colorBgComponent,
[`${componentCls}-sider-trigger`]: {
color: colorText,
background: colorBgComponent,
},
[`${componentCls}-sider-zero-width-trigger`]: {
color: colorText,
background: colorBgComponent,
border: `1px solid ${colorBgBody}`, // Safe to modify to any other color
borderInlineStart: 0,
},
},
};
};
export default genLayoutLightStyle;