This content has been marked as final. Show 4 replies
You are probably looking for something like less. I've never used less. Not sure if it is possible to compile less stylesheets to JavaFX compatible css. You might want to look into it and see, then report back.
I don't think it's going to work because less.js is not JavaFX compatible. It contains expressions like `document.getElementsByTagName("style")`, which causes EcmaError during runtime for "document" is not defined. I tested it in a little <fx:script> tag.
Lookup doesn't work for unit values. You can create a request for this at http://javafx-jira.kenai.com
You could try simpless to precompile your less files to CSS before use.1 person found this helpful