Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New lines between style blocks #103

Open
1 task done
dextermb opened this issue Feb 6, 2019 · 0 comments
Open
1 task done

New lines between style blocks #103

dextermb opened this issue Feb 6, 2019 · 0 comments

Comments

@dextermb
Copy link
Contributor

dextermb commented Feb 6, 2019

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

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

No branches or pull requests

1 participant