{"_id":"style-less","_rev":"5-bf40b39018b7354057593f056f68e3dc","name":"style-less","description":"Parses LESS, beautifies LESS then writes LESS all using LESS.js","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"author":{"name":"Lennart Melzer","email":"l@melzer.it"},"name":"style-less","description":"Parses LESS, beautifies LESS then writes LESS all using LESS.js","version":"0.0.0","homepage":"http://github.com/lennart/style-less","repository":{"type":"git","url":"git://github.com/lennart/style-less.git"},"main":"lib/style-less/style-less.js","scripts":{"test":"vows --spec spec/stylelessSpec.coffee"},"engines":{"node":">=0.4.8"},"dependencies":{"less":">=1.1.4"},"devDependencies":{"vows":"*","coffee-script":"*"},"_npmUser":{"name":"lmaa","email":"me@lmaa.name"},"_id":"style-less@0.0.0","_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.2","_defaultsLoaded":true,"dist":{"shasum":"a7c45f36cab09b77e1dcbc8ae39bc9effcddaf42","tarball":"https://registry.npmjs.org/style-less/-/style-less-0.0.0.tgz","integrity":"sha512-tBP+/tWDPjdxRNi725Ni193Se/a/13pWItn94xyGeUmojAldsCO1D1swmqHc8JfdMQUVZd4qahjRW7owy3LDTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGrAoDmG4nUqHZyA523l7rOK8/yVOuC9QOtuHy1gWBC7AiEAlivf6p2cA46/8TkWlAh0OlKiO9brb4EWKEoTv0fMgdM="}]},"maintainers":[{"name":"lmaa","email":"me@lmaa.name"}]}},"readme":"# styleLess\n\nParses LESS, beautifies LESS then writes LESS all using [LESS.js](http://github.com/cloudhead/less.js)\n\n## Synopsis\n\n__Warning__ this is opinionated formatting, as it compresses lines that take up \nless than 81 chars into one line to be more concise.\n\n```scss\n.navbar {\n  background-color: black;\n  color: #fff;\n  height: 23px;\n  -moz-transition-duration: 1337ms;\n  width: ~`@{document.body.clientWidth}`;\n  @desired-menu-width: 950px;\n\n  a:link, a:visited { color: #dadada; }\n\n  .nav-main {\n    /* calls to mixins */\n    .grid(24, 14);\n\n    /* Inline mixin declarations */\n    .right-separator() { border-right: 1px solid #949494; }\n\n    /* Literal escaped values */\n    filter: ~\"progid:DXImageTransform.Microsoft.Alpha(Opacity=89)\";\n\n    /* Literal quoted values */\n    font-family: \"Trebuchet MS\";\n\n    li { &:first-child { margin: 0; } }\n\n    > li.submenu > a:link, > li.submenu > a:visited {\n      background: url('icons/arrow-down.png') 23px 23px no-repeat transparent;\n      .right-separator;\n    }\n\n    // Keep Me\n    .preview-label { width: 100px; display: block; font-size: small; }\n\n    li a:hover, li a:active, li.current a:link,\n    li.current a:visited, li.submenu a:link, li.submenu a:visited {\n      .menublock {\n        @padding: 10px;\n        opacity: 1;\n        padding: @padding ((@desired-menu-width - (@padding * 10)) / 2);\n      }\n    }\n  }\n\n  /* \n   * Comments after rule\n   */\n}\n\n/* Comments between root rules */\n#main { .link { color: white; font-weight: bold; text-decoration: underline; } }\n```\n\n## Installation\n\n    npm install style-less\n\n## Usage\n\n    style-less ugly.less > pretty.less\n\n## Todo\n\n* write a command line tool to make the above example work\n* more test coverage (maybe I am still missing something within the less.js spec)\n* options for formatting like, suppressing single-line compressions\n* shorten synopsis and try to include as much of the less spec as possible\n\n\n\n","maintainers":[{"name":"lmaa","email":"me@lmaa.name"}],"time":{"modified":"2022-06-27T01:29:18.914Z","created":"2011-11-28T16:54:43.523Z","0.0.0":"2011-11-28T16:54:45.437Z"},"author":{"name":"Lennart Melzer","email":"l@melzer.it"},"repository":{"type":"git","url":"git://github.com/lennart/style-less.git"}}