A
A
Alex2014-11-08 00:38:23
css
Alex, 2014-11-08 00:38:23

How to use inline less code?

In css, you can open a special tag and insert code between them:
<style>...</style>
How to use the same, but for LESS?
Tried like this:

<style rel="stylesheet/less" type="text/css">
@primary-color:#28C;
@primary-text-color:#FFF;
</style>
<link rel="stylesheet/less" type="text/css" href="style.less" />

Does not work. The variables are not available in the file.
How to solve the problem? (Variable values ​​are generated in PHP)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
6
65536, 2014-11-08
@65536

Don't use inline styles at all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question