tweak pixel equivalent comment spacing (#200)
parent
14f0fe9f3f
commit
5a810fd193
|
@ -952,7 +952,7 @@ function stringifyDecls(
|
|||
const px = showPixelEquivalents
|
||||
? remToPx(value, rootFontSize)
|
||||
: undefined
|
||||
return `${prop}: ${value}${px ? ` /*${px}*/` : ''};`
|
||||
return `${prop}: ${value}${px ? `/* ${px} */` : ''};`
|
||||
})
|
||||
.join(' ')
|
||||
)
|
||||
|
|
|
@ -61,7 +61,7 @@ export function stringifyCss(
|
|||
const propStr = ensureArray(obj[curr])
|
||||
.map((val) => {
|
||||
const px = showPixelEquivalents ? remToPx(val, rootFontSize) : undefined
|
||||
return `${indentStr + indent}${curr}: ${val}${px ? ` /*${px}*/` : ''};`
|
||||
return `${indentStr + indent}${curr}: ${val}${px ? `/* ${px} */` : ''};`
|
||||
})
|
||||
.join('\n')
|
||||
return `${acc}${i === 0 ? '' : '\n'}${propStr}`
|
||||
|
|
Loading…
Reference in New Issue