light.js 582 B

123456789101112131415161718192021222324
  1. const genLayoutLightStyle = token => {
  2. const {
  3. componentCls,
  4. colorBgContainer,
  5. colorBgBody,
  6. colorText
  7. } = token;
  8. return {
  9. [`${componentCls}-sider-light`]: {
  10. background: colorBgContainer,
  11. [`${componentCls}-sider-trigger`]: {
  12. color: colorText,
  13. background: colorBgContainer
  14. },
  15. [`${componentCls}-sider-zero-width-trigger`]: {
  16. color: colorText,
  17. background: colorBgContainer,
  18. border: `1px solid ${colorBgBody}`,
  19. borderInlineStart: 0
  20. }
  21. }
  22. };
  23. };
  24. export default genLayoutLightStyle;