Coder Social home page Coder Social logo

snipmate-css3-please's Introduction

CSS3 Please snippets for SnipMate

This is a collection of CSS snippets for the SnipMate VIM plugin, based on the wonderful css3please website.

I'm using css3-please nearly every day, this is an essential part of my CSS authoring workflow. As a lazy-developer, everytime I go there to copy and paste some awesome CSS rules I feel like I could stay in the comfort of my VIM session. and simply start typing something like transition<TAB>.

And then I would have the according snippet from css3-please automatically, copy-pasted into my buffer, with appropriate placeholder. That would make me a happy developer.

Installation

Put the css directory in your ~/.vim/snippets directory and you're done.

For the snippets to work, the filetype needs to be css.

Snippets

├── 3dtransforms.snippet
├── animation.snippet
├── bgsize.snippet
├── boxshadow.snippet
├── columns.snippet
├── font.snippet
├── gradient.snippet
├── opacity.snippet
├── rgba.snippet
├── rotate.snippet
├── round.snippet
├── scale.snippet
├── tabsize.snippet
├── textshadow.snippet
└── transition.snippet

Example

Typing the transition trigger word followed by a <tab>

transition<tab>

will expand the following CSS snippet:

  -webkit-transition: all 0.3s ease-out;
     -moz-transition: all 0.3s ease-out;
      -ms-transition: all 0.3s ease-out;
       -o-transition: all 0.3s ease-out;
          transition: all 0.3s ease-out;

To go to the next item placeholder, simply <tab> over to it; if there is repeated code, such as the "all" variable in this example, you can simply start typing once it's highlighted and all the matches specified in the snippet will be updated.

todo

  • rotate

rotate snippet ommits filter for ie6-ie9. Requires conversion from deg to appropriate matrix (=/)

filter: progid:DXImageTransform.Microsoft.Matrix(
       M11=0.9914448613738104, M12=-0.13052619222005157,M21=0.13052619222005157, M22=0.9914448613738104, sizingMethod='auto expand');
  • same goes for the scale snippet

  • same goes for the rgba snippet

snipmate-css3-please's People

Contributors

mklabs avatar

Stargazers

 avatar  avatar  avatar

Forkers

jsit

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.