Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Multiple font families separated with line breaks #196

Open
otakustay opened this issue Oct 29, 2019 · 2 comments
Open

Multiple font families separated with line breaks #196

otakustay opened this issue Oct 29, 2019 · 2 comments

Comments

@otakustay
Copy link

Without any options specified, with postcss@7.0.21, postcss-cli@6.1.3 and postcss-custom-properties@9.0.2

: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);
}
@tranlamnhatnam
Copy link

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

@SuperPat45
Copy link

Idem with a box-shadow!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants