GithubHelp home page GithubHelp logo

abdieffendi / less-prefixer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joelsutherland/less-prefixer

0.0 1.0 0.0 65 KB

All of the CSS3 fun, none of the prefixes!

Home Page: http://lessprefixer.com/

less-prefixer's Introduction

LESS Prefixer

All of the CSS3 fun, none of the prefixes!

What is it?

LESS Prefixer is a set of LESS mixins that let you use vendor-prefixed CSS properties without the prefixes. It uses some simple conventions and gets out of the way so you can use the CSS you already know, but with less typing.

How does it work?

As a rule, you can use the CSS properties you would expect just by adding a '.' to start them and putting arguments afterwards.

So you type this:

div {
	.box-shadow(0px 0px 10px rgba(255,0,0,.5));
}

and you get this through the beauty of LESS:

div {
	-webkit-box-shadow: 0px 0px 10px rgba(255,0,0,.5);
	-moz-box-shadow: 0px 0px 10px rgba(255,0,0,.5);
	box-shadow: 0px 0px 10px rgba(255,0,0,.5);
}

The convention is simple: when shorthand is available, arguments are not parameterized. Learn CSS, not LESS Prefixer.

What's Supported

A whole bunch. There is a nice Table of Contents in the file so you can look this up quickly while working in your project. Everything is even alphabetized.

Additionally, each mixin uses the correct vendor prefixes as indicated by CSS3Please.com. They aren't just thrown in there willy-nilly.

  • .animation(@args)
    • .animation-delay(@delay)
    • .animation-direction(@direction)
    • .animation-duration(@duration)
    • .animation-iteration-count(@count)
    • .animation-name(@name)
    • .animation-play-state(@state)
    • .animation-timing-function(@function)
  • .background-size(@args)
  • .border-radius(@args)
  • .box-shadow(@args)
    • .inner-shadow(@args) *
  • .box-sizing(@args)
    • .border-box() *
    • .content-box() *
  • .columns(@args)
    • .column-count(@count)
    • .column-gap(@gap)
    • .column-rule(@args)
    • .column-width(@width)
  • .gradient(@default,@start,@stop) *
    • .linear-gradient-top(@default,@color1,@stop1,@color2,@stop2[,@color3,@stop3,@color4,@stop4]) *
    • .linear-gradient-left(@default,@color1,@stop1,@color2,@stop2[,@color3,@stop3,@color4,@stop4]) *
  • .opacity(@factor)
  • .text-shadow(@args)
  • .transform(@args)
    • .rotate(@deg)
    • .scale(@factor)
    • .translate(@x,@y)
    • .translate3d(@x,@y,@z)
    • .translateHardware(@x,@y) *
  • .transition(@args)
    • .transition-delay(@delay)
    • .transition-duration(@duration)
    • .transition-property(@property)
    • .transition-timing-function(@function)

Credits

Credit to LESS Elements for the motivation and to CSS3Please.com for implementation.

less-prefixer's People

Contributors

joelsutherland avatar anirvan avatar webmaster128 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.