1 line
5.6 KiB
JSON
1 line
5.6 KiB
JSON
|
{"ast":null,"code":"import { unit } from '@ant-design/cssinjs';\nconst genStepsSmallStyle = token => {\n const {\n componentCls,\n iconSizeSM,\n // stepsSmallIconMargin,\n fontSizeSM,\n fontSize,\n colorTextDescription\n } = token;\n return {\n [`&${componentCls}-small`]: {\n [`&${componentCls}-horizontal:not(${componentCls}-label-vertical) ${componentCls}-item`]: {\n paddingInlineStart: token.paddingSM,\n '&:first-child': {\n paddingInlineStart: 0\n }\n },\n [`${componentCls}-item-icon`]: {\n width: iconSizeSM,\n height: iconSizeSM,\n // margin: stepsSmallIconMargin,\n marginTop: 0,\n marginBottom: 0,\n marginInline: `0 ${unit(token.marginXS)}`,\n fontSize: fontSizeSM,\n lineHeight: unit(iconSizeSM),\n textAlign: 'center',\n borderRadius: iconSizeSM\n },\n [`${componentCls}-item-title`]: {\n paddingInlineEnd: token.paddingSM,\n fontSize,\n lineHeight: unit(iconSizeSM),\n '&::after': {\n top: token.calc(iconSizeSM).div(2).equal()\n }\n },\n [`${componentCls}-item-description`]: {\n color: colorTextDescription,\n fontSize\n },\n [`${componentCls}-item-tail`]: {\n top: token.calc(iconSizeSM).div(2).sub(token.paddingXXS).equal()\n },\n [`${componentCls}-item-custom ${componentCls}-item-icon`]: {\n width: 'inherit',\n height: 'inherit',\n lineHeight: 'inherit',\n background: 'none',\n border: 0,\n borderRadius: 0,\n [`> ${componentCls}-icon`]: {\n fontSize: iconSizeSM,\n lineHeight: unit(iconSizeSM),\n transform: 'none'\n }\n }\n }\n };\n};\nexport default genStepsSmallStyle;","map":{"version":3,"names":["unit","genStepsSmallStyle","token","componentCls","iconSizeSM","fontSizeSM","fontSize","colorTextDescription","paddingInlineStart","paddingSM","width","height","marginTop","marginBottom","marginInline","marginXS","lineHeight","textAlign","borderRadius","paddingInlineEnd","top","calc","div","equal","color","sub","paddingXXS","background","border","transform"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/steps/style/small.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nconst genStepsSmallStyle = token => {\n const {\n componentCls,\n iconSizeSM,\n // stepsSmallIconMargin,\n fontSizeSM,\n fontSize,\n colorTextDescription\n } = token;\n return {\n [`&${componentCls}-small`]: {\n [`&${componentCls}-horizontal:not(${componentCls}-label-vertical) ${componentCls}-item`]: {\n paddingInlineStart: token.paddingSM,\n '&:first-child': {\n paddingInlineStart: 0\n }\n },\n [`${componentCls}-item-icon`]: {\n width: iconSizeSM,\n height: iconSizeSM,\n // margin: stepsSmallIconMargin,\n marginTop: 0,\n marginBottom: 0,\n marginInline: `0 ${unit(token.marginXS)}`,\n fontSize: fontSizeSM,\n lineHeight: unit(iconSizeSM),\n textAlign: 'center',\n borderRadius: iconSizeSM\n },\n [`${componentCls}-item-title`]: {\n paddingInlineEnd: token.paddingSM,\n fontSize,\n lineHeight: unit(iconSizeSM),\n '&::after': {\n top: token.calc(iconSizeSM).div(2).equal()\n }\n },\n [`${componentCls}-item-description`]: {\n color: colorTextDescription,\n fontSize\n },\n [`${componentCls}-item-tail`]: {\n top: token.calc(iconSizeSM).div(2).sub(token.paddingXXS).equal()\n },\n [`${componentCls}-item-custom ${componentCls}-item-icon`]: {\n width: 'inherit',\n height: 'inherit',\n lineHeight: 'inherit',\n background: 'none',\n border: 0,\n borderRadius: 0,\n [`> ${componentCls}-icon`]: {\n fontSize: iconSizeSM,\n lineHeight: unit(iconSizeSM),\n transform: 'none'\n }\n
|