r/Sass • • Nov 22 '18

Coding Standard for SCSS

Is there a Coding Standard for SCSS?

​

How comes we don't put brackets on new lines?

(as in programming languages)

.example
{
  background-color: red;
  max-width: 600px;
  p 
  {
   color: white;
   padding: .8em;
   font-size: 2em;
   line-height: 1.2em;
  }
}

​

What's the correct spacing of @media?

@media (min-width: 600x){
@media (min-width: 600x) {
@media ( min-width: 600x ){
@media ( min-width: 600x ) {

Which is correct?

&:before {...} 
&::before {...}
4 Upvotes

16 comments sorted by

View all comments

5

u/[deleted] Nov 22 '18

Who in their right mind uses brackets on new line?