Pseudo class selectors have always been there, we have used them indefinite times to make our states more cooler and interactive. We have always appended them at the end like a:hover but here I am talking about something on beforehand like: and yes this declaration works too. Such css can be really helpful sometimes, It’s . . . read more
Articles tagged Sass
Do not bloat less / sass nested rules, do not kill reusability 1
Wherever possible, we should avoid nested rules in less/sass. When you start using less/sass and the way you can create nested rules to compile to full css, it is so Cool, but I found my team creating nested and overqualified rules automatically. We were happy about it, thinking all the css for a section will . . . read more
@content block in mixins, Sass vs Less css
There are numerous discussions on Sass Vs Less out there, I am not getting into that. In this article I will just discuss the practical usecase of @content in Sass mixins, Less do not have anything like that and how we can find a workaround for Less Update 10-04-2014: feature released in lesscss v1.7.0, we can . . . read more
compass-animation saves all the time and efforts
Just wanted to introduce the compass animate plugin. It great and saved our lots of efforts. A normal css animation looks like this: But that’s not the reality, you need to include all the vendors 😡 , your code gets from 1x to 4-5x of lines immediately. Multiple times copy pasting the same code and . . . read more