Top "Less" questions

Less is an open-source stylesheet preprocessor that extends CSS with dynamic behavior such as variables, mixins, operations and functions.

Where to find the twitter bootstrap less files?

I'm trying to find a relatively easy way of adding padding to my containers with Twitter Bootstrap. All works well …

twitter-bootstrap less padding
How to set keyframes name in LESS

I try to set up this LESS mixin for CSS animation keyframes: .keyframes(@name, @from, @to) {; @-webkit-keyframes "@name" { from { @from; } …

css less mixins css-animations
CSS-Less class extend class with pseudo class

I was wondering how I could do something like the following with less css: .btn { color : black; } .btn:hover { color : …

css mixins less pseudo-class
LESS mix-in for nth-child?

I'm trying to make a LESS mixin that will give me this output: .resource:nth-child(8n+1) { clear: left; } I've got …

css less mixins
Is there a way to use variables in Less for the ~ operator, like ~"calc(100% - @spacing)";

Is there a way to use variables in less ~ operator, like ~"calc(70% - @spacing)"; When I have tried it it …

css less css-calc
Grunt, Less, and File Watching

I'm trying to get grunt working to do something. My project looks like this: /app /assets /components /stylesheets /less /file1.…

less gruntjs
Less/Sass debugging in Chrome Dev Tools/Firebug

How do you guys do maintenance on CSS built with Less/Sass? One of the things I like about Dev …

css sass less source-maps
CSS LESS Placeholder Mixin

I want to create a placeholder mixin as follows. However, this fails to compile in LESS version 1.7.0. .placeholder(...) { ::-webkit-input-placeholder: @arguments; :…

css less mixins
How do you create multiple box-shadow values in LESS CSS

Read This There are several "correct" answers. Since this question gets a lot of traffic, I figured I should keep …

css less
Check if parent has class using LESS

Example scenario: I would like to hide a sub-navigation menu if the user has javascript enabled so that it can …

css sass less