sassy-text-shadow 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.mdown +53 -0
  2. data/lib/sassy-text-shadow.rb +9 -0
  3. metadata +84 -0
@@ -0,0 +1,53 @@
1
+ # Sassy Text Shadows
2
+
3
+ ## This is mostly a bad idea.
4
+
5
+ Sassy Text Shadow is a Sass mixin that calculates convoluted curvy shadows for css3 text-shadow. It can also be used for box-shadow if you're into that kind of thing.
6
+
7
+
8
+
9
+ Sassy Text Shadows can be used as a [Compass](http://compass-style.org/) [extension](http://compass-style.org/help/tutorials/extensions/) and can be installed as a [Ruby gem](https://rubygems.org/gems/sassy-text-shadow).
10
+
11
+ ## Installation
12
+
13
+ Usage requires Sass. Visit [sass-lang.com](http://sass-lang.com) to learn more and install.
14
+
15
+ `gem install sassy-text-shadow`
16
+
17
+ Then add `require 'sassy-text-shadow'` to your Compass config file.
18
+
19
+
20
+ ## Usage
21
+
22
+
23
+ @function sassy-text-shadow($color, $iterations, $rad, $deg, $cos-i, $sin-i, $color-multiplier) {
24
+ @include text-shadow(sassy-text-shadow(#b80000, 100, 80, 360, 180, 180, 0));
25
+
26
+ Once the gem is in place, simply call the `sassy-text-shadow()` function within the compass `@include text-shadow` mixin. Like so:
27
+
28
+ h1 {
29
+ @include text-shadow(sassy-text-shadow(#b80000, 100, 80, 360, 180, 180, 0));
30
+ }
31
+
32
+ The arguments are, in order:
33
+
34
+ $color: the starting color of the shadow
35
+ $iterations: how many shadows to generate
36
+ $rad: the radius of the curve
37
+ $deg: how far around the curve to go
38
+ $cos-i: the multiplier for cos()
39
+ $sin-i: the multiplier for sin()
40
+ $color-multiplier: an amount to shift the hue of the color as it iterates
41
+
42
+
43
+
44
+
45
+ ## License
46
+
47
+ Copyright (c) 2011 [Mason Wendell](http://thecodingdesigner.com/) ([@canarymason](http://twitter.com/canarymason))
48
+
49
+ 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:
50
+
51
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
52
+
53
+ 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.
@@ -0,0 +1,9 @@
1
+ require 'compass'
2
+ Compass::Frameworks.register("sassy-text-shadow", :path => "#{File.dirname(__FILE__)}/..")
3
+
4
+ module SassyTextShadow
5
+
6
+ VERSION = "0.0.1"
7
+ DATE = "2011-09-26"
8
+
9
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sassy-text-shadow
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Mason Wendell
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-09-26 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: compass
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 57
29
+ segments:
30
+ - 0
31
+ - 11
32
+ - 5
33
+ version: 0.11.5
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ description: Sassy Text Shadow created curved shadows.
37
+ email:
38
+ - mason@zivtech.com
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files: []
44
+
45
+ files:
46
+ - README.mdown
47
+ - lib/sassy-text-shadow.rb
48
+ homepage: https://sassymothereffingtextshadow.com
49
+ licenses: []
50
+
51
+ post_install_message:
52
+ rdoc_options: []
53
+
54
+ require_paths:
55
+ - lib
56
+ required_ruby_version: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ hash: 3
62
+ segments:
63
+ - 0
64
+ version: "0"
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 23
71
+ segments:
72
+ - 1
73
+ - 3
74
+ - 6
75
+ version: 1.3.6
76
+ requirements: []
77
+
78
+ rubyforge_project:
79
+ rubygems_version: 1.8.10
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: Sassy Text Shadow created curved shadows. Inspired by and adapted from Paul Irish's http://mothereffingtextshadow.com.
83
+ test_files: []
84
+