(no title)
mddw | 13 years ago
Moreover these developers are not in the hype bandwagon (or they would be able to read SASSy/LESSy/whatever fashionable now), so they may need the most the said tutorials.
mddw | 13 years ago
Moreover these developers are not in the hype bandwagon (or they would be able to read SASSy/LESSy/whatever fashionable now), so they may need the most the said tutorials.
aaronbrethorst|13 years ago
So you know that Sass and Less allow you to nest rules, right? e.g.:
translates into .foo p { rules go here }Here are the examples from the article:
The ampersand simply means 'I am applied in the context of whatever rule I happen to be in'. So, .home { &:hover { } } is equivalent to writing this normal CSS: @include is like #include in C. It literally includes the referenced content in the rules you're writing. That means that is including something that (inferring from the name, here) sets the background size for the element. Given the parameters, it probably expands into: plus another rule for handling 2x images in Webkit.This is a variable. Nuff said.
make sense?CJefferson|13 years ago
I am sure these is some extra magic you are not telling us, but given that you are assuming we don't know about SASS and Less, you are obviously missing something important :)
showerst|13 years ago
Since they don't use it every day due to setup woes, they can't easily read it fluently.
michaelbuckbee|13 years ago
I was reluctant to try it as I feel like there are already so many moving configurable layers to my dev stack and all I could think was "I have this nice static css file here - I just include it and everything works" and the only real exposure I had had to LESS/SASS was exactly the same sort of context free dozen lines of mixin code that does something awesome in some blog post just like you are describing (which made it seem much more intimidating than it actually was).
Now here's the real kicker: I didn't realize that I already know how to code css in LESS. Since LESS is a superset of CSS you can take any CSS file (even one from an existing application) and put it through a LESS processor and get back a usable CSS file. This is awesome as it makes it possible to start using LESS in the middle of a project and it makes it very easy to slowly stop doing all of the soul crushing find+replace that takes forever working with CSS as you ramp up with LESS.
I'd really encourage you to give LESS (or SASS or whatever you find fashionable) a try - I think you'll like it. If you get stuck or need help shoot me an email (on my acct page).
mnicole|13 years ago