custom-icon.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. const genStepsCustomIconStyle = token => {
  7. const {
  8. componentCls,
  9. stepsIconCustomTop,
  10. stepsIconCustomSize,
  11. stepsIconCustomFontSize
  12. } = token;
  13. return {
  14. [`${componentCls}-item-custom`]: {
  15. [`> ${componentCls}-item-container > ${componentCls}-item-icon`]: {
  16. height: 'auto',
  17. background: 'none',
  18. border: 0,
  19. [`> ${componentCls}-icon`]: {
  20. top: stepsIconCustomTop,
  21. width: stepsIconCustomSize,
  22. height: stepsIconCustomSize,
  23. fontSize: stepsIconCustomFontSize,
  24. lineHeight: `${stepsIconCustomSize}px`
  25. }
  26. }
  27. },
  28. // Only adjust horizontal customize icon width
  29. [`&:not(${componentCls}-vertical)`]: {
  30. [`${componentCls}-item-custom`]: {
  31. [`${componentCls}-item-icon`]: {
  32. width: 'auto',
  33. background: 'none'
  34. }
  35. }
  36. }
  37. };
  38. };
  39. var _default = exports.default = genStepsCustomIconStyle;