Questions tagged [less-css]

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

0
votes
0answers
7 views

Learning the LESS Framework - a brief code snippet

I’ve just started a new job and am learning the LESS framework. I understand the concept of things like variables, nesting, etc, but wonder whether there are obvious inefficiencies in my code - e.g. ...
2
votes
1answer
188 views

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
1answer
578 views

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 ...
1
vote
1answer
111 views

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 <...
3
votes
1answer
56 views

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 ...
-3
votes
1answer
6k views

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
1answer
137 views

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 ...
8
votes
0answers
821 views

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 be very amateur coders and I want everyone to be ...
5
votes
1answer
122 views

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): ...