2022-04-22 15:00:18 +08:00
|
|
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
|
|
import type { LayoutToken } from '.';
|
2022-06-27 14:25:59 +08:00
|
|
|
import type { GenerateStyle } from '../../theme';
|
2022-04-22 15:00:18 +08:00
|
|
|
|
|
|
|
const genLayoutLightStyle: GenerateStyle<LayoutToken, CSSObject> = token => {
|
2022-05-19 16:23:12 +08:00
|
|
|
const { componentCls, colorBgComponent, colorBgBody, colorText } = token;
|
2022-04-22 15:00:18 +08:00
|
|
|
|
|
|
|
return {
|
2022-05-19 16:23:12 +08:00
|
|
|
[`${componentCls}-sider-light`]: {
|
|
|
|
background: colorBgComponent,
|
|
|
|
|
2022-04-22 15:00:18 +08:00
|
|
|
[`${componentCls}-sider-trigger`]: {
|
2022-05-19 16:23:12 +08:00
|
|
|
color: colorText,
|
|
|
|
background: colorBgComponent,
|
2022-04-22 15:00:18 +08:00
|
|
|
},
|
2022-05-19 16:23:12 +08:00
|
|
|
|
2022-04-22 15:00:18 +08:00
|
|
|
[`${componentCls}-sider-zero-width-trigger`]: {
|
2022-05-19 16:23:12 +08:00
|
|
|
color: colorText,
|
|
|
|
background: colorBgComponent,
|
|
|
|
border: `1px solid ${colorBgBody}`, // Safe to modify to any other color
|
|
|
|
borderInlineStart: 0,
|
2022-04-22 15:00:18 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default genLayoutLightStyle;
|