fancy-buttons 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -2
- data/fancy-buttons.gemspec +5 -8
- data/lib/stylesheets/_fancy-buttons.sass +6 -0
- metadata +9 -25
data/Rakefile
CHANGED
@@ -7,8 +7,7 @@ begin
|
|
7
7
|
gemspec.email = "brandon@imathis.com"
|
8
8
|
gemspec.homepage = "http://github.com/imathis/fancy-buttons"
|
9
9
|
gemspec.author = "Brandon Mathis"
|
10
|
-
gemspec.add_dependency('
|
11
|
-
gemspec.add_dependency('compass', '>= 0.10.0')
|
10
|
+
gemspec.add_dependency('compass', '>= 0.10.6')
|
12
11
|
gemspec.files = []
|
13
12
|
gemspec.files << "fancy-buttons.gemspec"
|
14
13
|
gemspec.files << "README.markdown"
|
data/fancy-buttons.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fancy-buttons}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brandon Mathis"]
|
12
|
-
s.date = %q{2010-10-
|
12
|
+
s.date = %q{2010-10-29}
|
13
13
|
s.description = %q{Easily style buttons with beautiful CSS3 features like gradients, rounded corners, etc. Don't worry the buttons also degrade nicely for browsers with no support. This requires the Compass stylesheet authoring framework.}
|
14
14
|
s.email = %q{brandon@imathis.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -38,15 +38,12 @@ Gem::Specification.new do |s|
|
|
38
38
|
s.specification_version = 3
|
39
39
|
|
40
40
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
41
|
-
s.add_runtime_dependency(%q<
|
42
|
-
s.add_runtime_dependency(%q<compass>, [">= 0.10.0"])
|
41
|
+
s.add_runtime_dependency(%q<compass>, [">= 0.10.6"])
|
43
42
|
else
|
44
|
-
s.add_dependency(%q<
|
45
|
-
s.add_dependency(%q<compass>, [">= 0.10.0"])
|
43
|
+
s.add_dependency(%q<compass>, [">= 0.10.6"])
|
46
44
|
end
|
47
45
|
else
|
48
|
-
s.add_dependency(%q<
|
49
|
-
s.add_dependency(%q<compass>, [">= 0.10.0"])
|
46
|
+
s.add_dependency(%q<compass>, [">= 0.10.6"])
|
50
47
|
end
|
51
48
|
end
|
52
49
|
|
@@ -2,6 +2,8 @@
|
|
2
2
|
@import compass/css3/border-radius
|
3
3
|
@import compass/css3/opacity
|
4
4
|
@import compass/css3/text-shadow
|
5
|
+
@import compass/css3/box-shadow
|
6
|
+
@import compass/css3/background-clip
|
5
7
|
@import fancy-gradient
|
6
8
|
|
7
9
|
$fb-gradient-style: glossy !default
|
@@ -17,6 +19,7 @@ $fb-gradient: 1 !default
|
|
17
19
|
$fb-image-path: image-url("button_bg.png") !default
|
18
20
|
$fb-allow-disabled: false !default
|
19
21
|
$fb-line-height: 1.2em !default
|
22
|
+
$fb-inset: true !default
|
20
23
|
|
21
24
|
// Make a fancy button.
|
22
25
|
=fancy-button($color: $fb-color, $font-size: $fb-font-size, $radius: $fb-radius, $border-width: $fb-border-width)
|
@@ -39,6 +42,9 @@ $fb-line-height: 1.2em !default
|
|
39
42
|
@if $allow-disabled
|
40
43
|
&.disabled, &[disabled]
|
41
44
|
+disable-fancy-button($color)
|
45
|
+
@if $fb-inset
|
46
|
+
+box-shadow(rgba(255,255,255, (lightness($color) - 5)/100), 0, 0, .1em, 1px, inset)
|
47
|
+
+background-clip(padding-box)
|
42
48
|
|
43
49
|
=fancy-button-allow-disable($color: $fb-color, $font-size: $fb-font-size, $radius: $fb-radius, $border-width: $fb-border-width)
|
44
50
|
$fb-disable-allowed: $fb-allow-disable
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancy-buttons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brandon Mathis
|
@@ -15,41 +15,25 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-29 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
name: haml
|
23
|
-
prerelease: false
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 3
|
32
|
-
- 0
|
33
|
-
- 2
|
34
|
-
version: 3.0.2
|
35
|
-
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
21
|
- !ruby/object:Gem::Dependency
|
38
22
|
name: compass
|
39
23
|
prerelease: false
|
40
|
-
requirement: &
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
41
25
|
none: false
|
42
26
|
requirements:
|
43
27
|
- - ">="
|
44
28
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
29
|
+
hash: 59
|
46
30
|
segments:
|
47
31
|
- 0
|
48
32
|
- 10
|
49
|
-
-
|
50
|
-
version: 0.10.
|
33
|
+
- 6
|
34
|
+
version: 0.10.6
|
51
35
|
type: :runtime
|
52
|
-
version_requirements: *
|
36
|
+
version_requirements: *id001
|
53
37
|
description: Easily style buttons with beautiful CSS3 features like gradients, rounded corners, etc. Don't worry the buttons also degrade nicely for browsers with no support. This requires the Compass stylesheet authoring framework.
|
54
38
|
email: brandon@imathis.com
|
55
39
|
executables: []
|