6 votes
Accepted

Can my Less CSS code be improved?

Looks just fine, I think. Only some really minor things come to mind For font-family, it's good to always end with a generic font face style; in this case it'd be <...
user avatar
  • 32.9k
3 votes
Accepted

Responsive mixin in LESS

I think you're overcomplicating it. Typically, I think Less users just write the media queries inline with a variable. As in: ...
user avatar
2 votes
Accepted

Less CSS Mixin for positioning with options for corresponding top, left, right, bottom values

Is this a useful Mixin? Depends on if you need it a lot. Or is it a bad practice to create Mixins like this? Nothing is bad practice if it helps you float your boat. Is it too complicated or too ...
user avatar
  • 191
2 votes

Simplify LESS :hover and :focus

You can use a mixin. In less you can mixin properties from class and ID selectors. A class selector with parentheses after it (.mixin()) will be called a mixin. ...
user avatar
1 vote

Applying a set of styles both with a media query and with nested rules

You usage of the mixin will work and although it is not pretty there is not much else that can be done as far as valid LESS / CSS output. I've written up an example of complex mixins like below. LESS ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible