Skip to content

New lines between style blocks #103

Description

@dextermb

What you would like to change/add

I'd like to put forth a standard for spacing between css/sass/less blocks.

Why you would like to change/add this

To attempt to make code more readable and standardized across all projects.

Examples

Top level blocks should be one after the other:
.code-block-one {
  // <styles>
}
.code-block-two {
  // <styles>
}
Child blocks should have a single new line above them:
.code-block-one {
  // <styles>

  .child-of-code-block-one {
    // <styles>
  }
}
.code-block-two {
  // <styles>

  .child-of-code-block-two {
    // <styles>

    .nested-child-of-code-block-two {
      // <styles>
    }
  }
}

Checklist

  • I have checked that this is not a duplicate issue.

Voting

👍 Yes
👎 No

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