mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 17:09:46 +08:00
b67bae6a6e
* refactor: Layout full token * chore: commenr
28 lines
798 B
TypeScript
28 lines
798 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, 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;
|