fancy-buttons 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/fancy-buttons.gemspec +2 -2
- data/lib/sass/_fancy_buttons.sass +19 -15
- metadata +2 -2
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 = "0.3.
|
8
|
+
s.version = "0.3.6"
|
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{2009-12-
|
12
|
+
s.date = %q{2009-12-11}
|
13
13
|
s.description = %q{Make fancy buttons with the Compass stylesheet authoring framework.}
|
14
14
|
s.email = %q{brandon@imathis.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -10,6 +10,7 @@
|
|
10
10
|
!fb_radius ||= 6px
|
11
11
|
!fb_light_text ||= #fff
|
12
12
|
!fb_dark_text ||= #222
|
13
|
+
!fb_gradient ||= 1
|
13
14
|
|
14
15
|
// Make a fancy button.
|
15
16
|
=fancy-button(!color= !fb_color, !font_size= !fb_font_size, !radius= !fb_radius, !border_width= !fb_border_width)
|
@@ -59,26 +60,29 @@
|
|
59
60
|
!border_color = darken(!color, 15)
|
60
61
|
@if saturation(!color) > 0
|
61
62
|
!color = saturate(!color, 40)
|
63
|
+
@else if luminosity(!lumins) >= luminosity(#aaa)
|
64
|
+
!color = lighten(!color, 20)
|
62
65
|
+fb-state-colors(!color, !gradient_top, !gradient_bottom, !border_color, !state, !lumins)
|
63
66
|
|
64
67
|
// Apply the button colors specified for the button state into which it is mixed.
|
65
68
|
=fb-state-colors(!color, !gradient_top, !gradient_bottom, !border, !state, !lumins = !color)
|
66
69
|
background-color= !color
|
67
|
-
@if !
|
68
|
-
@if !
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
@if !
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
@if !
|
79
|
-
|
80
|
-
|
81
|
-
|
70
|
+
@if !fb_gradient != 0
|
71
|
+
@if !fb_gradient_style == "glossy"
|
72
|
+
@if !fb_invert_on_click != 0 and !state == "active"
|
73
|
+
+invert-fancy-gradient(!gradient_top, !gradient_bottom)
|
74
|
+
@else
|
75
|
+
+fancy-gradient(!gradient_top, !gradient_bottom)
|
76
|
+
@else if !fb_gradient_style == "matte"
|
77
|
+
@if !fb_invert_on_click and !state == "active"
|
78
|
+
+invert-fancy-matte-gradient(!gradient_top, !gradient_bottom)
|
79
|
+
@else
|
80
|
+
+fancy-matte-gradient(!gradient_top, !gradient_bottom)
|
81
|
+
@else if !fb_gradient_style == "custom"
|
82
|
+
@if !fb_invert_on_click and !state == "active"
|
83
|
+
+invert-custom-fancy-gradient(!gradient_top, !gradient_bottom)
|
84
|
+
@else
|
85
|
+
+custom-fancy-gradient(!gradient_top, !gradient_bottom)
|
82
86
|
border:
|
83
87
|
color= !border
|
84
88
|
!text_shadow_settings = "0px 1px 1px"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancy-buttons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-11 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|