postcss-custom-properties icon indicating copy to clipboard operation
postcss-custom-properties copied to clipboard

Multiple font families separated with line breaks

Open otakustay opened this issue 4 years ago • 2 comments

Without any options specified, with [email protected], [email protected] and [email protected]

:root {
    --font-family: 'Courier New', Courier, monospace;
}

div {
    font-family: var(--font-family);
}

becomes:

:root {
    --font-family: 'Courier New', Courier, monospace;
}

div {
    font-family: 'Courier New'
,
Courier
,
monospace;
    font-family: var(--font-family);
}

otakustay avatar Oct 29 '19 11:10 otakustay

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);
  ...
}

tranlamnhatnam avatar Nov 02 '19 06:11 tranlamnhatnam

Idem with a box-shadow!

SuperPat45 avatar Nov 04 '19 17:11 SuperPat45