Giter Site home page Giter Site logo

lesstest's Introduction

LESS Test

This is an example of using LESS in action.

LESS is a CSS pre-processor; aka, this means that you write LESS, compile it, and then the compiler generates a CSS file.

LESS is used because it gives you more control than CSS, and gives you more powerful features such as use of variables and mixins (styles that you can reuse).

Use

If you haven't installed LESS before, you'll need to install it globally using:

npm install -g less

Once this is done, you can start to write LESS, in a file with the .less extension. For instance, style.less. To compile this into CSS, run:

lessc style.less style.css

where style.less is the name of the file you want to compile, and style.css is the name of the output CSS file. You can also output a minified version by adding the --clean-css flag.

Read more here.

You will need to re-compile your LESS code every time you make changes. There are ways to make this more efficient, such as using a task runner like Grunt.

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.