Tag: less

Both SASS and LESS are really nice tools for CSS developers. Both have the ability to nest selectors like this:

#header {
h1 { font-size: 3em }
p { font-size: 1.2em }
}

…which compiles to

#wrapper h1 { font-size: 3em }
#wrapper p { font-size: 1.2em }

Nesting is really useful, just don’t go more than 2-3 levels deep. I’m currently wading through a bunch of code which was generated from LESS files, and the (huge) stylesheet is full of selectors like this: