status.js 533 B

1234567891011121314151617181920212223
  1. const genStatusStyle = token => {
  2. const {
  3. componentCls,
  4. menuCls,
  5. colorError,
  6. colorTextLightSolid
  7. } = token;
  8. const itemCls = `${menuCls}-item`;
  9. return {
  10. [`${componentCls}, ${componentCls}-menu-submenu`]: {
  11. [`${menuCls} ${itemCls}`]: {
  12. [`&${itemCls}-danger:not(${itemCls}-disabled)`]: {
  13. color: colorError,
  14. '&:hover': {
  15. color: colorTextLightSolid,
  16. backgroundColor: colorError
  17. }
  18. }
  19. }
  20. }
  21. };
  22. };
  23. export default genStatusStyle;