Open otakustay opened 5 years ago
Same issue here!
Variable:
:root {
...
--btn-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
...
}
.btn:hover {
...
transition: var(--btn-transition);
...
}
Output:
.btn:hover {
...
transition: color
.15s
ease-in-out
,
background-color
.15s
ease-in-out
,
border-color
.15s
ease-in-out
,
box-shadow
.15s
ease-in-out;
transition: var(--btn-transition);
...
}
Idem with a box-shadow!
Without any options specified, with
postcss@7.0.21
,postcss-cli@6.1.3
andpostcss-custom-properties@9.0.2
becomes: