News for hackers. Stuff that matters.
Re:Stepping Away from Sass by jorgesborges on Thursday April 25, 2019 @10:06PM (#19754246)
Nesting is only an asset with thoughtful consistency. There are so many different ways to organize a stylesheet with nesting it can easily become unruly. But I like it now because I've found a method that works for me while also cleaning up my html.

In some cases I can preclude the necessity of having to declare class names.

section {

  h1 {},

  p {},

  img {},
}

In other cases I have an index with easy-to-find classes.

.hero {

  .gradient {},

  .description {},

  .signup {},
}

EDIT: I meant to reply to a different comment but oh well.

There are no comments on this comment yet.