mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
29 lines
822 B
TypeScript
29 lines
822 B
TypeScript
import type { CSSObject } from '@ant-design/cssinjs';
|
|
|
|
import type { LayoutToken } from '.';
|
|
import type { GenerateStyle } from '../../theme/internal';
|
|
|
|
const genLayoutLightStyle: GenerateStyle<LayoutToken, CSSObject> = (token) => {
|
|
const { componentCls, bodyBg, lightSiderBg, lightTriggerBg, lightTriggerColor } = token;
|
|
|
|
return {
|
|
[`${componentCls}-sider-light`]: {
|
|
background: lightSiderBg,
|
|
|
|
[`${componentCls}-sider-trigger`]: {
|
|
color: lightTriggerColor,
|
|
background: lightTriggerBg,
|
|
},
|
|
|
|
[`${componentCls}-sider-zero-width-trigger`]: {
|
|
color: lightTriggerColor,
|
|
background: lightTriggerBg,
|
|
border: `1px solid ${bodyBg}`, // Safe to modify to any other color
|
|
borderInlineStart: 0,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
export default genLayoutLightStyle;
|