Code Monkey home page Code Monkey logo

less-preview's Introduction

LESS2CSS | Live LESS Preview

LESS is a popular CSS pre-processor. Used on the Twitter Bootstrap project and on many others, LESS makes CSS more powerful by giving designers and developers access to variables, mixins, functions, string interpolation, imports, and many other features.

Debugging

LESS Previewer was cooked us as a way to visualize LESS output quickly by running it directly through the LESS processor. This allows you to test various version of LESS and their support (or lack thereof) of the syntax you are using.

Because LESS has very different levels of support for certain syntax depending on the version, it's often nice to be able to test this directly.

For example selector interpolation like this only works in 1.3.1+

@mySelector: home-base;

.@{mySelector} {
  display: block;
}

Contributing

Style

If needed a style-guide will be created for contributors. In the meantime, if you'd like to contribute, please take care to follow the general style of the project.

Requirements for building & running

Building

  1. Install grunt-cli: $ [sudo] npm install -g grunt-cli.
  2. Install express: $ [sudo] npm install -g express
  3. Install dependencies (from root project folder): $ npm install
  4. Run Grunt (from root project folder): $ grunt
  5. Start the app: $ npm start. This will start the app on http://localhost:3000/. Nodemon will restart the server automatically when it detects a change.
  6. Open a new terminal tab or window and start the watcher task: $ grunt watch. This will compile coffee-script to js, run jshint on the output, and minify the files, and run all unit tests.

Please feel free to contribute or suggest features and improvements.

less-preview's People

Contributors

bfricka avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.