#foo { .bar { font-weight: ...">

Is it possible to embed LESS style sheets?

For example, is it possible to do something like:

<style type="text/less"> #foo { .bar { font-weight: bold; } } </style> 
+42
css less
Oct 11 '11 at 19:53
source share
2 answers

This has been possible since July 2010, and it works with today's version Less than 1.2.0.

See the initial diff, which added support for this .

+18
Feb 15 2018-12-15T00:
source share

You really need to use

 <style type="text/less"> 

instead:

 <style type="stylesheet/less"> 

Otherwise it will not work.

Remember to place the <style> element in front of the <script> element to load less.js.

+67
Mar 14 2018-12-12T00:
source share



All Articles