Skip to content

Empty lines between @media rules #16

@juwain

Description

@juwain

I have such config ( means large array of ordered properties):

{
  "empty-lines-between-children-rules": 1,
  "sort-order": [
    [
      "@mixin"
    ],
    [
      …
    ],
    [
      "@media"
    ],
    [
      ">child"
    ]
  ]
}

This config in action:

.color {
  @mixin coloring;

  color: white;

  @media (--viewport-md) {
    color: green;
  }
  @media (--viewport-lg) {
    color: red;
  }

  span {
    color: black;
  }

  span {
    color: pink;
  }
}

Is it possible to add an empty line between @media constructions too, like between spans?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions