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

Multiple font families separated with line breaks #196

Open

Description

@otakustay

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

Activity

  1. tranlamnhatnam commented on Nov 2, 2019

    @tranlamnhatnam

    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);
      ...
    }
  2. SuperPat45 commented on Nov 4, 2019

    @SuperPat45

    Idem with a box-shadow!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions