sassy-text-shadow 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ Compass::Frameworks.register("sassy-text-shadow", :path => "#{File.dirname(__FIL
3
3
 
4
4
  module SassyTextShadow
5
5
 
6
- VERSION = "0.0.1"
6
+ VERSION = "0.0.2"
7
7
  DATE = "2011-09-26"
8
8
 
9
9
  end
@@ -0,0 +1,20 @@
1
+ @function sassy-text-shadow($color: gray, $iterations: 100, $rad: 50, $deg: 360, $cos-i: 180, $sin-i: 180, $color-multiplier: 0) {
2
+ $output: '';
3
+ $end: $iterations;
4
+ $radius: $rad;
5
+ @for $i from 1 through $end {
6
+ $color: rgba($color, ($i / $end));
7
+ $color: adjust-hue($color, $i * $color-multiplier);
8
+ $position: $deg / $end * $i;
9
+ $cos: cos($position * (pi() / $cos-i));
10
+ $x-position: $radius * $cos;
11
+ $sin: sin($position * (pi() / $sin-i));
12
+ $y-position: $radius * $sin;
13
+ $spread: $i / ($iterations / 10);
14
+ $output: $output + '#{$color} #{$x-position}px #{$y-position}px #{$spread}px';
15
+ @if $i < $end {
16
+ $output: $output + ', ';
17
+ }
18
+ }
19
+ @return unquote($output);
20
+ }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassy-text-shadow
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mason Wendell
@@ -45,7 +45,8 @@ extra_rdoc_files: []
45
45
  files:
46
46
  - README.mdown
47
47
  - lib/sassy-text-shadow.rb
48
- homepage: https://sassymothereffingtextshadow.com
48
+ - stylesheets/_sassy-text-shadow.scss
49
+ homepage: http://sassymothereffingtextshadow.com
49
50
  licenses: []
50
51
 
51
52
  post_install_message:
@@ -76,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
77
  requirements: []
77
78
 
78
79
  rubyforge_project:
79
- rubygems_version: 1.8.10
80
+ rubygems_version: 1.8.5
80
81
  signing_key:
81
82
  specification_version: 3
82
83
  summary: Sassy Text Shadow created curved shadows. Inspired by and adapted from Paul Irish's http://mothereffingtextshadow.com.