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-06-28 20:33:01 +08:00
|
|
|
const { componentCls, colorBgContainer, colorBgBody, colorText } = token;
|
2022-04-22 15:00:18 +08:00
|
|
|
|
|
|
|
return {
|
2022-05-19 16:23:12 +08:00
|
|
|
[`${componentCls}-sider-light`]: {
|
2022-06-28 20:33:01 +08:00
|
|
|
background: colorBgContainer,
|
2022-05-19 16:23:12 +08:00
|
|
|
|
2022-04-22 15:00:18 +08:00
|
|
|
[`${componentCls}-sider-trigger`]: {
|
2022-05-19 16:23:12 +08:00
|
|
|
color: colorText,
|
2022-06-28 20:33:01 +08:00
|
|
|
background: colorBgContainer,
|
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,
|
2022-06-28 20:33:01 +08:00
|
|
|
background: colorBgContainer,
|
2022-05-19 16:23:12 +08:00
|
|
|
border: `1px solid ${colorBgBody}`, // Safe to modify to any other color
|
|
|
|
borderInlineStart: 0,
|
2022-04-22 15:00:18 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default genLayoutLightStyle;
|