Permalink
Browse files

Added additional credit to Benjamin Doherty's efforts.

  • Loading branch information...
1 parent a396da1 commit 8f7f12d2704ab8435b270914e0aba2fd49b0574f @aaronrussell committed Aug 18, 2010
Showing with 11 additions and 2 deletions.
  1. +2 −2 compass-rgbapng.gemspec
  2. +4 −0 lib/rgbapng/functions.rb
  3. +5 −0 lib/stylesheets/_rgbapng.scss
View
@@ -2,8 +2,8 @@ Gem::Specification.new do |s|
# Gem Details
s.name = "compass-rgbapng"
- s.version = "0.1.0"
- s.authors = ["Aaron Russell"]
+ s.version = "0.1.1"
+ s.authors = ["Aaron Russell", "Benjamin Doherty"]
s.date = "2010-08-18"
s.summary = %q{Compass plugin for providing cross-browser compatible RGBA support by creating transparent PNGs on the fly for browsers that don't support RGBA.}
s.description = %q{Compass plugin for providing cross-browser compatible RGBA support by creating transparent PNGs on the fly for browsers that don't support RGBA. Uses the pure Ruby ChunkyPNG library for hassle free install and deployment.}
View
@@ -2,6 +2,10 @@
require "chunky_png"
require "base64"
+# Functions are modified from Benjamin Doherty's first implementations: http://gist.github.com/377912
+# Modified to use the ChunkyPNG library rather than RMagick, and added flexibility to amend the path
+# to which generated PNGs are saved.
+
module Sass::Script::Functions
def png_pixelate(c, dir = "rgbapng")
@@ -1,3 +1,8 @@
+/*
+ Mixins are slightly modified from Benjamin Doherty's first implementations: http://gist.github.com/377912
+ rgba-background mixin can now be passed an option $dir variable
+*/
+
$rgbapng_path: 'rgbapng';
@mixin rgba-background($color, $dir:$rgbapng_path){

0 comments on commit 8f7f12d

Please sign in to comment.