mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
8e4f1c6836
* refactor: token update * chore: add js doc * test: fix lint * test: update test
28 lines
792 B
TypeScript
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, colorBgContainer, colorBgBody, colorText } = token;
|
|
|
|
return {
|
|
[`${componentCls}-sider-light`]: {
|
|
background: colorBgContainer,
|
|
|
|
[`${componentCls}-sider-trigger`]: {
|
|
color: colorText,
|
|
background: colorBgContainer,
|
|
},
|
|
|
|
[`${componentCls}-sider-zero-width-trigger`]: {
|
|
color: colorText,
|
|
background: colorBgContainer,
|
|
border: `1px solid ${colorBgBody}`, // Safe to modify to any other color
|
|
borderInlineStart: 0,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
export default genLayoutLightStyle;
|