As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [less-css]

LESS is a dynamic stylesheet language that extends CSS with dynamic behavior such as variables, mixins, operations and functions.

Filter by
Sorted by
Tagged with
14 votes
0 answers

Django on virtual machine - watching changes in static files and autocompiling LESS without inotify

I'm setting up a Django development environment using Vagrant to run an Ubuntu virtual machine on VirtualBox. As this is a student project run mostly by very amateur coders and I want everyone to be ...
1 vote
1 answer

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

I am working on an application which responds to different screen resolutions. At a certain minimum DPI, we want to apply a set of styles. We also want to apply that same set of styles if the class <...
2 votes
1 answer

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

I've created a Mixin in Less CSS. It can do the following things: Set the position-rule of an element. Place the element in one of the corners (e.g. top left, bottom right etc.) Alternatively it can ...
5 votes
1 answer

Responsive mixin in LESS

I wrote a responsive mixin for Less when I couldn't find a full featured one. Curious what other developers have done to solve this problem and hoping to improve/reduce my code since I'm very new to ...
3 votes
1 answer

LESS CSS, including support for shadowboxes

I'm learning about using LESS and wanted to get anyone's input on if I'm using the concepts, syntax, etc. correctly.I know this might seem subjective and not the correct place to post, so please let ...
-2 votes
1 answer

Simplify LESS :hover and :focus

I have the following snippet of LESS code to generate CSS. I have some different classes which I apply to different elements, and on hover or focus they should change color. ...
4 votes
1 answer

Can my Less CSS code be improved?

I just started getting into the Less CSS framework and I am wondering if I'm doing it right and how the code can be improved if possible. global.less ...
5 votes
1 answer

How can I reduce this .less call to one line per image

How can I simplify this .less code to require less repetition (i.e., so that I can have many buttons with normal, rollover, and pressed states without using 3 lines for each button): ...