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
David Wolever Oct 11 '11 at 19:53 2011-10-11 19:53
source share2 answers
This has been possible since July 2010, and it works with today's version Less than 1.2.0.
+18
Dan Cecile Feb 15 2018-12-15T00: 00Z
source shareYou 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
Otto Coster Mar 14 2018-12-12T00: 00Z
source share