R
R
Ruslan2010-11-10 23:24:57
PHP
Ruslan, 2010-11-10 23:24:57

CSS preprocessor (nested constructs, constants, arithmetic expressions)

Tell me a preprocessor (if you can call it that) for CSS that supports nested constructs, constants, arithmetic expressions, while using the syntax of the source file as close as possible to CSS (and not, for example, XML). It is desirable either in PHP, or a separate console application for Windows. Interested in also a solution in the form of a module for Apache.

For example:

.header {
margin: marginVar - 10;
a {

}
}

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrew, 2010-12-14
@ruzzz

leafo.net/lessphp/docs/

N
nikitammf, 2010-11-10
@nikitammf

SASS ?

N
Neonailol, 2010-12-14
@Neonailol

or for example github.com/cloudhead/less.js
which has a more native syntax compared to SASS/SCSS

E
Emil Valeev, 2013-12-11
@gitarizd

The SCSS syntax is basically the same as CSS!
It has everything you listed and more, such as conditional statements or loop statements.
A good thing is the "Compass" framework. It's based on SASS (SCSS, to be exact) and includes a lot of goodies, but to install it, you'll need the Ruby gem and have to work from the command line.
If you don't like dancing with a tambourine - google ScoutApp. The only free application for Windows so far, but very slow.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question