Convert css to less with variable names based on selectors.
WebSite: http://www.joyofplaying.com/Css2Less/
This version creates varable names from the css selectors:
- Uses your selectors for variables names
- Allows you to specify which selectors to turn into variables
- Fixes bug processing multi-line comments
.ui-widget { font-family: Verdana,Arial,sans-serif/{ffDefault}/; font-size: 1.1em/{fsDefault}/; } .ui-widget .ui-widget { font-size: 1em; }
@ui-widget-font-size: 1.1em; @ui-widget-ui-combined-widget-font-size: 1em;
.ui-widget { font-family:Verdana,Arial,sans-serif; font-size:@ui-widget-font-size;
.ui-widget { font-size:@ui-widget-ui-combined-widget-font-size; } }
This is an enhanced version of the code from http://www.miyconst.com/Blog/View/14/Conver_css_to_less_with_css2less_js