AMA: Brad Frost, Web Designer

7 years ago from Brad Frost, Brad Frost Web

  • Anwar ChoukahAnwar Choukah, 7 years ago

    What's your favourite CSS selector pattern?

    Mine is the lobotomised owl. * + *.

    I've only used it once for a personal small project, but I was smiling for at least 10 minutes afterwards.

    0 points
    • Brad FrostBrad Frost, 7 years ago

      Ha! I've seen the lobotomised owl but have never used it.

      Personally, I've been loving Sass's & feature that allows you to nest things quite elegantly. For example:

      .block { &__title { } &__body { } }

      I think it's a nice pattern that saves you having to repeat yourself.

      (Funny thing is though, in the back of my mind I can see myself reading this a year or two from now and wincing at this advice.)

      0 points