Git Product home page Git Product logo

cssmixins's Introduction

#CSS Mixins

Comprehensive collection of flexible mixins for STYL, SCSS, SASS & LESS that allow you to use CSS3 features without having to worry about vendor prefixes.

Each mixin comes with thorough documentation including available values & units, W3 references and even examples. All you have to do is play with them.

PLUS! Robert Penner's easing equations as cubic-bezier functions, all thanks to the work of Matthew Lein. Now you have no excuse not to spice up your CSS3 transitions.

##Display

  • display-box
  • box-orient
  • box-pack
  • box-align
  • box-flex
  • box-sizing
  • user-select
  • appearance

##Decoration

  • border-radius
  • box-shadow
  • text-shadow
  • linear-gradient
  • radial-gradient

##Transformation

  • transform
  • transform-origin
  • transform-style
  • perspective
  • perspective-origin
  • backface-visibility
  • matrix
  • translate
  • scale
  • rotate
  • skew

##Animation

  • transition
  • animation
  • easing

##Author

Matthew Wagerfield: @mwagerfield

##License

Licensed under MIT. Enjoy.

cssmixins's People

Contributors

darcyclarke avatar matthewlein avatar wagerfield avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cssmixins's Issues

Support bower

I think it would be better if cssmixins support bower

IE Support for linear gradients

Hey,

Not sure if you're interested in supporting IE but sadly I don't have a choice. So I've written a modified mixin that includes filters and detects angles, converts to aRBG and basically does all of the heavy lifting for you. It sacrifices some of the beautiful simplicity of your mixin. But then doesn't IE support always?

Anyway here's the gist, let me know if you're interested in including it :)

arguments need to have comma separators in Transformation functions

I like how clean the mixins are using the @arguments variable, but it breaks when the arguments need to comma separated...

#test {
  .skew(30deg, 20deg);
}

Becomes =>

#test {
  -webkit-transform: skew(15deg 15deg);  
  -moz-transform: skew(15deg 15deg);
 -ms-transform: skew(15deg 15deg);  
  -o-transform: skew(15deg 15deg);
  transform: skew(15deg 15deg);
}

Which sucks b/c it should Become =>

#test {
  -webkit-transform: skew(15deg, 15deg);  
  -moz-transform: skew(15deg, 15deg);
 -ms-transform: skew(15deg, 15deg);  
  -o-transform: skew(15deg, 15deg);
  transform: skew(15deg, 15deg);
}

Damn commas are missing! I'm using Less.app to watch and compile, but I'm assuming its not a less.app problem, but a general parsing thing, as the documentation @http://lesscss.org/ for the arguments variable illustrate this as default behavior.

The easy solution would be to change your mixins to have explicity arguments ie:

.skew(@x:0deg, @y:0deg) {
     -webkit-transform: skew(@x, @y);
       -moz-transform: skew(@x, @y);
        -ms-transform: skew(@x, @y);
         -o-transform: skew(@x, @y);
            transform: skew(@x, @y);
}

The only other way around it I see is to hack a @argumentsComma variable or something into Less...

animation-*

add support for animation-* like these:

.animation-duration(...) {
    -webkit-animation-duration: @arguments;
       -moz-animation-duration: @arguments;
         -o-animation-duration: @arguments;
            animation-duration: @arguments;
}
.animation-fill-mode(...) {
    -webkit-animation-fill-mode: @arguments;
       -moz-animation-fill-mode: @arguments;
         -o-animation-fill-mode: @arguments;
            animation-fill-mode: @arguments;
}

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.