-
-
Save Netcelal/3178562 to your computer and use it in GitHub Desktop.
Revisions
-
James McKinney revised this gist
Jan 2, 2012 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,12 @@ // Mixins ---------------------------------------------------------------------- // http://css3please.com/ @mixin background-rgba($red, $green, $blue, $opacity, $rgba) { background-color: transparent; background-color: rgba($red, $green, $blue, $opacity); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$rgba}',endColorstr='#{$rgba}'); zoom: 1; } @mixin border-radius($radius) { -webkit-border-radius: $radius; -moz-border-radius: $radius; -
James McKinney revised this gist
Dec 31, 2011 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ // blog post: http://blog.slashpoundbang.com/post/15096433153/css3-scss-mixins // Mixins ---------------------------------------------------------------------- // http://css3please.com/ @mixin border-radius($radius) { -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,41 @@ // Mixins ---------------------------------------------------------------------- // http://css3please.com/ @mixin border-radius($radius) { -webkit-border-radius: $radius; -moz-border-radius: $radius; border-radius: $radius; } @mixin border-direction-radius($direction, $radius) { -webkit-border-#{$direction}-radius: $radius; -moz-border-#{$direction}-radius: $radius; border-#{$direction}-radius: $radius; } @mixin box-shadow($value) { -webkit-box-shadow: $value; -moz-box-shadow: $value; box-shadow: $value; } @mixin transition($value) { -webkit-transition: $value; -moz-transition: $value; -ms-transition: $value; -o-transition: $value; transition: $value; } @mixin opacity($opacity) { filter: alpha(opacity=$opacity * 100); -khtml-opacity: $opacity; -moz-opacity: $opacity; opacity: $opacity; } @mixin gradient($from, $to) { background-color: $to; background-repeat: repeat-x; background-image: -webkit-gradient(linear, left top, left bottom, from($from), to($to)); background-image: -webkit-linear-gradient(top, $from, $to); background-image: -moz-linear-gradient(top, $from, $to); background-image: -ms-linear-gradient(top, $from, $to); background-image: -o-linear-gradient(top, $from, $to); background-image: linear-gradient(top, $from, $to); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$from}', endColorstr='#{$to}'); }