sass-css3-mixins

By: [Matthieu Aussaguel](http://www.mynameismatthieu.com), [@mattaussaguel](https://twitter.com/#!/mattaussaguel)

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
sass-css3-mixins
0.1.08 years ago8 years agoMinified + gzip package size for sass-css3-mixins in KB

Readme

By: Matthieu Aussaguel, @mattaussaguel
List of CSS3 Sass Mixins File to be @imported and @included as you need
The purpose of this library is to facilitate the use of CSS3 on different browsers avoiding HARD TO READ and NEVER ENDING css files
Note:All CSS3 Properties are being supported by Safari 5 more info: http://www.findmebyip.com/litmus/#css3-properties

Version

v0.2

Website URL

http://mynameismatthieu.com/sass-css3-mixins/

Mixins available:

<th>Mixins</th>
<th>Arguments (with default values)</th>
<td>css3-prefix</td>
<td>Will add browser specific prefixes to supplied property (and will set it to supplied value)</td>
<td>background-gradient</td>
<td>Start Color: #3C3C3C, End Color: #999999</td>
<td>background-horizontal</td>
<td>Start Color: #3C3C3C, End Color: #999999</td>
<td>background-radial</td>
<td>Start Color: #FFFFFF, Start position: 0%, End Color: #000000, End position: 100%</td>
<td>background-size</td>
<td>Width: 100%, Height: 100%</td>
<td>background-opacity</td>
<td>Color: #000, Opacity: .85</td>
<td>border-radius</td>
<td>Radius: 5px</td>
<td>border-radius-separate</td>
<td>Top Left: 5px, Top Right: 5px, Bottom Left: 5px, Bottom Right: 5px</td>
<td>box</td>
<td>Orientation: horizontal, Pack: center, Align: center</td>
<td>box-rgba</td>
<td>R: 60, G: 3, B: 12, Opacity: 0.23, Color: #3C3C3C</td>
<td>box-shadow</td>
<td>X: 2px, Y: 2px, Blur: 5px, Color: rgba(0,0,0,.4)</td>
<td>box-sizing</td>
<td>Type: border-box</td>
<td>columns</td>
<td>Count: 3, Gap: 10</td>
<td>double-borders</td>
<td>Color One: #3C3C3C, Color Two: #999999, Radius: 0</td>
<td>flex</td>
<td>Value: 1</td>
<td>flip</td>
<td>Value: ScaleX: -1</td>
<td>font-face</td>
<td>Value: Font Family: myFont, Eot File Src: myFont.eot, Woff File Src: myFont.woff, Ttf File Src: myFont.ttf</td>
<td>opacity</td>
<td>Opacity: 0.5</td>
<td>outline-radius</td>
<td>Radius: 5px</td>
<td>resize</td>
<td>Direction: both</td>
<td>rotate</td>
<td>Degree: 0, M11: 0, M12: 0, M21: 0, M22: 0</td>
<td>text-shadow</td>
<td>X: 2px, Y: 2px, Blur: 5px, Color: rgba(0,0,0,.4)</td>
<td>transform</td>
<td>Parameters: null</td>
<td>transform-style</td>
<td>Style: preserve-3d</td>
<td>transition</td>
<td>What: all, Length: 1s, Easing: ease-in-out</td>
<td>triple-borders</td>
<td>Color One: #3C3C3C, Color Two: #999999, Color Three: #000000, Radius: 0</td>
<td>keyframes</td>
<td>Animation name - pass animation css as body</td>
<td>animation</td>
<td>name duration timing-function delay iteration-count direction fill-mode play-state (http://www.w3schools.com/cssref/css3_pr_animation.asp)</td>

Examples and Instructions

// Import the mixins
@import "css3-mixins.scss"

// Call Mixins
@include opacity();
@include border-radius(3px); 
@include transition(color, .5s, ease-in);

Changelog

  • Initial Release
  • Beta Release

Licence

Copyright © 2013 Matthieu Aussaguel
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.